Bug 17599

Summary: [G33 gem-classic]ut2004/gl-117/doom3 hangs X
Product: Mesa Reporter: liuhaien <haien.liu>
Component: Drivers/DRI/i915Assignee: Eric Anholt <eric>
Status: VERIFIED DUPLICATE QA Contact:
Severity: critical    
Priority: high CC: shuang.he
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 17596    
Attachments: haihao's patch
xorg.0.log
xorg conf file

Description liuhaien 2008-09-15 20:44:10 UTC
Created attachment 18898 [details]
haihao's patch

System Environment:
--------------------------
Host:		G33
Arch:		i386
OSD:		Fedora Core release 6 (Zod)
Kernel:		2.6.27-rc5
Libdrm:		(master)973c634eaa54ee4085a72102c690bc643cb2d7a8
Mesa:		(master)641b80275b7d0237c1d5bc79c19d12a0f422173a
Xserver:		(master)b6ab114212c0e4c3346ceb5b207f14c526ab81e7
Xf86_video_intel:		(master)e2743a409a02978ca8e953dbbeeb96f61bbd5ce6
Drmmodule:		(drm-next)721f1651546231c4e53a1afe31e15e8234b076e0

Bug detailed description:
--------------------------
start X, then run 3D games such as ut2004 ,gl-117 and doom3, X will hang.below is backtrace which get from gdb and ctrl+c:

backtrace:
#0  0xffffe424 in __kernel_vsyscall ()
#1  0x4a12f559 in ioctl () from /lib/libc.so.6
#2  0xb7df6fb8 in drmIoctl (fd=12, request=1074291754, arg=0xbf829328)
    at xf86drm.c:183
#3  0xb7df7c8f in drmGetLock (fd=12, context=1, flags=0) at xf86drm.c:1297
#4  0xb7eb1a25 in DRILock (pScreen=0x823e918, flags=0) at dri.c:2184
#5  0xb7eb1a91 in DRIDoWakeupHandler (screenNum=0, wakeupData=0x0, result=0,
    pReadmask=0x81e2840) at dri.c:1638
#6  0xb7eb0a97 in DRIWakeupHandler (wakeupData=0x0, result=0,
    pReadmask=0x81e2840) at dri.c:1610
#7  0x0808a919 in WakeupHandler (result=0, pReadmask=0x81e2840)
    at dixutils.c:418
#8  0x081270eb in WaitForSomething (pClientsReady=0x82f1fd0) at WaitFor.c:231
#9  0x08086c5d in Dispatch () at dispatch.c:367
#10 0x0806c85a in main (argc=1, argv=0xbf829784, envp=Cannot access memory at address 0x40086432
) at main.c:390
------------------------------
on xf86-video-intel master branch ,X can not start up(see bug #17540) ,we test this issue with haihao's patch in the attachment.

Reproduce steps:
----------------
1.xinit&
2.gl-117 (ut2004,doom3-demo)
Comment 1 liuhaien 2008-09-15 20:46:22 UTC
Created attachment 18899 [details]
xorg.0.log
Comment 2 liuhaien 2008-09-15 20:46:41 UTC
Created attachment 18900 [details]
xorg conf file
Comment 3 Gordon Jin 2008-09-17 07:04:41 UTC
This also happens on 965.
Does this happen with mesa_7_2_branch?
Comment 4 liuhaien 2008-09-17 22:56:54 UTC
(In reply to comment #3)
> This also happens on 965.
> Does this happen with mesa_7_2_branch?
> 

it doesn't happen with 7_2branch.
and it only happens on G33,the issue of 965 is bug 17179.
Comment 5 lin, jiewen 2008-09-18 01:28:47 UTC
With mesa_7_2 branch, it work well.
Comment 6 lin, jiewen 2008-09-18 01:48:00 UTC
It also works well on 965 with mesa_7_2 branch.
Comment 7 Gordon Jin 2008-09-19 00:02:13 UTC
I'm marking this dup with bug#17650, since both bugs are caused by http://bugs.freedesktop.org/show_bug.cgi?id=17179#c10

*** This bug has been marked as a duplicate of bug 17650 ***
Comment 8 liuhaien 2008-09-26 19:50:54 UTC
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.