lkml.org 
[lkml]   [2023]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v5 4/7] iommu/vt-d: Factoring out PASID set up helper function
Date
> 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 "||"

\
 
 \ /
  Last update: 2023-04-28 11:48    [W:1.487 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site