Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp855140pxy; Wed, 5 May 2021 15:59:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx35BeSS96R73BOCBT3q3sQXC0p77TdYFUXEyR7O144RMq3wmeIp5MI6qP+wo86z2nCbeQl X-Received: by 2002:a17:906:2c55:: with SMTP id f21mr1127743ejh.41.1620255581836; Wed, 05 May 2021 15:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620255581; cv=none; d=google.com; s=arc-20160816; b=mhJji4/B/1NCniMhBNRA/dQypemNdpJBNocMI4i+d/3yoZ5bq43Kw5x/3F40QS5PDl J2yOayOa5YgqLrjxJsUbc956clnnZZXjv9jlAE8+OjYVkHEQm1HLPKwqRbfigaHWooju o28awY+BPhyrfFtTCOJaLqqwzPaOW51lqXSb9dQ1sjImG1pzX1rxpezUTldoLKHYwC+m rtd3IPl2knz42BjqlW6ERjq+XNO+4utU9p67swUbQ3c5W+4yGmdhzARHvBu6p3ZmVQNw /wlDEog2KGcqh5qAeUjLUaN3qOb01gzIwka290hYgU46izkDnbV4wTgSAx1/e2QuZmQA RXpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=QTxhq/nmFw4POhHMxj0IvSQWlKUQMmt3I7hxGenKmIg=; b=wt8iy6Zdam6F2sxQVqHctjx8QcWtl5cUIrnWJidtga94DnnMXcIHQCeOv6lYVicAXF i+hU7I6DcyqI6FG1XkXKqhzNyCrIyq6JzSxGJiFpVneq6KKxd+ELdNjmd+oHimRz6gU0 OBFsZZE5Pqa8frgBFzMs8HIHspV7QIXPl2XB5xDhtyvXJYbNRV64DKIIDhUXd8keVLvW iVDmzIIhOdxENxN0fcHsqpisEno2d9rp1Dq+2CECcWfkczm6aFy83KWqE07rX0LCPgr+ 2DSAsKLH7+dEgZwLatiKxwytd3XCi73UorYdAnKtbbScpPgtahjae+1z+8kJuTyTl0M/ 85fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e0ZdQzW3; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w24si780722ejb.752.2021.05.05.15.59.18; Wed, 05 May 2021 15:59:41 -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=@kernel.org header.s=k20201202 header.b=e0ZdQzW3; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235061AbhEEUlQ (ORCPT + 99 others); Wed, 5 May 2021 16:41:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:48958 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234566AbhEEUlP (ORCPT ); Wed, 5 May 2021 16:41:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 31733613E9; Wed, 5 May 2021 20:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620247218; bh=sqlBJeP2BuEGyy+j2+DoZweK1T+0pBp8HGXOCvNJaVc=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=e0ZdQzW323cvRis2z39theMLvgGcGhr1aRJdgJ+M+dyFQUK6B3neoJM7cRga3yDFA jZlEk/JbmihCRj3Mmctzvjjx6Nrf8zLT4+WEm5fvBuo3LR4H5ap9G4EsZ4zhbB112D q3bYplfp/mXVhEavQHjhtyHzsZkljyP6cQ4dPKCYmbF4hRgQFM6FuT6oj3L8m8Z97i pv1FJ13BnC/KQt8aNoPiQ1Wa3ljmayTEZTr+ap8QeeslviimkgBRahFOaU2k1XDI2S iVksPKXzeQGfLQjSaOJOWC+nWnTqJdjtyIJ1B3ov98JN4RVLxmFn6AQrgotZCSA/Wi vHwxDLv9gnJqw== Date: Wed, 5 May 2021 15:40:16 -0500 From: Bjorn Helgaas To: Alex Williamson Cc: Amey Narkhede , Oliver O'Halloran , Shanker R Donthineni , Bjorn Helgaas , linux-pci , Linux Kernel Mailing List , Sinan Kaya , Vikram Sethi Subject: Re: [PATCH v4 2/2] PCI: Enable NO_BUS_RESET quirk for Nvidia GPUs Message-ID: <20210505204016.GA1330808@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210505131357.07e55042@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 05, 2021 at 01:13:57PM -0600, Alex Williamson wrote: > On Wed, 5 May 2021 23:10:32 +0530 > Amey Narkhede wrote: > > On 21/05/05 01:56PM, Oliver O'Halloran wrote: > > > On Wed, May 5, 2021 at 12:50 PM Bjorn Helgaas wrote: > > > > On Mon, May 03, 2021 at 09:07:11PM -0500, Shanker R Donthineni wrote: > > > > > On 5/3/21 5:42 PM, Bjorn Helgaas wrote: > > > > > > Obviously _RST only works for built-in devices, since there's no AML > > > > > > for plug-in devices, right? So if there's a plug-in card with this > > > > > > GPU, neither SBR nor _RST will work? > > > > > These are not plug-in PCIe GPU cards, will exist on upcoming server > > > > > baseboards. ACPI-reset should wok for plug-in devices as well as long > > > > > as firmware has _RST method defined in ACPI-device associated with > > > > > the PCIe hot-plug slot. > > > > > > > > Maybe I'm missing something, but I don't see how _RST can work for > > > > plug-in devices. _RST is part of the system firmware, and that > > > > firmware knows nothing about what will be plugged into the slot. So > > > > if system firmware supplies _RST that knows how to reset the Nvidia > > > > GPU, it's not going to do the right thing if you plug in an NVMe > > > > device instead. > > > > > > > > Can you elaborate on how _RST would work for plug-in devices? > > I'm not sure I really understand these concerns about plug-in devices. I'm not really concerned about plug-in devices. Shanker said above that _RST would work for them: ACPI-reset should work for plug-in devices as well as long as firmware has _RST method defined in ACPI-device associated with the PCIe hot-plug slot. and I disagreed. _RST *cannot* work for plug-in devices because firmware doesn't know what device will be plugged in and therefore cannot provide the required device-specific _RST. That's all I wanted to clarify. Bjorn