Bug 38393

Summary: [IvyBridge]GPU hang when playing video on firefox (disable compiz)
Product: DRI Reporter: meng <mengmeng.meng>
Component: DRM/IntelAssignee: Kenneth Graunke <kenneth>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: medium CC: jbarnes
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg
none
i915_error_state
none
Xorg.0.log none

Description meng 2011-06-17 00:43:20 UTC
System Environment:
--------------------------
Platform: IvyBridge 
Libdrm:   (master)2.4.26
Mesa:    (master)8875dd58719b978283e89acf04422a4eaf9b021d
Xserver:   (server-1.10-branch)xorg-server-1.10.2-11-g9551f5041915fa00ca243a279efb55de2ff11a00
Xf86_video_intel:(master)2.15.0-96-ga1ee4b930846d4ba9274028c08800b882fc926f1
Cairo:     (master)3b9c8744898823a4b09917f0540a324318fef726
Libva:     (master)3c1b6875b589f3a40709a889da85b979e34db625
Kernel:    (drm-intel-fixes)6a574b5b9b186e28abd3e571dfd1700c5220b510

Bug detailed description:
-------------------------
GPU hang when play the video on firefox (note:compiz is disabled).
Beacuse of bug 38362,disable compiz.
Pls see the dmesg,Xorg.log and i915_error_state.

Reproduce steps:
-------------------------
1.disable compiz(cd /usr/bin; mv compiz compiz.bak )
2.xinit&
3.gnome-session
4.play the video by firefox
Comment 1 meng 2011-06-17 00:46:19 UTC
Created attachment 48076 [details]
dmesg
Comment 2 meng 2011-06-17 00:46:57 UTC
Created attachment 48077 [details]
i915_error_state
Comment 3 meng 2011-06-17 00:48:30 UTC
Created attachment 48078 [details]
Xorg.0.log
Comment 4 Kenneth Graunke 2011-06-17 12:53:50 UTC
Were you trying to play the video fullscreen?  If so, you'll need Jesse's kernel patches which make pageflipping work:

http://lists.freedesktop.org/archives/intel-gfx/2011-June/011014.html

Without those, most fullscreen apps will GPU hang.

I haven't tested video either way, though, so those may not fix the bug.
Comment 5 Chris Wilson 2011-06-17 14:06:43 UTC
Note, that I'm pretty sure the MI_WAIT_FOR_EVENT code is only disabled on gen6. That will also cause a hang on gen7 with video and windowed swapbuffers.
Comment 6 meng 2011-06-17 21:42:35 UTC
(In reply to comment #4)
> Were you trying to play the video fullscreen?  If so, you'll need Jesse's
> kernel patches which make pageflipping work:
> http://lists.freedesktop.org/archives/intel-gfx/2011-June/011014.html
> Without those, most fullscreen apps will GPU hang.
> I haven't tested video either way, though, so those may not fix the bug.

Yes,Play the video fullscreen.
Test the commit 6a574b5b9b186e2 with above two patches, it fixed the problem (GPU hang and i915 state error)when play the video fullscreen(enable compiz).
But there is "Hangcheck" in dmesg.
Comment 7 meng 2011-06-17 22:11:31 UTC
Video screen blank when playing video on firefo,pls see bug 38428.
Comment 8 Gordon Jin 2011-06-18 20:05:58 UTC
(In reply to comment #6)
> (In reply to comment #4)
> > Were you trying to play the video fullscreen?  If so, you'll need Jesse's
> > kernel patches which make pageflipping work:
> > http://lists.freedesktop.org/archives/intel-gfx/2011-June/011014.html
> > Without those, most fullscreen apps will GPU hang.
> > I haven't tested video either way, though, so those may not fix the bug.
> Yes,Play the video fullscreen.
> Test the commit 6a574b5b9b186e2 with above two patches, it fixed the problem
> (GPU hang and i915 state error)when play the video fullscreen(enable compiz).
> But there is "Hangcheck" in dmesg.

I assume you mean the same behavior as bug#38362, hence marking dup.

*** This bug has been marked as a duplicate of bug 38362 ***
Comment 9 Gordon Jin 2011-06-18 20:08:54 UTC
(In reply to comment #7)
> Video screen blank when playing video on firefo,pls see bug 38428.

I don't understand. Why doesn't it get gpu hang (as this bug)? because with Jesse's patches, or not full-screen?
Comment 10 meng 2011-06-19 18:08:27 UTC
(In reply to comment #9)
> (In reply to comment #7)
> > Video screen blank when playing video on firefo,pls see bug 38428.
> I don't understand. Why doesn't it get gpu hang (as this bug)? because with
> Jesse's patches, or not full-screen?

This GPU hang exsits when play the video fullscreen on no-patches and no-compiz(Beacuse of bug 38362,disable compiz).
When test on Jesse's patches,it fixed GPU hang.
But video screen blank when playing video on firefox.It can reproduce by full screen switch(full-->not full-->full).
Comment 11 meng 2011-06-27 20:23:24 UTC
Verified with the commit 7c9017e5b77118439952fe8dc22809bae4fae4b6,it works fine.
Comment 12 Elizabeth 2017-10-06 14:52:29 UTC
Closing old verified.

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.