Bug 44141

Summary: ATI R600: GPU lockup when using OpenGL
Product: xorg Reporter: Fabrice <fabrice.jade>
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: critical    
Priority: medium CC: cheako+bugs_freedesktop_org
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
/var/log/messages + lspci
none
output of dmesg
none
output of glxinfo
none
Xorg.0.log none

Description Fabrice 2011-12-25 14:27:29 UTC
Created attachment 54815 [details]
/var/log/messages + lspci

Hardware:
ATI Radeon HD2900 GT
Software:
xorg-x11-drv-ati.x86_64 6.14.1-2.20110525gitfe5c42f51.fc15
Problem:
Every time I try tu use an OpenGL program my computer freeze.
For example with glxgears:
7 frames in 35.2 seconds =  0.199 FPS
Same with Tux or any game which require OpenGL and acceleration.
message:
see attachment; GPU lockup + GPU softreset
(Hardware works fine with catalyst)
Comment 1 Michel Dänzer 2011-12-28 01:37:52 UTC
Please attach (individually) the Xorg.0.log file and the output of dmesg and glxinfo.
Comment 2 Fabrice 2011-12-28 06:49:07 UTC
Created attachment 54896 [details]
output of dmesg
Comment 3 Fabrice 2011-12-28 06:49:52 UTC
Created attachment 54897 [details]
output of glxinfo
Comment 4 Fabrice 2011-12-28 06:52:21 UTC
Created attachment 54898 [details]
Xorg.0.log
Comment 5 Fabrice 2012-01-24 13:21:13 UTC
Do you need anything else or is there something so obvious in the attachments that I didn't saw?
Comment 6 Alex Deucher 2012-01-24 13:24:52 UTC
Is this still an issue with r600g from mesa git master?  There have been a few original R600 fixes since this bug was filed.
Comment 7 Fabrice 2012-02-08 02:43:56 UTC
Still an issue despite I upgrade to Fedora 16 (xorg-x11-drv-6.14.3-3.20111125git534fb6e41.fc16)
Unable to compile git source even with correct builddeps (error in r600_exa.c: In function 'R600SetAccelState':)
Comment 8 Michel Dänzer 2012-02-08 03:43:57 UTC
(In reply to comment #7)
> Unable to compile git source even with correct builddeps (error in r600_exa.c:
> In function 'R600SetAccelState':)

You need to build and run against libdrm 2.4.31 or from upstream Git.
Comment 9 Fabrice 2012-02-29 00:03:27 UTC
Well, F16 still provide libdrm 2.4.30 so I won't try to compile.
By the way, still an issue with xorg-x11-drv-ati 6.14.3.4.
Comment 10 Mike Mestnik 2012-04-29 08:59:42 UTC
This problem is similar to what I'm experiencing that it could be the same.

I'm wondering where I can discover what libdrm is used?  I feel like this should be in the glxinfo output, but I can't find it.  Either way, I'm upgrading libdrm to 2.4.33+git20120403.43704256-0ubuntu0ricotz.

Then I'll test my apitrace.
Comment 11 Fabrice 2012-04-29 13:11:33 UTC
I think it's a problem with Fedora, because all is right with Debian Squeeze and driver 6.13.1-2.
Comment 12 Mike Mestnik 2012-04-29 14:28:44 UTC
My issue may be resolved with:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=783e4da72aa203a645737dec81b001341951a942

You can check to see if your Debian drivers have this, however I don't think this is too likely.
Comment 13 Michel Dänzer 2012-04-30 10:55:43 UTC
(In reply to comment #12)
> My issue may be resolved with:
> http://cgit.freedesktop.org/mesa/mesa/commit/?id=783e4da72aa203a645737dec81b001341951a942

glxgears couldn't possibly be affected by the problem fixed by this.

I'm afraid you're focussing too much on the GPU lockup symptoms, which are similar between a huge number of different problems.
Comment 14 Mike Mestnik 2012-04-30 11:03:54 UTC
Yes,
  What's the determining factor in identifying symptoms that are likely to have a similar cause?

Is it one or more of these?:
GRBM_STATUS
GRBM_STATUS2
SRBM_STATUS
GRBM_SOFT_RESET
Comment 15 Alex Deucher 2012-04-30 12:12:34 UTC
(In reply to comment #14)
> Yes,
>   What's the determining factor in identifying symptoms that are likely to have
> a similar cause?

You don't really know until you figure out what the problem is or narrow it down to a simple reproducible test case.

> 
> Is it one or more of these?:
> GRBM_STATUS
> GRBM_STATUS2
> SRBM_STATUS
> GRBM_SOFT_RESET

Those will tell you what part of the pipeline is locked up, but just because the a particular block is hung doesn't mean it's the same bug causing the hang.
Comment 16 Mike Mestnik 2012-04-30 14:36:00 UTC
This is interesting, if we can't just lump every GPU lockup into one bug.  Then are you prepared to manage individual bug(s) for each user?

There are several bugs that I found looking for this one that didn't receive a reply.

I believe given the circumstances one bug for all GPU lockup cases that match specifically(even when the specifics are vary general) with no distinguishing features can be tracked.  Once a bug has distinguishing features the "one size fits all" bug can be cloned and this can then split the affected users 3 ways...  Ppl having one bug or the other and ppl having both.
Comment 17 Alex Deucher 2012-04-30 14:53:08 UTC
(In reply to comment #16)
> This is interesting, if we can't just lump every GPU lockup into one bug.  Then
> are you prepared to manage individual bug(s) for each user?
> 
> There are several bugs that I found looking for this one that didn't receive a
> reply.
> 
> I believe given the circumstances one bug for all GPU lockup cases that match
> specifically(even when the specifics are vary general) with no distinguishing
> features can be tracked.  Once a bug has distinguishing features the "one size
> fits all" bug can be cloned and this can then split the affected users 3
> ways...  Ppl having one bug or the other and ppl having both.

This isn't really the place to have this discussion.  If you want to discuss it further please inquire to the mailing list.  Generally unless your bug is an obvious duplicate (e.g., app X locks up on GPU Y), then file a new bug.  If it's determined to be a duplicate later, it can be marked as such.  Unfortunately, GPU lockups are hard to debug.
Comment 18 Michel Dänzer 2012-05-01 01:17:35 UTC
(In reply to comment #14)
>   What's the determining factor in identifying symptoms that are likely to have
> a similar cause?

Basically, if *anything* is different, it's better to assume different problems and keep separate reports. It's easy to combine reports that turn out to be duplicates, but mixing up different problems in a single report quickly turns it into an unmanageable mess.

Just as one obvious example in this case, the original report says: 'Every time I try tu use an OpenGL program my computer freeze.' Whereas your lockup only happens under very specific circumstances. That's a pretty big difference.
Comment 19 Fabrice 2012-06-17 01:27:56 UTC
In fact, the problem still the same on Debian when I use firmware-linux-nonfree to have 3D acceleration with xserver-xorg-video-radeon 6.14.2.
Perhaps is it hardware related, because I tried Pardus and have softreset, Opensuze freeze and crash. So do you think I should close the bug?
Comment 20 Mike Mestnik 2012-06-17 11:49:09 UTC
(In reply to comment #19)
> In fact, the problem still the same on Debian when I use firmware-linux-nonfree
> to have 3D acceleration with xserver-xorg-video-radeon 6.14.2.
> Perhaps is it hardware related, because I tried Pardus and have softreset,
> Opensuze freeze and crash. So do you think I should close the bug?

Even if it is hardware related, we would want to track the bug and prevent the lockup on that hardware.

However unless you know what the problem is, there is no way of knowing if the bug you are talking about has anything to do with this bug or not.  I'd like to hear what Alex's plans are, as may bug reporters will post here with a wide range of issues.  Sorting them out into individual bugs seams to be impossible until after the bug has been solved.
Comment 21 Martin Peres 2019-11-19 07:32:54 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/25.

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.