Summary: | [SNB] gpu hang in mesa 7.11 | ||
---|---|---|---|
Product: | Mesa | Reporter: | Mateusz Kaduk <mateusz.kaduk> |
Component: | Drivers/DRI/i965 | Assignee: | Kenneth Graunke <kenneth> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | medium | CC: | eric, eugeni, idr, k00_fol |
Version: | git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | cat /tmp/debugfs/dri/0/i915_error_state |
Description
Mateusz Kaduk
2011-08-23 13:22:51 UTC
As I commented on irc, the i915_error_state from debugfs would be interesting in this case. As you don't have /sys/kernel/debug, try doing the following: # mkdir /tmp/debugfs # mount -t debugfs /tmp/debugfs /tmp/debugfs and attach the content of /tmp/debugfs/dri/0/i915_error_stace to this bug. Thanks! Created attachment 50613 [details]
cat /tmp/debugfs/dri/0/i915_error_state
File after launching game which results in black screen(turned off) and reboot was needed.
After upgrading to 7.11 in fedora 15 I get these periodic GPU hangs in Neverwinter nights. Slightly less painful to trigger as they seem to be non fatal in (est.) 19 times out of 20. The i915_error_state dumps are rather big (just above 2MB), so I will only upload them on request. ...and after trying current git (using environment variables to select it) my GPU freezes with NwN. are gone. Sorry for my noise. Spoke to soon, had compiled only the 64 bit driver (which wasnt used), hangs persist in git.
> Sorry for my noise.
Could you try bisecting the issue? Or inform the version of mesa where everything was working correctly? Also, what is your video card/system generation - is it sandy bridge? Thanks! > Could you try bisecting the issue? Bisect resulted in following first BAD commit: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3e5d36267d8c9536490c902f785137a7fa0637fc > Also, what is your video card/system generation - is it sandy bridge? It is also a SandyBridge (from /proc/cpuinfo) cpu family : 6 model : 42 model name : Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz stepping : 7 This bisect was done with Neverwinter nights 1.69 (which use 32-bit libGL). To rule out possible issues, could you see if it can be reproduced with semaphores disabled (e.g., i915.semaphores=0 boot parameter) please? With i915.semaphores=0 It still hangs for me in Neverwinter nights. Did not test other game. Newest mesa (rev 4bc5bfb641bce931bf35f0e78ec2b44263d152ba) has fixed my hangs. Can you test with "Heroes of Newerth" too, Mateusz? (In reply to comment #10) > Newest mesa (rev 4bc5bfb641bce931bf35f0e78ec2b44263d152ba) has fixed my hangs. > > Can you test with "Heroes of Newerth" too, Mateusz? I can test, but I need instructions how to do it step by step. Also I don't want to install a lot of *-dev libraries and stuff that I don't normally need. Pardon my previous comment above. The revision given does _not_ fix the gpu hangs. I must have had a dirty build. Bug is still present. I just upgraded to Fedora 16 alpha, and now the hangs are back. I used the same mesa source tree that I had working before the upgrade. I even tried to get the SRPM of xorg-x11-drv-intel used in F15 (version 15) but that didnt change anything. Any ideas? I got it 'working' (at least not triggering the hang) again. I had forgot to add myself to the video group, which caused the driver fallback to indirect renderering. I've removed 'indirect rendering' in the title as that has nothing to do with the bug. Please ignore my comments 10, 12, 13 and 14. Comment 7: Bisect resulted in following first BAD commit: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3e5d36267d8c9536490c902f785137a7fa0637fc Still applies, I installed Heroes of Newerth and played trough the tutorial without hangs using Fedora 16 libdrm.x86_64 2.4.26-1.fc16 mesa-dri-drivers.x86_64 7.11-4.fc16 mesa-dri-filesystem.x86_64 7.11-4.fc16 mesa-libGL.i686 7.11-4.fc16 mesa-libGL.x86_64 7.11-4.fc16 mesa-libGL-devel.i686 7.11-4.fc16 mesa-libGL-devel.x86_64 7.11-4.fc16 mesa-libGLU.x86_64 7.11-4.fc16 mesa-libGLU-devel.x86_64 7.11-4.fc16 mesa-libGLw.x86_64 6.5.1-9.fc15 xorg-x11-drv-intel.x86_64 2.16.0-2.fc16 xorg-x11-server-Xorg.x86_64 1.11.1-1.fc16 I also checked with mesa git and they appear to work as well. (Still problems with Neverwinter, but my track record on this bug clearly shows why filing separate bugs for separate applications is a good idea) (unintentional resolved) You might try this patch: http://lists.freedesktop.org/archives/mesa-dev/2011-October/013518.html Hopefully this patch (now in Mesa master) should fix the issue. commit 3cc0a7be23ab603ed40d602595f673a44e079885 Author: Kenneth Graunke <kenneth@whitecape.org> Date: Fri Oct 21 01:03:37 2011 -0700 i965: Apply post-sync non-zero workaround to homebrew workaround. In commit 3e5d3626, Eric added a homebrew workaround to fix GPU hangs in the Mesa "engine" demo and oglc's api-texcoord test. Unfortunately, his PIPE_CONTROL contains a Depth Stall, which necessitates the post-sync non-zero workaround, Fixes GPU hangs in Civilization 4, PlaneShift, and 3DMMES. Hopefully Heroes of Newerth as well, though I haven't tested that. NOTE: This is candidate for the 7.11 branch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40324 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41096 Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-and-tested-by: Eric Anholt <eric@anholt.net> I could never reproduce it with Heroes of Newerth, but that patch (commit 3cc0a7be23ab603ed40d602595f673a44e079885 ) definitely fixes the GPU hangs in Neverwinter nights, and I've good hopes it fixes a seldom struck hang in supertuxkart too. On the latter, I will know in one or two weeks. :) Thank you very much! |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.