Bug 25204 - [945GM] GPU hang with mplayer in dualhead layout
Summary: [945GM] GPU hang with mplayer in dualhead layout
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: 7.4 (2008.09)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: haihao
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-20 10:55 UTC by Tomas Janousek
Modified: 2010-06-05 07:10 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (43.77 KB, text/plain)
2009-11-20 10:55 UTC, Tomas Janousek
no flags Details
xorg log (50.78 KB, text/plain)
2009-11-20 10:56 UTC, Tomas Janousek
no flags Details
lspci (1.76 KB, text/plain)
2009-11-20 10:56 UTC, Tomas Janousek
no flags Details

Description Tomas Janousek 2009-11-20 10:55:09 UTC
When trying to play http://store.lisk.in/tmp/tile.ogv with mplayer with xvideo output (textured video) in dualhead, I get this:

[  258.177512] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed... GPU hung
[  258.177526] render error detected, EIR: 0x00000000
[  258.177530] i915: Waking up sleeping processes
[  258.177587] reboot required
[  258.177604] [drm:i915_wait_request] *ERROR* i915_wait_request returns -5 (awaiting 9359 at 9357)
[  258.178050] [drm:i915_gem_execbuffer] *ERROR* Execbuf while wedged
[  258.178269] [drm:i915_gem_execbuffer] *ERROR* Execbuf while wedged
[  258.178318] [drm:i915_gem_execbuffer] *ERROR* Execbuf while wedged
...

The dualhead configuration is this:
Screen 0: minimum 320 x 200, current 1680 x 1850, maximum 4096 x 4096
VGA1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 433mm x 271mm
   1680x1050      59.9*+
[...]
LVDS1 connected 1280x800+200+1050 (normal left inverted right x axis y axis) 331mm x 207mm
   1280x800       60.0*+
[...]
TV1 disconnected (normal left inverted right x axis y axis)

If only LVDS1 is connected, it plays fine. I remember playing that clip with no problem with 1920x1200 connected to VGA1, but I'm not 100 % sure -- I may try as soon as I get to that monitor again.

I can also confirm that mplayer -vo gl works fine, it's just xvideo.

I tried with the following kernels: v2.6.32-rc8-11-ga8a8a66, v2.6.32-rc5-81-g964fe08, v2.6.30-rc6-26-g0f6f49a, with and without KMS. I have xf86-video-intel 2.9.0, but I tried with 2.9.0-78-geda2bb2 as well. I can reproduce this in 100 % cases.

Neither dmesg nor Xorg.log show any errors or warnings regarding this, except those few lines, so I'm attaching my usual dmesg and Xorg.log just for details about my hardware.
Comment 1 Tomas Janousek 2009-11-20 10:55:38 UTC
Created attachment 31348 [details]
dmesg
Comment 2 Tomas Janousek 2009-11-20 10:56:05 UTC
Created attachment 31349 [details]
xorg log
Comment 3 Tomas Janousek 2009-11-20 10:56:19 UTC
Created attachment 31350 [details]
lspci
Comment 4 Shuang He 2009-11-22 18:50:22 UTC
I've tried playing video with Xv on 945GM, it will give me a black window with extended desktop. Didn't see GPU hang message here. My configuration is:
Kernel:       (drm-intel-next)5b8f0be0dce012d190a53d55240fe3fde6306476
Mesa:           (master)2b07b640619ac68344276ba0557ea46b2cbc3f26
Xserver:                (master)19f7c15e2008dab3c46ba3e14dfa353d01c74f72
Xf86_video_intel:               (master)eda2bb26783f7e9ef1ae659265930308378206e1

And it works well on 945GME(Aspire one)
Comment 5 Shuang He 2009-11-22 19:05:57 UTC
(In reply to comment #4)
> I've tried playing video with Xv on 945GM, it will give me a black window with
> extended desktop. Didn't see GPU hang message here. My configuration is:
> Kernel:       (drm-intel-next)5b8f0be0dce012d190a53d55240fe3fde6306476
> Mesa:           (master)2b07b640619ac68344276ba0557ea46b2cbc3f26
> Xserver:                (master)19f7c15e2008dab3c46ba3e14dfa353d01c74f72
> Xf86_video_intel:              
> (master)eda2bb26783f7e9ef1ae659265930308378206e1
> 
> And it works well on 945GME(Aspire one)
> 

The steps to reproduce this issue is:
1. xinit & (without VGA attached)
2. attach VGA
3. xrandr --output VGA1 --auto
4. xrandr --output VGA1 --right-of LVDS1
5. mplayer -vo xv mediafile

And FYI, following order can't reproduce the issue:
1. xinit & (with VGA attached)
2. xrandr --output VGA1 --right-of LVDS1
3. mplayer -vo xv mediafile
Comment 6 Shuang He 2009-11-22 19:18:16 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > I've tried playing video with Xv on 945GM, it will give me a black window with
> > extended desktop. Didn't see GPU hang message here. My configuration is:
> > Kernel:       (drm-intel-next)5b8f0be0dce012d190a53d55240fe3fde6306476
> > Mesa:           (master)2b07b640619ac68344276ba0557ea46b2cbc3f26
> > Xserver:                (master)19f7c15e2008dab3c46ba3e14dfa353d01c74f72
> > Xf86_video_intel:              
> > (master)eda2bb26783f7e9ef1ae659265930308378206e1
> > 
> > And it works well on 945GME(Aspire one)
> > 
> 
> The steps to reproduce this issue is:
> 1. xinit & (without VGA attached)
> 2. attach VGA
> 3. xrandr --output VGA1 --auto
> 4. xrandr --output VGA1 --right-of LVDS1
> 5. mplayer -vo xv mediafile

945GME(Aspire one) also has this issue with these steps
Comment 7 Shuang He 2009-11-22 19:41:21 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > I've tried playing video with Xv on 945GM, it will give me a black window with
> > extended desktop. Didn't see GPU hang message here. My configuration is:
> > Kernel:       (drm-intel-next)5b8f0be0dce012d190a53d55240fe3fde6306476
> > Mesa:           (master)2b07b640619ac68344276ba0557ea46b2cbc3f26
> > Xserver:                (master)19f7c15e2008dab3c46ba3e14dfa353d01c74f72
> > Xf86_video_intel:              
> > (master)eda2bb26783f7e9ef1ae659265930308378206e1
> > 
> > And it works well on 945GME(Aspire one)
> > 
> 
> The steps to reproduce this issue is:
> 1. xinit & (without VGA attached)
> 2. attach VGA
> 3. xrandr --output VGA1 --auto
> 4. xrandr --output VGA1 --right-of LVDS1
> 5. mplayer -vo xv mediafile
> 
> And FYI, following order can't reproduce the issue:
> 1. xinit & (with VGA attached)
> 2. xrandr --output VGA1 --right-of LVDS1
> 3. mplayer -vo xv mediafile
> 

We just found that the video is offset up to the top of the desktop. only bottom line of video can be still seen from the desktop
Comment 8 Vasily Khoruzhick 2010-01-10 01:38:07 UTC
I can reproduce this bug on 2009Q4 software with 945GM hardware, but system doesn't hang, mplayer just shows video in a thin (1px) line at the top of the screen.

With composite enabled (kde effects with xrender backend) it shows video correctly in a window, but in fullscreen mode it shows only a black screen.
Comment 9 Carl Worth 2010-02-17 14:52:38 UTC
Assigning to haihao.xiang@intel.com.

-Carl
Comment 10 Chris Wilson 2010-06-05 07:10:05 UTC
Using XVideo on an extended desktop is fixed with:

commit d31abccd41c417338aac7c681e8bc6bd187b1843
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Mon May 31 12:14:23 2010 +0100

    i915: Support textured video on an extended desktop.
    
    Handle rendering textured video onto an extended desktop (>2048) by
    using a temporary pixmap. Note that we still cannot handle rendering to
    a greater than 2048 destination region, for that we will need to tile.
    Hmm, time to request a 2560x1600, 10bpc monitor...


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.