Bug 21975

Summary: On 945, "xset dpms force off" with video playing leads to lockup
Product: xorg Reporter: Josh Triplett <josh>
Component: Driver/intelAssignee: Gordon Jin <gordon.jin>
Status: RESOLVED WORKSFORME QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: medium CC: haien.liu
Version: 7.4 (2008.09)Keywords: NEEDINFO
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg.0.log after X and the MythTV frontend start
none
dmesg after system boots and starts X
none
Output of xvinfo
none
/etc/X11/xorg.conf none

Description Josh Triplett 2009-05-27 19:15:28 UTC
I have an Atom-based D945GCLF2, which I use as a MythTV frontend.  I use the built-in S-video output.

Xorg 7.4 with Intel driver 2.7.1 (Debian package version 2:2.7.1-1).

I ran "xset dpms force off" to blank the display, and this worked with no activity on the display (at the main menu of the MythTV frontend).  However, running this with a video playing led to several messages like this:

[drm:i915_wait_irq] *ERROR* EBUSY -- rec: 5645 emitted: 5648

A few seconds after those messages appeared, the system locked up completely, requiring a hard reset.
Comment 1 Josh Triplett 2009-05-28 16:06:40 UTC
Note that I can consistently reproduce this.
Comment 2 Josh Triplett 2009-05-28 16:08:09 UTC
Given that the error message mentions drm, it occurs to me to mention my kernel version: 2.6.26, from Debian stable (package version 2.6.26-15lenny2).
Comment 3 Gordon Jin 2009-05-29 05:49:09 UTC
Please attach Xorg.0.log and dmesg, according to http://intellinuxgraphics.org/how_to_report_bug.html.
Please also attach "xvinfo" output.

Haien, can you reproduce this?
Comment 4 liuhaien 2009-05-30 20:29:03 UTC
(In reply to comment #3)
> Please attach Xorg.0.log and dmesg, according to
> http://intellinuxgraphics.org/how_to_report_bug.html.
> Please also attach "xvinfo" output.
> 
> Haien, can you reproduce this?
> 

it works well on my side. I plays video using Mplayer and tests it with below commits:
Platform: 945GME		
Libdrm:		(master)651e3dc6dd58a79c90db7513ee2fb28360a4560d
Mesa:		(mesa_7_5_branch)1045481dd96dec6e37f4b623b1dbae8af381de75
Xserver:	(server-1.6-branch)5cd5a01259ba349f1868ca4af04207cf120d69e4
Xf86_video_intel:		(master)704771f1c595df481d244a6f074e9f5620d4a720
Kernel:       (for-linus)07f4f3e8a24138ca2f3650723d670df25687cd05
Comment 5 liuhaien 2009-05-30 20:30:12 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Please attach Xorg.0.log and dmesg, according to
> > http://intellinuxgraphics.org/how_to_report_bug.html.
> > Please also attach "xvinfo" output.
> > 
> > Haien, can you reproduce this?
> > 
> 
> it works well on my side. I plays video using Mplayer and tests it with below
> commits:
> Platform: 945GME                
> Libdrm:         (master)651e3dc6dd58a79c90db7513ee2fb28360a4560d
> Mesa:           (mesa_7_5_branch)1045481dd96dec6e37f4b623b1dbae8af381de75
> Xserver:        (server-1.6-branch)5cd5a01259ba349f1868ca4af04207cf120d69e4
> Xf86_video_intel:              
> (master)704771f1c595df481d244a6f074e9f5620d4a720
> Kernel:       (for-linus)07f4f3e8a24138ca2f3650723d670df25687cd05
> 

and it also works on 945gm.
Comment 6 liuhaien 2009-05-30 20:47:08 UTC
and I also test it with mythtv on our 945g and couldn't reproduce this issue.
Comment 7 Josh Triplett 2009-05-31 11:24:03 UTC
Created attachment 26319 [details]
Xorg.0.log after X and the MythTV frontend start
Comment 8 Josh Triplett 2009-05-31 11:25:43 UTC
Created attachment 26320 [details]
dmesg after system boots and starts X

Note that the set of three "[drm:i915_getparam] *ERROR* Unknown parameter 5" messages appear when X starts.  The second set here appears because I restarted X.
Comment 9 Josh Triplett 2009-05-31 11:26:07 UTC
Created attachment 26321 [details]
Output of xvinfo
Comment 10 Josh Triplett 2009-05-31 11:26:59 UTC
Created attachment 26322 [details]
/etc/X11/xorg.conf
Comment 11 Josh Triplett 2009-05-31 11:31:43 UTC
Also, in case it helps, lspci says:

00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02)
Comment 12 Josh Triplett 2009-05-31 11:44:44 UTC
Some additional information:

uname -m: x86_64

libdrm2 and libdrm-intel1 both have Debian package version 2.4.9-2
Comment 13 Gordon Jin 2009-06-01 10:15:47 UTC
(In reply to comment #8)
> Created an attachment (id=26320) [details]
> dmesg after system boots and starts X
> 
> Note that the set of three "[drm:i915_getparam] *ERROR* Unknown parameter 5"
> messages appear when X starts.  

This error means the kernel doesn't support GEM. You need newer kernel >=2.6.28 to resolve this error. Could you try a newer kernel, better the latest one?
Comment 14 Gordon Jin 2009-06-30 02:02:16 UTC
please reopen if you could reproduce with kernel >=2.6.30.

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.