Re: [PATCH v2 02/16] iommu/vt-d: add bind_pasid_table function

2017-10-12 Thread Jacob Pan
On Thu, 12 Oct 2017 11:12:46 + "Liu, Yi L" wrote: > > From: Jacob Pan [mailto:jacob.jun@linux.intel.com] > > Sent: Friday, October 6, 2017 7:04 AM > > To: iommu@lists.linux-foundation.org; LKML > > ; Joerg Roedel ; > > David Woodhouse ; Greg Kroah-Hartman > > ; Wysocki, Rafael J > > ; Jea

RE: [PATCH v2 02/16] iommu/vt-d: add bind_pasid_table function

2017-10-12 Thread Liu, Yi L
> From: Jacob Pan [mailto:jacob.jun@linux.intel.com] > Sent: Friday, October 6, 2017 7:04 AM > To: iommu@lists.linux-foundation.org; LKML ; > Joerg > Roedel ; David Woodhouse ; Greg > Kroah-Hartman ; Wysocki, Rafael J > ; Jean-Philippe Brucker philippe.bruc...@arm.com> > Cc: Liu, Yi L ; Lan,

Re: [PATCH v2 02/16] iommu/vt-d: add bind_pasid_table function

2017-10-10 Thread Joerg Roedel
On Thu, Oct 05, 2017 at 04:03:30PM -0700, Jacob Pan wrote: > + pdev = to_pci_dev(dev); > + if (!pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_PRI)) > + return -EINVAL; > + sid = PCI_DEVID(bus, devfn); Okay, you search for the PRI capability ... > + > + info = dev->archda