Bug 19715

Summary: LVDS screen becomes black when running Openarena/UT2004
Product: xorg Reporter: zhao jian <jian.j.zhao>
Component: Driver/intelAssignee: Wang Zhenyu <zhenyu.z.wang>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: high CC: jian.j.zhao, michael.fu, zhenyu.z.wang
Version: gitKeywords: regression
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
xorg.conf
none
xorg.0.log
none
rootcause
none
bisect log
none
this patch will resolve the problem.
none
new patch to disable vga plane none

Description zhao jian 2009-01-23 22:02:09 UTC
System Environment:
--------------------------
Host:           x-945gm
Arch:           i386
OSD:            Fedora release 9 (Sulphur)
Kernel:         2.6.28
Libdrm:         (master)18d3cc076b53f2032eed1f9a4b21947f4cb9e4e7
Mesa_stable:            (intel-2008-q4)200fa9165d7078a6f36c5c9d3e0c997c2438bde3
Xorg:           7.2
Xserver_stable:  (server-1.6-branch)  251d0d8090322b2c9dc0c8b7bef001f338d19433
Xf86_video_intel_stable: 
(xf86-video-intel-2.6-branch)5cd65d965c8ed388275fe2084553302aad601d4a

Bug detailed description:
-------------------------
Running Doom3-linux-1.1.1286 and Openarena-0.8.1, I can hear the background audio, but screen keep black.
When connected a external display, I can see the game show out in the external
display, but LVDS keep black. 
It has such problem both with UXA and EXA. Maybe it relates to Xlib.(As following information shows)

[root@x-945gm opt]# ut2004
WARNING: ALC_EXT_capture is subject to change!
libGL: OpenDriver: trying /opt/X11R7/lib/dri/i915_dri.so
libGL error:
Can't open configuration file /etc/drirc: No such file or directory.
libGL error:
Can't open configuration file /root/.drirc: No such file or directory.
Xlib:  extension "XiG-SUNDRY-NONSTANDARD" missing on display ":0.0".

Reproduce Steps:
------------------------
1. xinit&
2. run the cases. (ut2004 or openarena )
Comment 1 zhao jian 2009-01-23 22:02:41 UTC
Created attachment 22197 [details]
xorg.conf
Comment 2 zhao jian 2009-01-23 22:02:59 UTC
Created attachment 22198 [details]
xorg.0.log
Comment 3 zhao jian 2009-01-23 23:13:26 UTC
I have bisected and found it was caused by commit 5cd65d965c8ed388275fe2084553302aad601d4a in Xf86_video_intel. The details are in the attachments. 
Comment 4 zhao jian 2009-01-23 23:15:45 UTC
Created attachment 22199 [details]
rootcause
Comment 5 zhao jian 2009-01-23 23:16:43 UTC
Created attachment 22200 [details]
bisect log
Comment 6 zhao jian 2009-01-23 23:39:31 UTC
(In reply to comment #3)
> I have bisected and found it was caused by commit
> 5cd65d965c8ed388275fe2084553302aad601d4a in Xf86_video_intel. The details are
> in the attachments. 
> 

It should be caused by commit 3743747dbcf538ddd6db882bde7243656d0c5596. You can see details in attachment.  Sorry for my carelessness! 
Comment 7 MaLing 2009-02-03 21:28:10 UTC
Created attachment 22559 [details] [review]
this patch will resolve the problem.

After testing ,this patch can resolve the problem by avoiding to modify bit 24 and 25, but it is strang why bit 24 and 25 of VGA will disturb LVDS. 
So In order not to generate other regressions I will manage to find the exact information before I commit the patch.

Thanks
Ma Ling
Comment 8 MaLing 2009-02-05 17:24:53 UTC

*** This bug has been marked as a duplicate of bug 19931 ***
Comment 9 zhao jian 2009-02-13 01:18:42 UTC
It now runs well on 945gm with the following configuration:
Host:           x-945gm
Arch:           i386
OSD:            Fedora release 9 (Sulphur)
Kernel:         2.6.28
Libdrm:            (master)            eb78c53aa1a980e60c0dd1f2d0d2f04cb9cb2622
Mesa:              (mesa_7_4_branch)   7e8f2c56c00f93ad55842dc5e3b123a1fcf74b3c
Xserver:           (server-1.6-branch) 34724f45512e311377b972da480d35304fd687cc
Xf86_video_intel:  (master)            3012d85cc5eb58c2447e93c05c39dc14feaae988
Comment 10 Wang Zhenyu 2009-08-09 19:14:44 UTC
Created attachment 28463 [details] [review]
new patch to disable vga plane 

Zhao Jian, could you help to verify if this patch fixes your problem in UMS? thanks.
Comment 11 Michael Fu 2009-08-09 19:20:38 UTC
reopen to track it...
Comment 12 fangxun 2009-08-09 23:30:55 UTC
It works fine in UMS with the new patch.

Comment 13 Wang Zhenyu 2009-08-17 19:13:37 UTC
Pushed the patch. Close.
commit 376397c21eb9a7e4ea79d349af41da81c1af861f
Author: Zhenyu Wang <zhenyuw@linux.intel.com>
Date:   Tue Aug 18 10:01:12 2009 +0800

    Fix VGA plane disabling
    
    Only apply on G4X with SR01 bit5 workaround for VGA plane disable, and
    restore behavior back for other chips to make sure other modes got disabled
    too.
    
    For bug #17235, #19715, #21064, #23178
    
    Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Comment 14 zhao jian 2009-09-07 20:22:36 UTC
It works well both in KMS and UMS with the newest code. 
Libdrm:         (master)121b9648f846d900e67818869974ee82046e9b25
Mesa:           (master)970823978c2f7d2cf0757aa6ddbd6289b34c476f
Xserver:                (master)1bdc9ec617d357b076c9e69296018bc212d91c7d
Xf86_video_intel:       (master)94fc93d4e2b88565dca17f72903d8991213c9ee8
Kernel: (drm-intel-next)01dfba93d9dfcf6d7abfc55ff5d9d6e76fa01ba0

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.