Skip to contentSkip to conversation

New: Reproducable GPU lockups since 3.8

Bug 59592 [email protected] 1 participant 14 messages Jan 19, 2013 – May 6, 2013

lore
Share & tools
lore
#0 lore raw

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

Priority: medium
Bug ID: 59592
Assignee: [email protected]
Summary: Reproducable GPU lockups since 3.8
Severity: major
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: Other
Status: NEW
Version: XOrg CVS
Component: DRM/Radeon
Product: DRI

Created attachment 73293
--> https://bugs.freedesktop.org/attachment.cgi?id=73293&action=edit
dmesg after lockups

Since upgrading my kernel to 3.8.0-rc3 using openSUSE packages, I reproducably get GPU lockups when running FlightGear right after the simulation starts. Takes a couple of minutes with some screen blanking to quit the application again. Afterwards the system continues running fine. Activating KDE's desktop effects may produce the same behaviour.

I'm using the following versions:
Mesa-9.1_git20130117-230.1.x86_64
libdrm2-2.4.99_git20130117-1.1.x86_64

X.Org X Server 1.12.3
Release Date: 2012-07-09

[    17.264] X Protocol Version 11, Revision 0
[    17.264] Build Operating System: openSUSE SUSE LINUX
[    17.264] Current Operating System: Linux sphinx 3.8.0-rc3-1-desktop #1 SMP
PREEMPT Thu Jan 10 20:49:22 UTC 2013 (7ce28dd) x86_64
[    17.264] Kernel command line: BOOT_IMAGE=/vmlinuz-3.8.0-rc3-1-desktop
root=/dev/mapper/system-root resume=/dev/system/swap quiet splash=silent
[    17.264] Build Date: 08 January 2013  11:56:04AM

I could do some git bisecting on the kernel or on Mesa if it helps and I'm fluent in C. Just tell me how I can help fixing this.

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

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

#1 lore raw

[Bug 59592] Radeon HD 5670: reproducable GPU lockups since kernel 3.8

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

[email protected] changed:

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

            Summary|Reproducable GPU lockups    |Radeon HD 5670:
                   |since 3.8                   |reproducable GPU lockups
                   |                            |since kernel 3.8

--- Comment #1 from [email protected] ---
I spent the afternoon bisecting the kernel and found the commit seeming to cause the GPU lockups

4ac0533abaec2b83a7f2c675010eedd55664bc26 is the first bad commit commit 4ac0533abaec2b83a7f2c675010eedd55664bc26

Author: Jerome Glisse <[email protected]>
Date:   Thu Dec 13 12:08:11 2012 -0500

drm/radeon: fix htile buffer size computation for command stream checker

Fix the size computation of the htile buffer.

:040000 040000 cf30bb09a4096c41959a27c6fc7d391dfa718028
fc571d6379b3b697a2bad0e5d097797f77c0a1b6 M drivers

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

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

#2 lore raw

[Bug 59592] Radeon HD 5670: reproducable GPU lockups since kernel 3.8

In reply to [email protected]

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

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------
Keywords| |regression

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

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

#3 lore raw

[Bug 59592] Radeon HD 5670: reproducable GPU lockups since kernel 3.8

In reply to [email protected]

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

Alex Deucher <[email protected]> changed:

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

            Product|DRI                         |Mesa
            Version|XOrg CVS                    |git
          Component|DRM/Radeon                  |Drivers/Gallium/r600

--- Comment #2 from Alex Deucher <[email protected]> ---
I think this is actually a mesa bug. The kernel commit you bisected just allows the problematic feature to be enabled in mesa. The mesa commits are:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=24b1206ab2dcd506aaac3ef656aebc8bc20cd27a
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6532eb17baff6e61b427f29e076883f8941ae664

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

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

#4 lore raw

[Bug 59592] Radeon HD 5670: reproducable GPU lockups since kernel 3.8

In reply to [email protected]

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

--- Comment #3 from [email protected] ---
I can confirm that
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6532eb17baff6e61b427f29e076883f8941ae664
is the first Mesa commit where the lockups occur.

With
http://cgit.freedesktop.org/mesa/mesa/commit/?id=24b1206ab2dcd506aaac3ef656aebc8bc20cd27a
it still works on kernel 3.8.0-rc4

Is there anything else I can do to help fixing this bug?

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

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

#5 lore raw

[Bug 59592] Radeon HD 5670: reproducable GPU lockups with htile enabled

In reply to [email protected]

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

Alex Deucher <[email protected]> changed:

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

            Summary|Radeon HD 5670:             |Radeon HD 5670:
                   |reproducable GPU lockups    |reproducable GPU lockups
                   |since kernel 3.8            |with htile enabled
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

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

#6 lore raw

[Bug 59592] Radeon HD 5670: reproducable GPU lockups with htile enabled

In reply to [email protected]

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

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #4 from Alex Deucher <[email protected]> --- *** Bug 60347 has been marked as a duplicate of this bug. ***

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

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

#7 lore raw

[Bug 59592] Radeon HD 5670: reproducable GPU lockups with htile enabled

In reply to [email protected]

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

--- Comment #5 from Jerome Glisse <[email protected]> --- Created attachment 74707
--> https://bugs.freedesktop.org/attachment.cgi?id=74707&action=edit
Mesa fix

Please try if attached mesa patch fix it

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

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

#8 lore raw

[Bug 59592] Radeon HD 5670: reproducable GPU lockups with htile enabled

In reply to [email protected]

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

--- Comment #6 from [email protected] ---
The patch seems to fix the problem indeed. I've been trying more than half an hour to get the GPU to lock up without result. Thank you very very much!

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

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

#9 lore raw

[Bug 59592] Radeon HD 5670: reproducable GPU lockups with htile enabled

In reply to [email protected]

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

Jerome Glisse <[email protected]> changed:

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

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

--- Comment #7 from Jerome Glisse <[email protected]> --- Proper fix commited to mesa

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

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

#10 lore raw

[Bug 59592] Radeon HD 5670: reproducable GPU lockups with htile enabled

In reply to [email protected]

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

[email protected] changed:

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

             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #8 from [email protected] ---
While it did seem to work in my first test with your patch, I've experienced frequent GPU lockups since. Last weekend I tried to bisect it, since it got back to reliable immediate lockups during fadeout of the splash screen. Unfortunately they were not as reliable as they looked like, making the whole bisection useless.

Unfortunately I don't have more information yet. I'm running with --enable-debug but never got any assertion failures.

What can I do to debug this problem?

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

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

#11 lore raw

[Bug 59592] Radeon HD 5670: reproducable GPU lockups with htile enabled

In reply to [email protected]

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

--- Comment #9 from Jerome Glisse <[email protected]> --- Please check if below patch fix the issue:

http://people.freedesktop.org/~glisse/0001-r600g-force-full-cache-for-hyperz.patch

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

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

#12 lore raw

[Bug 59592] Radeon HD 5670: reproducable GPU lockups with htile enabled

In reply to [email protected]

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

--- Comment #10 from [email protected] ---
Sorry for the late reply. Took me some time to get my test setup working after a distribution upgrade. It seems like your patch does indeed fix the problem. I've played around with FlightGear for several hours without any lockups whatsoever with R600_HYPERZ=1. Before I tried it without your patch and got an immediate lockup.

It seems like your patch is already committed to master. After upgrading to current master it continues to work flawlessly. Thanks!

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

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

#13 lore raw

[Bug 59592] Radeon HD 5670: reproducable GPU lockups with htile enabled

In reply to [email protected]

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

Jerome Glisse <[email protected]> changed:

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

             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #11 from Jerome Glisse <[email protected]> --- Closing pushed to master and going to push to 9.1

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

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