From: bugzilla-daemon@freedesktop.org Subject: [Bug 108854] [polaris11] - GPU Hang - ring gfx timeout Date: Fri, 22 Feb 2019 18:31:37 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0305269158==" 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 BF6AF89807 for ; Fri, 22 Feb 2019 18:31:37 +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 --===============0305269158== Content-Type: multipart/alternative; boundary="15508602972.bC44BCEEF.20839" Content-Transfer-Encoding: 7bit --15508602972.bC44BCEEF.20839 Date: Fri, 22 Feb 2019 18:31:37 +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=3D108854 --- Comment #17 from Alex Deucher --- (In reply to Tom Seewald from comment #16) > But in general shouldn't the kernel driver (ideally) be able to handle me= sa > passing malformed/bad commands rather than freezing the device (step 3 to > 4)? I understand not every case can be covered, and I also understand th= at > GPU resets need to be supported in user space for seamless recovery, but > shouldn't the driver "unstick" itself enough so the computer can be reboo= ted > normally? These are not generally bad data from mesa per se. There's not really a go= od way to validate all combinations of state sent to the GPU are valid or not.= =20 There are hundreds of registers and state buffers that the GPU uses to proc= ess the 3D pipeline. It's impossible to test every combination of state and dispatch and ordering. The hangs are generally due to a deadlock in the hw= due to a bad interaction of states set by the application. E.g., some hw block= is waiting on a signal from another hw block which won't get sent because the = user sent another state update which stops that signal. The GPU reset should generally be able recover the GPU, but in some cases y= ou may end up with a deadlock in sw in the kernel somewhere. --=20 You are receiving this mail because: You are the assignee for the bug.= --15508602972.bC44BCEEF.20839 Date: Fri, 22 Feb 2019 18:31:37 +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 # 17 on bug 10885= 4 from Alex Deucher
(In reply to Tom Seewald from comment #16)

> But in general shouldn't the kernel driver (idea=
lly) be able to handle mesa
> passing malformed/bad commands rather than freezing the device (step 3=
 to
> 4)?  I understand not every case can be covered, and I also understand=
 that
> GPU resets need to be supported in user space for seamless recovery, b=
ut
> shouldn't the driver "unstick" itself enough so the computer=
 can be rebooted
> normally?

These are not generally bad data from mesa per se.  There's not really a go=
od
way to validate all combinations of state sent to the GPU are valid or not.=
=20
There are hundreds of registers and state buffers that the GPU uses to proc=
ess
the 3D pipeline.  It's impossible to test every combination of state and
dispatch and ordering.  The hangs are generally due to a deadlock in the hw=
 due
to a bad interaction of states set by the application.  E.g., some hw block=
 is
waiting on a signal from another hw block which won't get sent because the =
user
sent another state update which stops that signal.

The GPU reset should generally be able recover the GPU, but in some cases y=
ou
may end up with a deadlock in sw in the kernel somewhere.


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