Skip to contentSkip to conversation

GPU freeze due to overlay hang

Bug 33309 [email protected] 1 participant 26 messages Sep 8, 2011 – Jul 9, 2012 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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

Eugeni Dodonov <[email protected]> changed:

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

         AssignedTo|[email protected]    |[email protected]
                   |                            |.org

--- Comment #12 from Eugeni Dodonov <[email protected]> 2011-09-08 15:55:52 PDT --- This issue is affecting a hardware component which is not being actively worked on anymore.

Moving the assignee to the dri-devel list as contact, to give this issue a better coverage.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw
In reply to a message not in the archive

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

--- Comment #13 from Daniel Vetter <[email protected]> 2011-09-08 23:50:15 PDT --- Created an attachment (id=50994)
View: https://bugs.freedesktop.org/attachment.cgi?id=50994
Review: https://bugs.freedesktop.org/review?bug=33309&attachment=50994

write NOPID reg after MI_WAIT for overlay

If you're still around, I've just stumbled over this little hint in the docs. Maybe it actually helps. Test feedback highly appreciated.

Thanks, Daniel

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw
In reply to a message not in the archive

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

--- Comment #14 from stefan <[email protected]> 2012-03-26 13:17:45 PDT --- Hi Daniel,
I believe I'm also bitten by this bug and I'd like to test your patch. Unfortunately, MI_WRITE_NOPID_REG is not defined in the newest kernels and I couldn't find any reference. If you could update your patch with its definition, I can give it a go.

Cheers,
Stefan.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw
In reply to a message not in the archive

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

--- Comment #15 from Daniel Vetter <[email protected]> 2012-03-26 13:40:43 PDT ---

Quoted 6 lines

--- Comment #14 from stefan <[email protected]> 2012-03-26 13:17:45 PDT --- Hi Daniel,
I believe I'm also bitten by this bug and I'd like to test your patch. Unfortunately, MI_WRITE_NOPID_REG is not defined in the newest kernels and I couldn't find any reference. If you could update your patch with its definition, I can give it a go.

Just add
#define MI_WRITE_NOPID_REG (1 << 22)
somewhere.
Yours, Daniel

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw
In reply to a message not in the archive

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

Chris Wilson <[email protected]> changed:

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

             Status|NEW                         |NEEDINFO
           Keywords|NEEDINFO                    |
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#8 lore raw
In reply to a message not in the archive

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

--- Comment #16 from stefan <[email protected]> 2012-04-26 07:48:56 PDT --- (In reply to comment #15)

Quoted 5 lines
Quoted 1 line

--- Comment #14 from stefan <[email protected]> 2012-03-26 13:17:45 PDT ---

Just add
#define MI_WRITE_NOPID_REG (1 << 22)
somewhere.
Yours, Daniel

Hi Daniel,

sorry for answering so late. I had a few hangs with 3.3.0 with this patch until I realised that I had relaxed fencing enabled (which I enabled out of curiosity at some point). Since then I went back to a plain config and had a GPU hang with the vanilla 3.3.3, I can attach the error state output if you think it can still be useful.

The good news is that 3.3.0 with this patch seems stable, and I am still testing 3.3.3 with this patch and will report back if I manage to hang the GPU (or not).

Cheers,
Stefan.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#9 lore raw
In reply to a message not in the archive

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

--- Comment #17 from Daniel Vetter <[email protected]> 2012-04-26 07:50:38 PDT ---

Quoted 4 lines · On Thu, Apr 26, 2012 at 16:48, <[email protected]> wrote:

The good news is that 3.3.0 with this patch seems stable, and I am still testing 3.3.3 with this patch and will report back if I manage to hang the GPU (or not).

Please also check whether 3.3.0 without the patch still crashes, otherwise we don't really know whether it's the patch that fixes things.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#10 lore raw
In reply to a message not in the archive

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

--- Comment #18 from stefan <[email protected]> 2012-05-14 13:52:54 PDT --- (In reply to comment #17)

Quoted 9 lines · On Thu, Apr 26, 2012 at 16:48, <[email protected]> wrote:
Quoted 4 lines

The good news is that 3.3.0 with this patch seems stable, and I am still testing 3.3.3 with this patch and will report back if I manage to hang the GPU (or not).

Please also check whether 3.3.0 without the patch still crashes, otherwise we don't really know whether it's the patch that fixes things.

Hi Daniel,
unfortunately, the patch doesn't seem to help.
I tested 3.3.3, 3.3.4, and 3.3.5 patched and unpatched. Although, unlike in the OP, it takes a while for the gpu to hang, sometimes hours. But I had hangs for both versions.

I captured some i915_error_states for the hangs, if you are interested.

Cheers,
Stefan.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#11 lore raw
In reply to a message not in the archive

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

--- Comment #19 from Chris Wilson <[email protected]> 2012-05-14 13:58:13 PDT --- Always useful to check to see if there is any variation in the error states. Can you also try:
http://cgit.freedesktop.org/~ickle/linux-2.6/commit/?h=fastboot&id=04c8b699bdc9d707233399adf04900507c55bf3b

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#12 lore raw
In reply to a message not in the archive

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

--- Comment #20 from stefan <[email protected]> 2012-05-15 12:58:42 PDT --- Created attachment 61685
--> https://bugs.freedesktop.org/attachment.cgi?id=61685
i915_error_state from 3.3.4 unpatched

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#13 lore raw
In reply to a message not in the archive

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

--- Comment #21 from stefan <[email protected]> 2012-05-15 12:59:34 PDT --- Created attachment 61686
--> https://bugs.freedesktop.org/attachment.cgi?id=61686
i915_error_state from 3.3.4 patched

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#14 lore raw
In reply to a message not in the archive

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

--- Comment #22 from stefan <[email protected]> 2012-05-15 13:00:21 PDT --- Created attachment 61687
--> https://bugs.freedesktop.org/attachment.cgi?id=61687
i915_error_state from 3.3.5 unpatched

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#15 lore raw
In reply to a message not in the archive

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

--- Comment #23 from stefan <[email protected]> 2012-05-15 13:01:58 PDT --- Created attachment 61688
--> https://bugs.freedesktop.org/attachment.cgi?id=61688
i915_error_state from 3.3.5 unpatched, no. 2

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#16 lore raw
In reply to a message not in the archive

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

stefan <[email protected]> changed:

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

  Attachment #61685|application/octet-stream    |text/plain
          mime type|                            |
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#17 lore raw
In reply to a message not in the archive

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

stefan <[email protected]> changed:

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

  Attachment #61686|application/octet-stream    |text/plain
          mime type|                            |
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#18 lore raw
In reply to a message not in the archive

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

stefan <[email protected]> changed:

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

  Attachment #61687|application/octet-stream    |text/plain
          mime type|                            |
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#19 lore raw
In reply to a message not in the archive

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

--- Comment #24 from stefan <[email protected]> 2012-05-15 13:04:55 PDT --- Created attachment 61689
--> https://bugs.freedesktop.org/attachment.cgi?id=61689
i915_error_state from 3.3.5 patched

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#20 lore raw
In reply to a message not in the archive

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

--- Comment #25 from stefan <[email protected]> 2012-05-15 13:08:32 PDT --- Hi Chris,

(In reply to comment #19)

Quoted 3 lines

Always useful to check to see if there is any variation in the error states. Can you also try:
http://cgit.freedesktop.org/~ickle/linux-2.6/commit/?h=fastboot&id=04c8b699bdc9d707233399adf04900507c55bf3b

I added some more error state files in the hope they will be useful. "Patched" means with the patch from comment #13.
I'm still testing your patch.

Cheers,
Stefan.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#21 lore raw
In reply to a message not in the archive

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

--- Comment #26 from stefan <[email protected]> 2012-05-15 13:16:23 PDT --- (In reply to comment #25)

Quoted 7 lines

Hi Chris,

(In reply to comment #19)

Quoted 3 lines

Always useful to check to see if there is any variation in the error states. Can you also try:
http://cgit.freedesktop.org/~ickle/linux-2.6/commit/?h=fastboot&id=04c8b699bdc9d707233399adf04900507c55bf3b

Quoted 6 lines

I added some more error state files in the hope they will be useful. "Patched" means with the patch from comment #13.
I'm still testing your patch.

Cheers,
Stefan.

As I was writing this, the mplayer window turned blue. :/

So it seems no luck with your patch, too, at least everything besides xvideo still works and I can gracefully reboot. I will attach the error state file, hope it helps.

Hth,
Stefan.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#22 lore raw
In reply to a message not in the archive

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

--- Comment #27 from stefan <[email protected]> 2012-05-15 13:18:21 PDT --- Created attachment 61693
--> https://bugs.freedesktop.org/attachment.cgi?id=61693
i915_error_state from 3.3.5 patched, no. 2

error state from 3.3.5 with Chris' patch.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#23 lore raw
In reply to a message not in the archive

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

--- Comment #28 from stefan <[email protected]> 2012-07-02 13:13:59 PDT --- Hi,
are there any news on this issue?
The 3.4 and 3.5-rc series seem stable wrt this issue,
but unfortunately something broke resume from s2ram badly,
the backlight stays off and the machine does not respond
even to SysRq and I need to do a hard power-off.

Cheers,
Stefan.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#24 lore raw
In reply to a message not in the archive

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

--- Comment #29 from Daniel Vetter <[email protected]> 2012-07-02 13:29:18 PDT --- (In reply to comment #28)

Quoted 5 lines

are there any news on this issue?
The 3.4 and 3.5-rc series seem stable wrt this issue, but unfortunately something broke resume from s2ram badly, the backlight stays off and the machine does not respond even to SysRq and I need to do a hard power-off.

That's good&bad news. Can you try to bisect the backlight regression that has been introduce in 3.4 and open a new bug report? That usually helps in fixing it ...

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#25 lore raw
In reply to a message not in the archive

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

--- Comment #30 from stefan <[email protected]> 2012-07-09 11:18:52 PDT --- Hi Daniel,
(In reply to comment #29)

Quoted 10 lines

(In reply to comment #28)

Quoted 5 lines

are there any news on this issue?
The 3.4 and 3.5-rc series seem stable wrt this issue, but unfortunately something broke resume from s2ram badly, the backlight stays off and the machine does not respond even to SysRq and I need to do a hard power-off.

That's good&bad news. Can you try to bisect the backlight regression that has been introduce in 3.4 and open a new bug report? That usually helps in fixing it ...

It turns out to be an ACPICA regression not related to graphics at all.

As for this issue, I did not observe any more hangs with v3.4 or 3.5-rc, *yet*. It is hard to tell for sure since it usually takes a while (sometimes hours) for it to occure. Which makes it also almost impossible to bisect and to find the commit that might have fixed it.

Cheers,
Stefan.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#26 lore raw
In reply to a message not in the archive

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

Chris Wilson <[email protected]> changed:

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

             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |NOTOURBUG

--- Comment #31 from Chris Wilson <[email protected]> 2012-07-09 11:37:34 PDT --- Ok, I'm just as surprised; be wary of a surprise attack. In the meantime, have fun!

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.