Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3930672pxj; Mon, 21 Jun 2021 09:36:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2B/LeLMX+kDa0oe5hZVX4+AzscnMTuEPF3o+9sq2iD/+fhlGhJgHMr2wDgx3iyPTSCsso X-Received: by 2002:a05:6402:90b:: with SMTP id g11mr11996821edz.336.1624293405090; Mon, 21 Jun 2021 09:36:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624293405; cv=none; d=google.com; s=arc-20160816; b=gDWWLIGtNQMvq+C21jAFFPq+XI5obyOuQ8hJjsxBeRLso8Xg0NIVRB/g0g1LP/gm+M kReIYwB/kIsKhw6dskAnIxq66qHWNIyIwbCxemxzC0dzqZux++yCn43HoBP8dbHxZ5az Sv66biGBjwLe0DtiAA6sgefYqKMJBXN31uZdf6xYqgRM+thyQqveho6/2DQzvZtOvsxA 46WIcDuIjCoUnR8fZAbynyv1BCjaVm1hS2Aum1rnYh/4eqwUoib9+IEubBgd46lqUbDU 7IwuTTDfcDrsaZBWGZwAl9Ij/a2t/H6XvKRsHpR8T0DdazsuyYz0O+bpu4+WlQzXbd1P ZhOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=diiwyhcjWcEBpapyMYNhqGx7HH+allLD/mDbYPCjC9k=; b=NhMBWYZMLVhrJEQlI6EX4OIC4deHFWGNwmVc/iRCDVUR1yR8KiPnEkLaPWxQCYyBO0 iAusNrihg7OQ0kLHzdOOVfTNbBK+oeh2VFvsPF6XZArArtclRPImDsW2xaqisLEaHAXU Q1Q76Cmc5V8Lpf128Nzjfb/pqx8PIM4K+wxzOmYwZJburwDoZY8E8n81dNd3H+U3ygJt jwFJ0B9RTRzDc2gZcpElKpbkLe2HWccZhOwTEMbXpWy4NbDntYpVY4UyOtUI3y0D8lmn Ah2GpAb/QdO7/00QCq2R+LwPWA0SoavAQtDVFrKZy0Wc4pd+ym2aJg4Pt6e+WHAQbW+G eWiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LSE4zBjD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m5si11194966ejn.23.2021.06.21.09.36.22; Mon, 21 Jun 2021 09:36:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LSE4zBjD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232324AbhFUQff (ORCPT + 99 others); Mon, 21 Jun 2021 12:35:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:49588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232342AbhFUQbN (ORCPT ); Mon, 21 Jun 2021 12:31:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8539E613FA; Mon, 21 Jun 2021 16:25:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624292730; bh=QbSCfuq9kOyKYJnxD56Mv3iLkzPvRWSKIGDJfEiNGI8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LSE4zBjDphwQuZKVl3HrJLtAigFS17Fe7pJyTZELIiazZfFDYrMVP3MpbUoasWWfA cVI4EJUjsR3AuhFHvSr4P05hkFb/Sc0v4O6/SGV8TWSr/0f8uR8s3A1Y2Sf6o1iufv 73sU+IqBxQMlSCTaRfFn15kf92MArYLLNlrQoC+Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shanker Donthineni , Bjorn Helgaas , Sinan Kaya Subject: [PATCH 5.10 108/146] PCI: Mark some NVIDIA GPUs to avoid bus reset Date: Mon, 21 Jun 2021 18:15:38 +0200 Message-Id: <20210621154918.167526518@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210621154911.244649123@linuxfoundation.org> References: <20210621154911.244649123@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shanker Donthineni commit 4c207e7121fa92b66bf1896bf8ccb9edfb0f9731 upstream. 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/20210608054857.18963-8-ameynarkhede03@gmail.com Signed-off-by: Shanker Donthineni Signed-off-by: Bjorn Helgaas Reviewed-by: Sinan Kaya Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/pci/quirks.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -3558,6 +3558,18 @@ static void quirk_no_bus_reset(struct pc } /* + * Some NVIDIA GPU devices do not work with bus reset, SBR needs to be + * prevented for those affected devices. + */ +static void quirk_nvidia_no_bus_reset(struct pci_dev *dev) +{ + if ((dev->device & 0xffc0) == 0x2340) + quirk_no_bus_reset(dev); +} +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_NVIDIA, PCI_ANY_ID, + quirk_nvidia_no_bus_reset); + +/* * Some Atheros AR9xxx and QCA988x chips do not behave after a bus reset. * The device will throw a Link Down error on AER-capable systems and * regardless of AER, config space of the device is never accessible again