linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] PCI: avoid SBR for NVIDIA T4
@ 2023-03-29 11:58 Wu Zongyong
  2023-03-29 17:05 ` Bjorn Helgaas
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Wu Zongyong @ 2023-03-29 11:58 UTC (permalink / raw)
  To: sdonthineni, bhelgaas, linux-pci, linux-kernel
  Cc: Wu Zongyong, wllenyj, wutu.xq2, gerry

Secondary bus reset will fail if NVIDIA T4 card is direct attached to a
root port.
So avoid to do bus reset,  pci_parent_bus_reset() works nomarlly.

Maybe NVIDIA guys can do some detailed explanation abount the SBR
behaviour of GPUs.

Signed-off-by: Wu Zongyong <wuzongyong@linux.alibaba.com>
---
 drivers/pci/quirks.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 44cab813bf95..be86b93b9e38 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -3618,7 +3618,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,
-- 
2.34.3


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

end of thread, other threads:[~2023-09-08 20:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-29 11:58 [RFC PATCH] PCI: avoid SBR for NVIDIA T4 Wu Zongyong
2023-03-29 17:05 ` Bjorn Helgaas
2023-03-30  2:10   ` Wu Zongyong
2023-03-30 15:49     ` Bjorn Helgaas
2023-03-31  2:11       ` Wu Zongyong
2023-04-03  4:02         ` Wu Zongyong
2023-03-30  2:41 ` Lukas Wunner
2023-04-10 12:34 ` [PATCH] PCI: Mark NVIDIA T4 GPUs to avoid bus reset Wu Zongyong
2023-04-26  8:13   ` Wu Zongyong
2023-08-09 23:05   ` Bjorn Helgaas
2023-09-08  2:50     ` Wu Zongyong
2023-09-08  3:40       ` Alex Williamson
2023-09-08 20:11         ` Bjorn Helgaas

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).