Skip to content

Commit 4c207e7

Browse files
shankerd04bjorn-helgaas
authored andcommitted
PCI: Mark some NVIDIA GPUs to avoid bus reset
Some NVIDIA GPU devices do not work with SBR. Triggering SBR leaves the device inoperable for the current system boot. It requires a system hard-reboot to get the GPU device back to normal operating condition post-SBR. For the affected devices, enable NO_BUS_RESET quirk to avoid the issue. This issue will be fixed in the next generation of hardware. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Shanker Donthineni <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Sinan Kaya <[email protected]> Cc: [email protected]
1 parent b5cf198 commit 4c207e7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

drivers/pci/quirks.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3546,6 +3546,18 @@ static void quirk_no_bus_reset(struct pci_dev *dev)
35463546
dev->dev_flags |= PCI_DEV_FLAGS_NO_BUS_RESET;
35473547
}
35483548

3549+
/*
3550+
* Some NVIDIA GPU devices do not work with bus reset, SBR needs to be
3551+
* prevented for those affected devices.
3552+
*/
3553+
static void quirk_nvidia_no_bus_reset(struct pci_dev *dev)
3554+
{
3555+
if ((dev->device & 0xffc0) == 0x2340)
3556+
quirk_no_bus_reset(dev);
3557+
}
3558+
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID,
3559+
quirk_nvidia_no_bus_reset);
3560+
35493561
/*
35503562
* Some Atheros AR9xxx and QCA988x chips do not behave after a bus reset.
35513563
* The device will throw a Link Down error on AER-capable systems and

0 commit comments

Comments
 (0)