Kuppuswamy Sathyanarayanan 2e34673be0 PCI/ATS: Use PF PASID for VFs
Per PCIe r5.0, sec 9.3.7.14, if a PF implements the PASID Capability, the
PF PASID configuration is shared by its VFs, and VFs must not implement
their own PASID Capability.  But commit 751035b8dc06 ("PCI/ATS: Cache PASID
Capability offset") changed pci_max_pasids() and pci_pasid_features() to
use the PASID Capability of the VF device instead of the associated PF
device.  This leads to IOMMU bind failures when pci_max_pasids() and
pci_pasid_features() are called for VFs.

In pci_max_pasids() and pci_pasid_features(), always use the PF PASID
Capability.

Fixes: 751035b8dc06 ("PCI/ATS: Cache PASID Capability offset")
Link: https://lore.kernel.org/r/fe891f9755cb18349389609e7fed9940fc5b081a.1580325170.git.sathyanarayanan.kuppuswamy@linux.intel.com
Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: stable@vger.kernel.org	# v5.5+
2020-02-05 11:58:08 -06:00
..
2020-01-29 18:53:37 -08:00
2020-01-29 18:16:16 -08:00
2020-01-29 10:35:54 -08:00
2020-02-03 14:57:33 +00:00
2020-02-03 14:51:57 +00:00
2020-01-23 00:35:50 +01:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2020-02-03 14:51:57 +00:00
2020-01-30 08:04:01 -08:00
2020-01-27 13:03:00 -08:00
2020-01-27 13:03:00 -08:00
2020-01-31 14:40:36 -08:00
2020-01-31 14:48:54 -08:00
2020-01-31 14:43:23 -08:00
2020-02-03 14:51:57 +00:00
2020-01-30 08:04:01 -08:00
2020-01-27 13:03:00 -08:00
2020-01-30 15:46:02 -08:00
2020-01-16 20:56:49 +01:00
2020-01-30 07:47:58 -08:00
2020-01-27 13:03:00 -08:00
2020-02-05 11:58:08 -06:00
2020-02-03 14:51:57 +00:00
2020-02-03 14:51:57 +00:00
2020-01-26 15:20:32 +01:00
2020-01-29 18:16:16 -08:00
2020-01-31 11:28:31 -08:00
2020-01-27 13:03:00 -08:00
2020-01-31 14:43:23 -08:00
2020-01-29 18:16:16 -08:00
2020-01-31 11:28:31 -08:00
2020-01-30 08:04:01 -08:00
2020-01-31 11:28:31 -08:00
2020-02-03 14:55:08 +00:00
2020-01-29 10:35:54 -08:00
2020-01-29 10:35:54 -08:00
2020-01-27 13:03:00 -08:00
2020-01-30 08:04:01 -08:00