From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E0266FA7 for ; Sun, 17 Sep 2023 19:29:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1908C433C7; Sun, 17 Sep 2023 19:29:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1694978979; bh=aiihZUFwBoBw4+bdByFxju+hcAAOghYCI4ot50d5Q3Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ke9AhBu3iaKAF7utx18wHHbPxeZFJW6zzHmsldTEoiuE2aA/HELlOG3+Q11XxU8j9 Qwn81fNpvGKtmkQDCJilWhWw43Wz1b31iCyNZjCZ8FGLPvg2WFz7k6nKTKClmEg7QH 2zpmuyikBY3B4VqpJ1Ax+kUG0FikDIAvS/otC1ss= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Wu Zongyong , Bjorn Helgaas , Sasha Levin Subject: [PATCH 5.10 179/406] PCI: Mark NVIDIA T4 GPUs to avoid bus reset Date: Sun, 17 Sep 2023 21:10:33 +0200 Message-ID: <20230917191105.921048050@linuxfoundation.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230917191101.035638219@linuxfoundation.org> References: <20230917191101.035638219@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Wu Zongyong [ Upstream commit d5af729dc2071273f14cbb94abbc60608142fd83 ] 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 Signed-off-by: Bjorn Helgaas Signed-off-by: Sasha Levin --- 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 c0d1134811915..1193c81f88964 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -3578,7 +3578,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.40.1