Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp132346pxy; Tue, 4 May 2021 20:57:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuT3vYQZmEa5sdMKDFT0kC5k1AzLnOJxTvKHCyYkkHkqvOlsIZdnvOb0hzug4mWahF0odT X-Received: by 2002:a17:902:6b81:b029:ea:dcc5:b841 with SMTP id p1-20020a1709026b81b02900eadcc5b841mr29131829plk.29.1620187074711; Tue, 04 May 2021 20:57:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620187074; cv=none; d=google.com; s=arc-20160816; b=pz0M1ebsbzAqs1yPxheG6PJqDX/uYJr26rJT30h6pln22gwY0XaJqSI87mRQDxbsTG FxU3w16CVJqb/Doarb4t/SJGeTrrPBHeVjgGP+7Z7Sqk0ALP7Dk8WU3WzRoCKyROk83S r+b4s7oxJvOssMBq6XPCzcMMLkbe4IoseccLAOTIeNh5rhMs+VXZJb2srA/9WCv20Ym+ uKY957A8B/xY1fIw+RnfVrlWYwNu92GQ0XwCfD09ZTR5eWyV12B9xDHiWTfyw5r3QxC3 /dL20CwfEllkqCACdEl7e6RHe4OftEgsPcbtyamPY15BnhC42+9M+5RpmwrAvt23yKBb 7Ehw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=raPVEE+POqvqWKpHqKk8/hWTNW82CsKc6mZrTESP9RA=; b=FOFeGpXArailq3ZPHXwErkOqVOTuMgFjxDTyUKSU4qpEUwOE/zuIBL1tP2fldvggd4 A+J3DAf2ynn+/7Y5GtggYsxXIJ00VWiJYGJkmUl0U6VS7dmVNqpg6F5yGm5YljVXtJ9k +xYMgaczKMAPrqxTRp8rTH51NI2lcbY1I3K/fq2tDREiY7b9ojQQYfTpj5IQ69edi9Pe WOCfvU9ayxXsFs0I40DFfB57bHvDazDT7dLnnbnH9x/ExtQS/QUIqAQzQhqAA1R3h/um 408/XHORtHR2i2U7tsSyagTeORwetwDP/ND0mRRakBKZbkS8LR0jFN/GUPLmk99TThG4 eczQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nqvka04Z; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c16si6035373pls.4.2021.05.04.20.57.43; Tue, 04 May 2021 20:57:54 -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=@gmail.com header.s=20161025 header.b=nqvka04Z; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231380AbhEED54 (ORCPT + 99 others); Tue, 4 May 2021 23:57:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230500AbhEED5z (ORCPT ); Tue, 4 May 2021 23:57:55 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5C83C061574; Tue, 4 May 2021 20:56:58 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id i67so381853qkc.4; Tue, 04 May 2021 20:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=raPVEE+POqvqWKpHqKk8/hWTNW82CsKc6mZrTESP9RA=; b=nqvka04ZEshde8nXMTIxfIWvfnA6uVudEOMtY3I4YKFK6XvnBssv50LTuD4k5ezOLd +fl5ozLjvA7y8JD87TR/9pQ62JWWsVKkqzaIxPDYfM/4AxEByHEW2B58wM3Zm2ExKjdN L0Cj5sw1tmKXCbZw09RI2eBQ/QRvQllhr3Ukwa0ltbo712Kj7kSDx2+mBa0pSA6yH3v0 mf/Xlejx31L9sCdRrtRk4sCZEKmnfCDl4RTG3A4QC2pHjhvuzbfCPWV62Pz0SOoFUjRb l5+13gERX5Fcc+Fe9iKmi+NTizOSvpFDrAILyHupx4XQpaSiydXSLbnliiLX/aRvomY0 2T/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=raPVEE+POqvqWKpHqKk8/hWTNW82CsKc6mZrTESP9RA=; b=mFLa3+6xPyX+oV/ApFxPNRyZ0krpSW58oUKGW/eyXj6drK2iByaN4PndlwdJOt/74v SlcVJbOitQfbE7PqPj76lNXokO/3KCOmRccZC8LOKcgv5OrMB7XYUrXqlJ0+H7TspoLp YJ5MHejOAue7l+LHwqj/arMx7GCCGIrQXi66W5w3GgEYuAypJ6lCsLQELqIsMDQAQMZp k3p9FWvUvOu/ZVuYkJ12vxq+jRV1392ovy1jdtAl1wBRlTzwpuei5yE5GeazOgHW34s0 5V7g5XsHK3vDVsM5ZRc1F6QuQN2LU3yIbe4VYD4V8ZV4XIJZA15qKR/qqqYj2VJB0DPQ 9Ksw== X-Gm-Message-State: AOAM530pSdtOgPaQ2ackjjNxZmC7Cpe3QUWSL6zeYlqVbVP1S7XyaxL0 fipyhT89iP9aELOR3S/0xOUWUPtG0Vtyx3IOQy8= X-Received: by 2002:a37:de14:: with SMTP id h20mr28014944qkj.34.1620187018114; Tue, 04 May 2021 20:56:58 -0700 (PDT) MIME-Version: 1.0 References: <478efe56-fb64-6987-f64c-f3d930a3b330@nvidia.com> <20210505021236.GA1244944@bjorn-Precision-5520> In-Reply-To: <20210505021236.GA1244944@bjorn-Precision-5520> From: "Oliver O'Halloran" Date: Wed, 5 May 2021 13:56:47 +1000 Message-ID: Subject: Re: [PATCH v4 2/2] PCI: Enable NO_BUS_RESET quirk for Nvidia GPUs To: Bjorn Helgaas Cc: Shanker R Donthineni , Alex Williamson , Bjorn Helgaas , linux-pci , Linux Kernel Mailing List , Sinan Kaya , Vikram Sethi , Amey Narkhede Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Power cycling the slot or just re-asserting #PERST probably. IBM has been doing that on Power boxes since forever and it mostly works. Mostly.