Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275191 - x11-drivers/xf86-video-intel + i915 kernel module freezes Xorg on 865
Summary: x11-drivers/xf86-video-intel + i915 kernel module freezes Xorg on 865
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Highest critical (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-23 12:35 UTC by Jens-Uwe Peter
Modified: 2009-09-25 20:21 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Xorg logfile after freeze (Xorg.0.log.old,19.02 KB, text/plain)
2009-06-23 20:40 UTC, Jens-Uwe Peter
Details
dmesg output (dmesg.out,32.25 KB, text/plain)
2009-06-23 20:41 UTC, Jens-Uwe Peter
Details
emerge --info output (emerge.info,5.10 KB, text/plain)
2009-06-23 20:42 UTC, Jens-Uwe Peter
Details
emerge -1 xorg-server mesa libdrm xf86-video-intel -pv output (emerge.out,1.27 KB, text/plain)
2009-06-23 20:43 UTC, Jens-Uwe Peter
Details
xorg.conf (xorg.conf,2.04 KB, text/plain)
2009-06-23 21:02 UTC, Jens-Uwe Peter
Details
Xorg.buggy (Xorg.buggy,11.94 KB, text/plain)
2009-06-24 05:38 UTC, Jens-Uwe Peter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens-Uwe Peter 2009-06-23 12:35:33 UTC
The intel driver freezes Xorg after login without any error messages shown. Keyboard a.s.o. is not working only mouse moves.

This seems a problem with the i915 kernel module as with the i830 module it does not freeze. The chipset is an onboard 865G and there are several improvements to the kernel module that have not made it in the gentoo-sources kernel and might help. So please include the mentioned patches in the kernel.

Reproducible: Always

Steps to Reproduce:
1. Compile i915 kernel module
2. Start Xorg with DRI enabled
3. Login and let freeze

Actual Results:  
Xorg freezes after login.

Expected Results:  
Xorg works without freezes.
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2009-06-23 17:03:40 UTC
Which xorg-server and which kernel version are you using?
Comment 2 Jens-Uwe Peter 2009-06-23 18:02:03 UTC
I tried many different versions. Actually using the latest: Xorg 1.6.901-r3 and gentoo-sources-2.9.30-r1
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2009-06-23 18:13:08 UTC
Can you provide a Xorg.log after the crash if possible?
Comment 4 Jens-Uwe Peter 2009-06-23 18:16:58 UTC
Will provide a log soon although it does not provide any entries about the crash. 
At the moment I try the git-sources which have the mentioned patches for the 865G chipset. Will report if this works. If not I will provide a Xorg.log for the 2.6.30-r1 gentoo kernel.
Comment 5 Rémi Cardona (RETIRED) gentoo-dev 2009-06-23 19:41:57 UTC
Please attach your xorg.conf, Xorg.0.log, the full output of dmesg, the full output of emerge --info and the output of the following command :

    emerge -1 xorg-server mesa libdrm xf86-video-intel -pv

Thanks
Comment 6 Jens-Uwe Peter 2009-06-23 20:40:22 UTC
Created attachment 195599 [details]
Xorg logfile after freeze
Comment 7 Jens-Uwe Peter 2009-06-23 20:41:11 UTC
Created attachment 195601 [details]
dmesg output
Comment 8 Jens-Uwe Peter 2009-06-23 20:42:56 UTC
Created attachment 195605 [details]
emerge --info output
Comment 9 Jens-Uwe Peter 2009-06-23 20:43:09 UTC
Created attachment 195607 [details]
emerge -1 xorg-server mesa libdrm xf86-video-intel -pv output
Comment 10 Jens-Uwe Peter 2009-06-23 20:46:11 UTC
Tried the git-sources (2.6.30-r19). Still having the problem although KMS is working with this kernel (but not with the Gentoo kernel). BTW: Problem is the same with all xf86-video-intel above 2.5 and the older are not working anymore with the xorg-server 1.6
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2009-06-23 20:52:31 UTC
Please also attach your xorg.conf

Thanks
Comment 12 Jens-Uwe Peter 2009-06-23 21:02:50 UTC
Created attachment 195609 [details]
xorg.conf

It should be noted that the problem also appears without xorg.conf
Comment 13 Rémi Cardona (RETIRED) gentoo-dev 2009-06-23 21:22:16 UTC
In your device section, add the following :

Section "Device"

     [...]
     Option "AccelMethod" "UXA" 

EndSection

Thanks
Comment 14 Jens-Uwe Peter 2009-06-23 21:39:30 UTC
Well, explicitly giving the AccelMetho UXA puts a blank screen on xorg startup. Last message in Xorg.0.log is about enabling the hardware cursor. 

Comment 15 Rémi Cardona (RETIRED) gentoo-dev 2009-06-23 21:52:59 UTC
Could you try without KMS?

Thanks
Comment 16 Jens-Uwe Peter 2009-06-24 05:38:04 UTC
Created attachment 195626 [details]
Xorg.buggy

The problem was with and wihtout KMS. After all I viewed some more Xorg.log files and found this. Here the driver tries to allocate 4 gigs of videoram which is more than installed on this machine. After setting the xorg.conf videoram option to 131072 (which is the default setting; any other amount is ignored by the driver) the freezes no longer occurs. The problem when setting the accelmetho to UXA still exists. Also there is a new problem with the now used EXA acceleration method: XVideo is not working anymore.
Comment 17 Rémi Cardona (RETIRED) gentoo-dev 2009-06-24 06:10:24 UTC
Let's try to fix one bug at a time, shall we?

Here are a few things you should keep in mind: with xf86-video-intel 2.8 and up :
 1) DRI1 is gone, DRI2 is the only choice
 2) XAA and EXA are also gone, only UXA is gone
 3) KMS is still flaky, while UMS is still considered more stable
 4) Xvideo is indeed missing with KMS
 5) all Intel kernel work is done directly in Linus's tree, so stick with recent kernels

Now with that in mind, make sure you're using the UXA/DRI2/UMS combo, file a bug report [1] for each issue you have and paste the url here so we can track them.

Thanks

[1] http://intellinuxgraphics.org/how_to_report_bug.html
Comment 18 Jens-Uwe Peter 2009-06-24 08:43:57 UTC
Looked at bugs.freedesktop.org and found some existing bugs that may relate to my problem. These are:

#20683 (X hangs with UXA)
#20598 (X blank screen with KMS)
#20453 (X hangs after login)

I think the intel driver (and the kernel parts, too) are very buggy right now. I will keep an eye on the bugs above and try the 2.8 driver asap (ebuild?). Hopefully a new kernel (past 2.6.30?) and the 2.8 driver will do it. If the bugs above are gone and I have still that problem I will come back fill a freedesktop bug and report it here.
Comment 19 Rémi Cardona (RETIRED) gentoo-dev 2009-06-24 09:17:05 UTC
You might want to use the x11 overlay (use app-portage/layman for that) to try the libdrm-9999 and xf86-video-intel-9999 ebuilds.

Those will give you a good idea of what to expect from the upcoming 2.8 release of the Intel driver. And that's what upstream will ask you to try if you report bugs anyway :)

Thanks
Comment 20 Thomas Bettler 2009-09-22 04:38:19 UTC
News from upstream...

They found a resolution to the freeze happening on the 865G Chipset.
Have a look at f.d.o #22904

The kernel troubles the graphics cache. Maybe someone could adapt & test the proposed kernel patch for gentoo-sources... (or we simply wait until the patch gets merged by Linus)
Comment 22 Rémi Cardona (RETIRED) gentoo-dev 2009-09-22 07:05:45 UTC
@kernel, the patch is CCed to stable@k.o so maybe it's already in the stable branch.

Thanks
Comment 23 Rémi Cardona (RETIRED) gentoo-dev 2009-09-22 07:06:43 UTC
And closing since there's little for me to do anymore :)

Thanks
Comment 24 Patrick Kursawe (RETIRED) gentoo-dev 2009-09-25 20:21:40 UTC
The patches work fine for me. I am really happy I can stop using the vesa driver now, it was quite a pain.