PCI: Mark NVIDIA T4 GPUs to avoid bus reset
authorWu Zongyong <wuzongyong@linux.alibaba.com>
Mon, 10 Apr 2023 12:34:11 +0000 (20:34 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 9 Aug 2023 23:03:45 +0000 (18:03 -0500)
NVIDIA T4 GPUs do not work with SBR. This problem is found when the T4 card
is direct attached to a Root Port only. Avoid bus reset by marking T4 GPUs
PCI_DEV_FLAGS_NO_BUS_RESET.

Fixes: 4c207e7121fa ("PCI: Mark some NVIDIA GPUs to avoid bus reset")
Link: https://lore.kernel.org/r/2dcebea53a6eb9bd212ec6d8974af2e5e0333ef6.1681129861.git.wuzongyong@linux.alibaba.com
Signed-off-by: Wu Zongyong <wuzongyong@linux.alibaba.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/quirks.c

index 321156c..dc96a12 100644 (file)
@@ -3724,7 +3724,7 @@ static void quirk_no_bus_reset(struct pci_dev *dev)
  */
 static void quirk_nvidia_no_bus_reset(struct pci_dev *dev)
 {
-       if ((dev->device & 0xffc0) == 0x2340)
+       if ((dev->device & 0xffc0) == 0x2340 || dev->device == 0x1eb8)
                quirk_no_bus_reset(dev);
 }
 DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID,