From: bugzilla-daemon@freedesktop.org Subject: [Bug 94900] HD6950 GPU lockup loop with various steam games (octodad[always], saints row 4[always], dead island[always], grid autosport[sometimes]) Date: Sat, 23 Jul 2016 08:43:33 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1496316155==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id DC1976E13B for ; Sat, 23 Jul 2016 08:43:33 +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 --===============1496316155== Content-Type: multipart/alternative; boundary="14692634121.d118.26360"; charset="UTF-8" --14692634121.d118.26360 Date: Sat, 23 Jul 2016 08:43:32 +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=3D94900 Heiko changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lil_tux@web.de --- Comment #21 from Heiko --- Created attachment 125271 --> https://bugs.freedesktop.org/attachment.cgi?id=3D125271&action=3Dedit Simple workaround 'Fixes' the octodad trace for me. That stops sb from using fold_assoc to fo= ld ADD_INT(ADD_INT(x, 1), 2) for scalar registers. Problem is, that sb currently optimizes away the loop counter node, due to optimizing its reference out of another node and marking it as unused/dead, finally nuking the counter increment as well. Thus the loop break condition= is never met and the gpu hangs due to an endless loop, and finally, gets reset. If mesa is compiled in debug mode, sb checks the shader it would put out and fails assertions with unset registers... just being the loop counter of the three loops in the octodad case (shader 70). On a side note, this scenario might be already known for phi nodes, as the comment in sb_expr.cpp:expr_handler::fold() mentions similar issues... --=20 You are receiving this mail because: You are the assignee for the bug.= --14692634121.d118.26360 Date: Sat, 23 Jul 2016 08:43:32 +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 H= eiko changed bug 94900<= /a>
What Removed Added
CC   lil_tux@web.de

Commen= t # 21 on bug 94900<= /a> from Heiko
Created attachment 125271 =
[details] [review]
Simple workaround

'Fixes' the octodad trace for me. That stops sb from using fold_assoc to fo=
ld
ADD_INT(ADD_INT(x, 1), 2) for scalar registers.

Problem is, that sb currently optimizes away the loop counter node, due to
optimizing its reference out of another node and marking it as unused/dead,
finally nuking the counter increment as well. Thus the loop break condition=
 is
never met and the gpu hangs due to an endless loop, and finally, gets reset.

If mesa is compiled in debug mode, sb checks the shader it would put out and
fails assertions with unset registers... just being the loop counter of the
three loops in the octodad case (shader 70).

On a side note, this scenario might be already known for phi nodes, as the
comment in sb_expr.cpp:expr_handler::fold() mentions similar issues...


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