linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: Add ACS quirk for Cavium ThunderX 2 root port devices
@ 2019-07-19 13:10 Shannon Zhao
  2019-07-24 18:55 ` Bjorn Helgaas
  0 siblings, 1 reply; 4+ messages in thread
From: Shannon Zhao @ 2019-07-19 13:10 UTC (permalink / raw)
  To: linux-kernel, jnair, bhelgaas, linux-pci, gduan

From: Shannon Zhao <shannon.zhao@linux.alibaba.com>

Like commit f2ddaf8(PCI: Apply Cavium ThunderX ACS quirk to more Root
Ports), it should apply ACS quirk to ThunderX 2 root port devices.

Signed-off-by: Shannon Zhao <shannon.zhao@linux.alibaba.com>
---
 drivers/pci/quirks.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 28c64f8..ea7848b 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -4224,10 +4224,12 @@ static bool pci_quirk_cavium_acs_match(struct pci_dev *dev)
 	 * family by 0xf800 mask (which represents 8 SoCs), while the lower
 	 * bits of device ID are used to indicate which subdevice is used
 	 * within the SoC.
+	 * Effectively selects the ThunderX 2 root ports whose device ID
+	 * is 0xaf84.
 	 */
 	return (pci_is_pcie(dev) &&
 		(pci_pcie_type(dev) == PCI_EXP_TYPE_ROOT_PORT) &&
-		((dev->device & 0xf800) == 0xa000));
+		((dev->device & 0xf800) == 0xa000 || dev->device == 0xaf84));
 }
 
 static int pci_quirk_cavium_acs(struct pci_dev *dev, u16 acs_flags)
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-08-06  2:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-19 13:10 [PATCH] PCI: Add ACS quirk for Cavium ThunderX 2 root port devices Shannon Zhao
2019-07-24 18:55 ` Bjorn Helgaas
2019-07-25 16:35   ` Jayachandran Chandrasekharan Nair
2019-08-06  2:24     ` Shannon Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).