https://bugs.freedesktop.org/show_bug.cgi?id=61747
Priority: medium Bug ID: 61747 Assignee: dri-devel@lists.freedesktop.org Summary: [r600g] GPU lockup when playing WoW with 3.8.1 kernel. Severity: major Classification: Unclassified OS: Linux (All) Reporter: rankincj@googlemail.com Hardware: x86-64 (AMD64) Status: NEW Version: git Component: Drivers/Gallium/r600 Product: Mesa
Created attachment 75852 --> https://bugs.freedesktop.org/attachment.cgi?id=75852&action=edit dmesg output, showing lockup and failed reset.
Playing WoW on Fedora's kernel-3.8.1-201.fc18.x86_64, and the GPU locked up moments later. A GPU reset did not succeed in restoring anything, and I was forced to "kill -HUP" the Xorg process from a virtual console.
Mesa's git HEAD is:
commit 0b6e72f8d75a31ef233ad5be0c9f59497880657f Author: Brian Paul brianp@vmware.com Date: Fri Mar 1 17:36:34 2013 -0700
st/mesa: add switch case for ir_txf_ms to silence warning
https://bugs.freedesktop.org/show_bug.cgi?id=61747
--- Comment #1 from Chris Rankin rankincj@googlemail.com --- Created attachment 75853 --> https://bugs.freedesktop.org/attachment.cgi?id=75853&action=edit Xorg.0.log file from the failed session.
https://bugs.freedesktop.org/show_bug.cgi?id=61747
--- Comment #2 from Chris Rankin rankincj@googlemail.com --- I have successfully played WoW using this exact same version of Mesa and a stock x86_64 3.8.1 kernel with my RV790.
https://bugs.freedesktop.org/show_bug.cgi?id=61747
--- Comment #3 from Chris Rankin rankincj@googlemail.com --- WTF? According to glxinfo, it's not using r600g at all...?!?!
$ LIBGL_DEBUG=verbose LD_LIBRARY_PATH=/usr/local/lib64 glxinfo name of display: :1 libGL: screen 0 does not appear to be DRI2 capable libGL: OpenDriver: trying /usr/local/lib64/dri/swrast_dri.so libGL error: dlopen /usr/local/lib64/dri/swrast_dri.so failed (/usr/local/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory) libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast display: :1 screen: 0 direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
OpenGL vendor string: VMware, Inc. OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 0x301) OpenGL version string: 1.4 (2.1 Mesa 9.0.1)
It can't find swrast_dri.so because I didn't compile it, but r600g_dri.so is definitely there!
Fedora's gnome-shell process has suspiciously switched to swrast_dri.so too. I have no idea what has just happened.
https://bugs.freedesktop.org/show_bug.cgi?id=61747
--- Comment #4 from Chris Rankin rankincj@googlemail.com --- After a reboot, the new glxinfo reports:
OpenGL vendor string: X.Org OpenGL renderer string: Gallium 0.4 on AMD CAICOS OpenGL version string: 3.0 Mesa 9.2-devel (git-0b6e72f) OpenGL shading language version string: 1.30
I am guessing that it switched to swrast_dri after it failed to recover from the GPU lockup correctly.
https://bugs.freedesktop.org/show_bug.cgi?id=61747
Chris Rankin rankincj@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|[r600g] GPU lockup when |[r600g] GPU lockup when |playing WoW with 3.8.1 |playing WoW with HD6450 and |kernel. |3.8.1 kernel
https://bugs.freedesktop.org/show_bug.cgi?id=61747
--- Comment #5 from Alex Deucher agd5f@yahoo.com --- Can you bisect mesa?
https://bugs.freedesktop.org/show_bug.cgi?id=61747
--- Comment #6 from Chris Rankin rankincj@googlemail.com --- (In reply to comment #5)
Can you bisect mesa?
I'm not sure that makes sense. The crashes started after Fedora upgraded its 3.7.9 kernel to one based on 3.8.1, and so I have no idea if there's even a "good" commit in Mesa to start bisecting from.
https://bugs.freedesktop.org/show_bug.cgi?id=61747
--- Comment #7 from Alex Deucher agd5f@yahoo.com --- (In reply to comment #6)
(In reply to comment #5)
Can you bisect mesa?
I'm not sure that makes sense. The crashes started after Fedora upgraded its 3.7.9 kernel to one based on 3.8.1, and so I have no idea if there's even a "good" commit in Mesa to start bisecting from.
I'm guessing the kernel update enabled some additional feature in mesa (htile or async/cp dma support). Does disabling htile support help? Set env var R600_HYPERZ=0
https://bugs.freedesktop.org/show_bug.cgi?id=61747
--- Comment #8 from Chris Rankin rankincj@googlemail.com --- (In reply to comment #7)
Does disabling htile support help? Set env var R600_HYPERZ=0
Yes, this prevents the GPU from locking up.
https://bugs.freedesktop.org/show_bug.cgi?id=61747
Alex Deucher agd5f@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|[r600g] GPU lockup when |[r600g] GPU lockup when |playing WoW with HD6450 and |playing WoW with HD6450 |3.8.1 kernel |with htile enabled
https://bugs.freedesktop.org/show_bug.cgi?id=61747
--- Comment #9 from Alex Deucher agd5f@yahoo.com --- Possibly a duplicate of bug 59592 or bug 60848.
https://bugs.freedesktop.org/show_bug.cgi?id=61747
--- Comment #10 from Chris Rankin rankincj@googlemail.com --- *** Bug 62577 has been marked as a duplicate of this bug. ***
https://bugs.freedesktop.org/show_bug.cgi?id=61747
--- Comment #11 from Jerome Glisse glisse@freedesktop.org --- Please check if below patch fix the issue:
http://people.freedesktop.org/~glisse/0001-r600g-force-full-cache-for-hyperz...
https://bugs.freedesktop.org/show_bug.cgi?id=61747
--- Comment #12 from Chris Rankin rankincj@googlemail.com --- Created attachment 78735 --> https://bugs.freedesktop.org/attachment.cgi?id=78735&action=edit dmesg output showing GPU lockup
No, it doesn't appear to. I compiled this version of Mesa after recompiling libdrm-2.4.44-2.fc19.src.rpm for F18:
OpenGL core profile version string: 3.1 (Core Profile) Mesa 9.2.0 (git-3bba787) OpenGL core profile shading language version string: 1.40 OpenGL core profile context flags: (none)
https://bugs.freedesktop.org/show_bug.cgi?id=61747
--- Comment #13 from Chris Rankin rankincj@googlemail.com --- This version of Mesa is a lot more promising!
OpenGL vendor string: X.Org OpenGL renderer string: Gallium 0.4 on AMD CAICOS OpenGL core profile version string: 3.1 (Core Profile) Mesa 9.2.0 (git-8c347d4) OpenGL core profile shading language version string: 1.40 OpenGL core profile context flags: (none)
No lock-ups so far!
https://bugs.freedesktop.org/show_bug.cgi?id=61747
Jerome Glisse glisse@freedesktop.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #14 from Jerome Glisse glisse@freedesktop.org --- Closing
dri-devel@lists.freedesktop.org