Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269554 - intel KMS @ >gentoo-sources-2.6.29 && >vanilla-sources-2.6.29 corrupts the VT Screen
Summary: intel KMS @ >gentoo-sources-2.6.29 && >vanilla-sources-2.6.29 corrupts the VT...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2009-05-12 14:40 UTC by Julian
Modified: 2009-08-12 01:15 UTC (History)
2 users (show)

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


Attachments
Picture of the Screen 1 (IMG_3628.JPG,360.03 KB, image/jpeg)
2009-05-12 14:42 UTC, Julian
Details
Picture of the Screen 2 (IMG_3629.JPG,385.60 KB, image/jpeg)
2009-05-12 14:42 UTC, Julian
Details
init fence registers (init_fence_reg.patch,604 bytes, patch)
2009-07-05 02:34 UTC, Zsolti
Details | Diff
init_fence_registers patch (init_fence_registers.patch,916 bytes, patch)
2009-07-24 19:26 UTC, Stratos Psomadakis (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Julian 2009-05-12 14:40:51 UTC
When running a newer kernel with KMS enabled on my Macbook 2,1 it corrupts the screen of my VT and makes the running of the Xserver impossible.

I have enabled under Graphics (not as modules, but build in) only the AGPART for Intel Chipsets, the Intel i915 driver (with KMS default) and the basic support for framebuffers (no framebuffers selected in the list below).

As soon as my VT hits the lowest line it somewhat corrupts the lowest few pixels of the screen.

Also I tried all Xorgs in combination with all dri2proto, libdrm, mesa, intel drivers (also X11 with 9999 builds) but all show me only a massively corrupted mouse and hardlock the Xorg. This is independent of using UXA or EXA. But Im not sure whether this is related to this problem.


Reproducible: Always

Steps to Reproduce:
Unsure. I spoke with another MacBook 2,1 owner (running Archlinux) and he had a KMS Kernel running just fine.
Comment 1 Julian 2009-05-12 14:42:04 UTC
Created attachment 191030 [details]
Picture of the Screen 1
Comment 2 Julian 2009-05-12 14:42:27 UTC
Created attachment 191031 [details]
Picture of the Screen 2
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2009-05-12 15:59:54 UTC
Hum, I've never heard of such a bug before. Please file a bug in FreeDesktop's bugzilla [1] and please paste the url here.

Thanks

[1] http://intellinuxgraphics.org/how_to_report_bug.html
Comment 4 Julian 2009-05-12 21:36:21 UTC
Bug reported opened.

https://bugs.freedesktop.org/show_bug.cgi?id=21710
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2009-05-16 15:06:45 UTC
Which is the last known working kernel?
Comment 6 Julian 2009-05-16 15:16:42 UTC
Every Kernel is working. As long as I dont activate KMS

I am currently running 2.6.30-rc5
UXA is running fast & stable over days, with suspend2ram. As long as I dont use KMS. Then I cant even start the X.
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2009-05-17 09:35:27 UTC
Could you make sure that with xorg-server 1.6, the intel driver initializes with DRI2? Xorg.0.log should have something like this :

(II) intel(0): [DRI2] Setup complete

And please try using the latest versions of libdrm, mesa, xorg-server and xf86-video-intel.

Thanks
Comment 8 Mike Pagano gentoo-dev 2009-06-29 23:58:10 UTC
Anything to report here?
Comment 9 davrosmeglos 2009-07-03 05:03:11 UTC
(In reply to comment #8)
> Anything to report here?
> 

I think there are 2 issues here.  I have a macbook 2,1.

I had the exact problem with the bottom edge of the console becoming corrupt at system startup as soon as the text output of the boot process reached the bottom edge of the screen.  This occurred with KMS enabled on both the 2.6.29 and 2.6.30-rc8 kernels (and not with KMS disabled).  It was fixed with the 2.6.30 final kernel.

However, with both the 2.6.29 and 2.6.30 kernels, when kms is enabled, X essentially hangs at startup, with "massive mouse corruption."  The mouse is movable, but the system is otherwise completely hung - cntrl-alt-backspace does not kill the X-server.  Nothing useful in the logs, and hard-reset is required.  Without KMS, X works on the 2.6.30 kernel with only minor graphics corruption.  This appears to be a separate bug, and could consider filing another bug report for it specifically.  I'm not much of a computer person, but if I get more info in the future I'll consider filing it myself.
Comment 10 Zsolti 2009-07-05 02:30:51 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Anything to report here?
> > 
> 
> I think there are 2 issues here.  I have a macbook 2,1.
l.
> 
> However, with both the 2.6.29 and 2.6.30 kernels, when kms is enabled, X
> essentially hangs at startup, with "massive mouse corruption."  The mouse is
> movable, but the system is otherwise completely hung

it was the same with me. also on macbook 2,1
this is solved lately with a patch for drm/i915
https://bugs.freedesktop.org/show_bug.cgi?id=21710

it is in Linux 2.6.31-rc2

i tried it with gentoo-sources-2.6.30-r2. 
kms now works fine. i had to set:
Option          "DRI"     "false"
in the Device section. UXA works though. 
And 3D-accel seems also nice: glxgears is about 995fps and tuxracer up to 40 (1280x800).

consider to add this patch to gentoo-sources

Comment 11 Zsolti 2009-07-05 02:34:36 UTC
Created attachment 196707 [details, diff]
init fence registers

from: https://bugs.freedesktop.org/show_bug.cgi?id=21710

drm/i915: initialize fence registers to zero when loading GEM

    Unitialized fence register could leads to corrupted display. Problem
    encountered on MacBooks (revision 1 and 2), directly booting from EFI
    or through BIOS emulation.
Comment 12 davrosmeglos 2009-07-05 03:11:12 UTC
Confirmed - running vanilla 2.6.31-rc2 fixes both problems.

The KMS virtual terminal has no screen corruption at the lower edge.

The X server starts and works beautifully.
Comment 13 davrosmeglos 2009-07-05 04:42:10 UTC
(In reply to comment #11)
> Created an attachment (id=196707) [edit]
> init fence registers
> 
> from: https://bugs.freedesktop.org/show_bug.cgi?id=21710
> 
> drm/i915: initialize fence registers to zero when loading GEM
> 
>     Unitialized fence register could leads to corrupted display. Problem
>     encountered on MacBooks (revision 1 and 2), directly booting from EFI
>     or through BIOS emulation.
> 

I noticed that the patch submitted on the mailing list is slightly different from the patch from the bug report, don't know if it matters.

http://lists.freedesktop.org/archives/intel-gfx/2009-June/002975.html
Comment 14 Stratos Psomadakis (RETIRED) gentoo-dev 2009-07-24 19:26:12 UTC
Created attachment 199012 [details, diff]
init_fence_registers patch

added the patch commited to git, and included in 2.6.31-rc2...

i think it can be added to genpatches...
Comment 16 Mike Pagano gentoo-dev 2009-08-12 01:15:38 UTC
Released in gentoo-sources-2.6.30-r4