Hi Kevin,

On Wed, 16 Mar 2022 07:39:09 +0000, "Tian, Kevin" <kevin.t...@intel.com>
wrote:

> > From: Jacob Pan <jacob.jun....@linux.intel.com>
> > Sent: Tuesday, March 15, 2022 1:07 PM
> > +static int intel_iommu_attach_dev_pasid(struct iommu_domain *domain,
> > +                                   struct device *dev, ioasid_t
> > pasid) +{
> > +   struct dmar_domain *dmar_domain = to_dmar_domain(domain);
> > +   struct device_domain_info *info = get_domain_info(dev);
> > +   struct intel_iommu *iommu = info->iommu;
> > +   struct pasid_info *pinfo;
> > +   unsigned long flags;
> > +   int ret = 0;
> > +   void *entry;
> > +
> > +   if (!info)
> > +           return -ENODEV;  
> 
> btw this interface only works in scalable mode. Lack of a check to
> return error on legacy mode here.
> 
right, legacy mode has no PASIDs. will check

Thanks,

Jacob
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to