[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dmaengine
Subject:    RE: [PATCH v5 4/7] iommu/vt-d: Factoring out PASID set up helper function
From:       "Tian, Kevin" <kevin.tian () intel ! com>
Date:       2023-04-28 9:47:45
Message-ID: BN9PR11MB5276726E67301703BD10833B8C6B9 () BN9PR11MB5276 ! namprd11 ! prod ! outlook ! com
[Download RAW message or body]

> From: Jacob Pan <jacob.jun.pan@linux.intel.com>
> Sent: Friday, April 28, 2023 1:50 AM
> 
> 
> +static int dmar_domain_attach_device_pasid(struct dmar_domain *domain,
> +					   struct intel_iommu *iommu,
> +					   struct device *dev, ioasid_t pasid)
> +{
> +	int ret;
> +
> +	/* PASID table is mandatory for a PCI device in scalable mode. */
> +	if (!sm_supported(iommu) && dev_is_real_dma_subdevice(dev))
> +		return -EOPNOTSUPP;

"&&" should be "||"

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic