From: bugzilla-daemon@freedesktop.org Subject: [Bug 110509] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout Date: Mon, 29 Apr 2019 22:41:26 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1355276537==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 3B0D889359 for ; Mon, 29 Apr 2019 22:41: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 --===============1355276537== Content-Type: multipart/alternative; boundary="15565776860.BDA49f.1320" Content-Transfer-Encoding: 7bit --15565776860.BDA49f.1320 Date: Mon, 29 Apr 2019 22:41: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=3D110509 --- Comment #8 from James.Dutton@gmail.com --- Thank you for the feedback. Is there a data sheet somewhere that might help me work out a fix for this. What I would like is: 1) A way to scan all the engines and detect which ones have hung. 2) A way to intentionally halt an engine and tidy up. So that the modprobe, rmmod, modprobe scenario works.=20 3) data sheet details regarding how to un-hang each engine. Specifically, in this case the IP block . Maybe that is not possible, and (I think you are hinting at it), one cannot reset an individual IP block. So the approach is to suspend the card, and t= hen do a full reset of the entire card, then resume. I think a different suspend process would be better. We have a for_each within the suspend code. The output of that code should = not be a single error code, but instead an array indicating the current state of each engine (running/hung), the intended state and status of whether the intention worked or failed. If the loop through the for_each, it could comp= are the current state and intended state, and attempt to reach the intended sta= te, and report an error code for each engine. Then the code to achieve the transition can been different depending on the current -> intended transiti= on. i.e. code for running -> suspended, can be different than code for hung -> suspended. The code already needs to know which engines are enabled/disable= d=20 (Vega 56 vs Vega 64) I can hang this IP block at will. I have 2 games that hang it within seconds of starting. --=20 You are receiving this mail because: You are the assignee for the bug.= --15565776860.BDA49f.1320 Date: Mon, 29 Apr 2019 22:41: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

Commen= t # 8 on bug 11050= 9 from James.Dutt= on@gmail.com
Thank you for the feedback.
Is there a data sheet somewhere that might help me work out a fix for this.
What I would like is:
1) A way to scan all the engines and detect which ones have hung.
2) A way to intentionally halt an engine and tidy up. So that the modprobe,
rmmod, modprobe scenario works.=20
3) data sheet details regarding how to un-hang each engine.
Specifically, in this case the IP block <dm>.

Maybe that is not possible, and (I think you are hinting at it), one cannot
reset an individual IP block. So the approach is to suspend the card, and t=
hen
do a full reset of the entire card, then resume.

I think a different suspend process would be better.
We have a for_each within the suspend code. The output of that code should =
not
be a single error code, but instead an array indicating the current state of
each engine (running/hung), the intended state and status of whether the
intention worked or failed. If the loop through the for_each, it could comp=
are
the current state and intended state, and attempt to reach the intended sta=
te,
and report an error code for each engine. Then the code to achieve the
transition can been different depending on the current -> intended trans=
ition.
i.e. code for running -> suspended, can be different than code for hung =
->
suspended. The code already needs to know which engines are enabled/disable=
d=20
(Vega 56 vs Vega 64)

I can hang this IP block <dm> at will. I have 2 games that hang it wi=
thin
seconds of starting.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15565776860.BDA49f.1320-- --===============1355276537== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1355276537==--