From: bugzilla-daemon@freedesktop.org Subject: [Bug 108585] *ERROR* hw_init of IP block failed -22 Date: Wed, 31 Oct 2018 15:13:27 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1993941171==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id DCB906E319 for ; Wed, 31 Oct 2018 15:13:26 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1993941171== Content-Type: multipart/alternative; boundary="15409988060.c0773e7.6105" Content-Transfer-Encoding: 7bit --15409988060.c0773e7.6105 Date: Wed, 31 Oct 2018 15:13:26 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D108585 --- Comment #14 from Alex Deucher --- Created attachment 142303 --> https://bugs.freedesktop.org/attachment.cgi?id=3D142303&action=3Dedit possible fix (In reply to Benjamin Herrenschmidt from comment #12) > We have no control on what firmware is loaded by the target distro so the > right thing is going to reset the adapter. >=20 > We'll probably need to add something to the amdgpu shutdown() path to for= ce > an adapter reset. Does the attached patch help? I'd been hesitant to add reset to the shutdo= wn path because it adds latency to the regular shutdown path and users complain when that slows down. >=20 > Do you have details of what specific PCIe config space write you use ? FL= R ? The reset sequence is asic specific. older parts just happened to use PCI config space to trigger a GPU reset via an AMD specific sequence. Newer GP= Us reset via the PSP. FLR is only available on SR-IOV capable skus so it's no= t a general solution. --=20 You are receiving this mail because: You are the assignee for the bug.= --15409988060.c0773e7.6105 Date: Wed, 31 Oct 2018 15:13:26 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 14 on bug 10858= 5 from Alex Deucher
Created attachment 142303 =
[details] [review]
possible fix

(In reply to Benjamin Herrenschmidt from comment #12)
> We have no control on what firmware is loaded by=
 the target distro so the
> right thing is going to reset the adapter.
>=20
> We'll probably need to add something to the amdgpu shutdown() path to =
force
> an adapter reset.

Does the attached patch help?  I'd been hesitant to add reset to the shutdo=
wn
path because it adds latency to the regular shutdown path and users complain
when that slows down.

>=20
> Do you have details of what specific PCIe config space write you use ?=
 FLR ?

The reset sequence is asic specific.  older parts just happened to use PCI
config space to trigger a GPU reset via an AMD specific sequence.  Newer GP=
Us
reset via the PSP.  FLR is only available on SR-IOV capable skus so it's no=
t a
general solution.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15409988060.c0773e7.6105-- --===============1993941171== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1993941171==--