Skip to contentSkip to conversation

The Stanley Parable GPU hang when starting a new game

Bug 99219 [email protected] 1 participant 7 messages Dec 29, 2016 – Jan 5, 2017

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=99219

Bug ID: 99219
Summary: The Stanley Parable GPU hang when starting a new game
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

RX 480 with llvm 4.0.0svn_r290670, mesa git

Tested with linux 4.9 and 4.10-rc1, happens on both. Tested with ingame settings medium and highest, happens with both.

This apitrace hangs my GPU:
https://haagch.frickel.club/files/stanley_linux.trace.xz

Dez 29 11:21:58 c-l kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, last signaled seq=6391, last emitted seq=6394
Dez 29 11:21:58 c-l kernel: [drm] IP block:gfx_v8_0 is hung!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=99219

--- Comment #1 from Christoph Haag <[email protected]> --- Created attachment 128688
--> https://bugs.freedesktop.org/attachment.cgi?id=128688&action=edit
full dmesg

Apparently this didn't attach correctly when I created the bug.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=99219

--- Comment #2 from Samuel Pitoiset <[email protected]> --- Thanks for reporting this.

I can reproduce the hang on rx 480 with latest mesa/llvm git.

It hangs at drawcall 674985.

I will investigate.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

author Tested-by Edmondo Tommasina Reviewed-by Nicolai Hähnle
#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=99219

--- Comment #3 from Samuel Pitoiset <[email protected]> --- It's actually a regression in mesa, works fine with 13.0.2.

After bisecting, the first bad commit is:

commit ed3190b3f3a776fc8c75b1e6130a88079166d115

Author: Marek Olšák <[email protected]>
Date:   Sun Nov 13 18:41:43 2016 +0100
    radeonsi: don't export ClipVertex and ClipDistance[] if clipping is

disabled

This is the first user of optimized monolithic shader variants.

Cull distances can't be disabled by states.

But this doesn't seem to be actually related to the clip planes optimization because
if you replay the trace with R600_DUMP_SHADERS=y, it no longer crashes. If my understanding
is correct, it won't compile shaders asynchronously. Forcing num_compiler_threads = 1 in
si_pipe.c also "fixes" the hang.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=99219

--- Comment #4 from Marek Olšák <[email protected]> --- This should fix it:
https://patchwork.freedesktop.org/patch/130844/

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=99219

Marek Olšák <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Marek Olšák <[email protected]> --- Fixed by: 3753dc896dfe98b246ba8b030aab27a9928533af Closing.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel