Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54CC1C43461 for ; Wed, 2 Sep 2020 21:36:29 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2872A20E65 for ; Wed, 2 Sep 2020 21:36:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="fFbOZpfr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2872A20E65 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=amd-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D033E6E0D5; Wed, 2 Sep 2020 21:36:28 +0000 (UTC) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id B77156E0D5 for ; Wed, 2 Sep 2020 21:36:27 +0000 (UTC) Received: from localhost (47.sub-72-107-117.myvzw.com [72.107.117.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3A7B9207EA; Wed, 2 Sep 2020 21:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599082587; bh=WtN5ltS9PHHpdTZya+dK5ycxCgNnaYjKvrzI0N35L7E=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=fFbOZpfrBzvv2/XsBGaT9H1DlGZW08pDQNjf7OPiQ6TxJS2U3kpfeneJqK2aubOrT 1VoK0IECBc/Hp/q++VFYMbmXNDEWBrFS/6LQ4MJ5FlEwyajOoUai2YFBZSpujMuEKd YgH1UbCdcyxMJukiRgSEoseDkERa6mCUlAUzSQv8= Date: Wed, 2 Sep 2020 16:36:25 -0500 From: Bjorn Helgaas To: Andrey Grodzovsky Subject: Re: [PATCH v4 0/8] Implement PCI Error Recovery on Navi12 Message-ID: <20200902213625.GA269978@bjorn-Precision-5520> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1599072130-10043-1-git-send-email-andrey.grodzovsky@amd.com> X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sathyanarayanan.kuppuswamy@linux.intel.com, linux-pci@vger.kernel.org, nirmodas@amd.com, amd-gfx@lists.freedesktop.org, bhelgaas@google.com, luben.tuikov@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Dennis.Li@amd.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" On Wed, Sep 02, 2020 at 02:42:02PM -0400, Andrey Grodzovsky wrote: > Many PCI bus controllers are able to detect a variety of hardware PCI errors on the bus, > such as parity errors on the data and address buses, A typical action taken is to disconnect > the affected device, halting all I/O to it. Typically, a reconnection mechanism is also offered, > so that the affected PCI device(s) are reset and put back into working condition. > In our case the reconnection mechanism is facilitated by kernel Downstream Port Containment (DPC) > driver which will intercept the PCIe error, remove (isolate) the faulting device after which it > will call into PCIe recovery code of the PCI core. > This code will call hooks which are implemented in this patchset where the error is > first reported at which point we block the GPU scheduler, next DPC resets the > PCI link which generates HW interrupt which is intercepted by SMU/PSP who > start executing mode1 reset of the ASIC, next step is slot reset hook is called > at which point we wait for ASIC reset to complete, restore PCI config space and run > HW suspend/resume sequence to resinit the ASIC. > Last hook called is resume normal operation at which point we will restart the GPU scheduler. > > More info on PCIe error handling and DPC are here: > https://www.kernel.org/doc/html/latest/PCI/pci-error-recovery.html > https://patchwork.kernel.org/patch/8945681/ > > v4:Rebase to 5.9 kernel and revert PCI error recovery core commit which breaks the feature. What does this apply to? I tried - v5.9-rc1 (9123e3a74ec7 ("Linux 5.9-rc1")), - v5.9-rc2 (d012a7190fc1 ("Linux 5.9-rc2")), - v5.9-rc3 (f75aef392f86 ("Linux 5.9-rc3")), - drm-next (3393649977f9 ("Merge tag 'drm-intel-next-2020-08-24-1' of git://anongit.freedesktop.org/drm/drm-intel into drm-next")), - linux-next (4442749a2031 ("Add linux-next specific files for 20200902")) but it doesn't apply cleanly to any. > Andrey Grodzovsky (8): > drm/amdgpu: Avoid accessing HW when suspending SW state > drm/amdgpu: Block all job scheduling activity during DPC recovery > drm/amdgpu: Fix SMU error failure > drm/amdgpu: Fix consecutive DPC recovery failures. > drm/amdgpu: Trim amdgpu_pci_slot_reset by reusing code. > drm/amdgpu: Disable DPC for XGMI for now. > drm/amdgpu: Minor checkpatch fix > Revert "PCI/ERR: Update error status after reset_link()" > > drivers/gpu/drm/amd/amdgpu/amdgpu.h | 6 + > drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 247 +++++++++++++++++++++-------- > drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 +- > drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 6 + > drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 6 + > drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 18 ++- > drivers/gpu/drm/amd/amdgpu/nv.c | 4 +- > drivers/gpu/drm/amd/amdgpu/soc15.c | 4 +- > drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 3 + > drivers/pci/pcie/err.c | 3 +- > 10 files changed, 222 insertions(+), 79 deletions(-) > > -- > 2.7.4 > _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx