2009-04-19 06:35:33

by Alex Bennee

[permalink] [raw]
Subject: 2.6.30-rc2 + xorg-intel-2.7.0 + DRM_I915_KMS = corruption

Heading the warnings in the menuconfig I did try and ensure I have all
the up to date parts of user-space. With KMS enabled GDM starts up but
then corrupts the display with vertical lines. Disabling the kernel
config and everything starts up fine, UXA acceleration seems OK and
the speed of compiz is finally back up to ~60fps thanks to the A17
fix.

Am I missing another bit of user space for KMS to work properly?

I am seeing a:

[ 6.751092] BUG: using smp_processor_id() in preemptible [00000000]
code: modprobe/3078
[ 6.751100] caller is smp_call_function_many+0x29/0x1bd
[ 6.751103] Pid: 3078, comm: modprobe Not tainted 2.6.30-rc2-ajb #56

But I think it's unrelated to any X woes. Shall detail in another message.

--
Alex, homepage: http://www.bennee.com/~alex/
CV: http://www.bennee.com/~alex/cv.php


2009-04-27 23:30:34

by Florian Mickler

[permalink] [raw]
Subject: Re: 2.6.30-rc2 + xorg-intel-2.7.0 + DRM_I915_KMS = corruption

On Sun, 19 Apr 2009 07:27:35 +0100
Alex Bennee <[email protected]> wrote:

> Heading the warnings in the menuconfig I did try and ensure I have all
> the up to date parts of user-space. With KMS enabled GDM starts up but
> then corrupts the display with vertical lines. Disabling the kernel
> config and everything starts up fine, UXA acceleration seems OK and
> the speed of compiz is finally back up to ~60fps thanks to the A17
> fix.
>
> Am I missing another bit of user space for KMS to work properly?
>
> I am seeing a:
>
> [ 6.751092] BUG: using smp_processor_id() in preemptible [00000000]
> code: modprobe/3078
> [ 6.751100] caller is smp_call_function_many+0x29/0x1bd
> [ 6.751103] Pid: 3078, comm: modprobe Not tainted 2.6.30-rc2-ajb
> #56
>
> But I think it's unrelated to any X woes. Shall detail in another
> message.
>

hm, are you using the xf86-video-intel git-branch "2.7"? if i use that,
i need a kernel fix queued in eanholts for-linus git-tree or else i
also get unusable X.

i assumed that this was because of some not-yet-released fixes
on the 2.7-branch which will get released as soon as erics queue is
merged? but i didn't double check ... maybe the released version is
also broken in this regard for me....

2009-04-28 05:37:28

by Alex Bennee

[permalink] [raw]
Subject: Re: 2.6.30-rc2 + xorg-intel-2.7.0 + DRM_I915_KMS = corruption

2009/4/27 Florian Mickler <[email protected]>:
> On Sun, 19 Apr 2009 07:27:35 +0100
> Alex Bennee <[email protected]> wrote:
>
>> Heading the warnings in the menuconfig I did try and ensure I have all
>> the up to date parts of user-space. With KMS enabled GDM starts up but
>> then corrupts the display with vertical lines. Disabling the kernel
>> config and everything starts up fine, UXA acceleration seems OK and
>> the speed of compiz is finally back up to ~60fps thanks to the A17
>> fix.
>>
>> Am I missing another bit of user space for KMS to work properly?

Apparently I was missing a key bit and had to enable fbdev from the
command line:

kernel /kernel-2.6-drm root=/dev/sda2
video=intelfb:mode=1440x900-32@75,accel,hwcursor

However I still saw the same corruption kick in when GDM started. I
couldn't switch mode either which kinda defeated the point.

><snip>
>
> hm, are you using the xf86-video-intel git-branch "2.7"? if i use that,
> i need a kernel fix queued in eanholts for-linus git-tree or else i
> also get unusable X.

No, I'm using the actual released 2.7.0 driver (as built via a simple
Gentoo ebuild)

> i assumed that this was because of some not-yet-released fixes
> on the 2.7-branch which will get released as soon as erics queue is
> merged? but i didn't double check ... ?maybe the released version is
> also broken in this regard for me....

I tried again with the latest drm-intel kernel git tree @

commit 44ab43155e8071fbf037513e57de9a79044edf56
Author: Matthew Garrett <[email protected]>
Date: Wed Apr 1 19:53:33 2009 +0100

drm/i915: Enable ASLE if present

The changes to opregion initialisation order meant that the ASLE setup
code might not be run at the correct time. Ensure that the interrupts are
set up.

Signed-off-by: Matthew Garrett <[email protected]>
Signed-off-by: Eric Anholt <[email protected]>


Still broken :-(


--
Alex, homepage: http://www.bennee.com/~alex/
CV: http://www.bennee.com/~alex/cv.php

2009-04-28 16:53:53

by Jesse Barnes

[permalink] [raw]
Subject: Re: 2.6.30-rc2 + xorg-intel-2.7.0 + DRM_I915_KMS = corruption

On Tue, 28 Apr 2009 06:37:10 +0100
Alex Bennee <[email protected]> wrote:

> 2009/4/27 Florian Mickler <[email protected]>:
> > On Sun, 19 Apr 2009 07:27:35 +0100
> > Alex Bennee <[email protected]> wrote:
> >
> >> Heading the warnings in the menuconfig I did try and ensure I have
> >> all the up to date parts of user-space. With KMS enabled GDM
> >> starts up but then corrupts the display with vertical lines.
> >> Disabling the kernel config and everything starts up fine, UXA
> >> acceleration seems OK and the speed of compiz is finally back up
> >> to ~60fps thanks to the A17 fix.
> >>
> >> Am I missing another bit of user space for KMS to work properly?
>
> Apparently I was missing a key bit and had to enable fbdev from the
> command line:
>
> kernel /kernel-2.6-drm root=/dev/sda2
> video=intelfb:mode=1440x900-32@75,accel,hwcursor
>
> However I still saw the same corruption kick in when GDM started. I
> couldn't switch mode either which kinda defeated the point.

The above seems to indicate that you have some FB drivers built into
your kernel; that will likely fail in weird ways. Try disabling all
the FB drivers, but keep CONFIG_FRAMEBUFFER_CONSOLE enabled. Then when
you load the i915 driver you should get a nice console.

--
Jesse Barnes, Intel Open Source Technology Center

2009-04-29 07:51:41

by Alex Bennee

[permalink] [raw]
Subject: Re: 2.6.30-rc2 + xorg-intel-2.7.0 + DRM_I915_KMS = corruption

2009/4/28 Jesse Barnes <[email protected]>:
> On Tue, 28 Apr 2009 06:37:10 +0100
> Alex Bennee <[email protected]> wrote:
>
>> 2009/4/27 Florian Mickler <[email protected]>:
>> > On Sun, 19 Apr 2009 07:27:35 +0100
>> > Alex Bennee <[email protected]> wrote:
>> >
>> >> Heading the warnings in the menuconfig I did try and ensure I have
>> >> all the up to date parts of user-space. With KMS enabled GDM
>> >> starts up but then corrupts the display with vertical lines.
>> >> Disabling the kernel config and everything starts up fine, UXA
>> >> acceleration seems OK and the speed of compiz is finally back up
>> >> to ~60fps thanks to the A17 fix.
>> >>
>> >> Am I missing another bit of user space for KMS to work properly?
>>
>> Apparently I was missing a key bit and had to enable fbdev from the
>> command line:
>>
>> kernel /kernel-2.6-drm root=/dev/sda2
>> video=intelfb:mode=1440x900-32@75,accel,hwcursor
>>
>> However I still saw the same corruption kick in when GDM started. I
>> couldn't switch mode either which kinda defeated the point.
>
> The above seems to indicate that you have some FB drivers built into
> your kernel; that will likely fail in weird ways. ?Try disabling all
> the FB drivers, but keep CONFIG_FRAMEBUFFER_CONSOLE enabled. ?Then when
> you load the i915 driver you should get a nice console.

Ahh, I was under the (mistaken) impression that the kernel
frame-buffer drivers where linked to the console frame buffer driver
and needed for it to work well. Disabling them all and I do indeed get
a lovely framebuffer console on boot up but still the same corruption
when GDM starts. I'm also still not able to switch back to the console
like I can with KMS disabled.

I've attached my .config, a dump of the dmesg of the failing case and
a broken and working Xorg.log (working being no KMS and the Linus tree
rather than the intel-drm tree, although I have tested the Linus tree
fails with KMS enabled in the same way).


--
Alex, homepage: http://www.bennee.com/~alex/
CV: http://www.bennee.com/~alex/cv.php


Attachments:
.config (72.27 kB)
xcrash (30.97 kB)
Xorg.0.log.failed (22.64 kB)
Xorg.0.log.working (43.89 kB)
Download all attachments

2009-04-29 16:06:32

by Jesse Barnes

[permalink] [raw]
Subject: Re: 2.6.30-rc2 + xorg-intel-2.7.0 + DRM_I915_KMS = corruption

On Wed, 29 Apr 2009 08:49:47 +0100
Alex Bennee <[email protected]> wrote:

> 2009/4/28 Jesse Barnes <[email protected]>:
> > On Tue, 28 Apr 2009 06:37:10 +0100
> > Alex Bennee <[email protected]> wrote:
> >
> >> 2009/4/27 Florian Mickler <[email protected]>:
> >> > On Sun, 19 Apr 2009 07:27:35 +0100
> >> > Alex Bennee <[email protected]> wrote:
> >> >
> >> >> Heading the warnings in the menuconfig I did try and ensure I
> >> >> have all the up to date parts of user-space. With KMS enabled
> >> >> GDM starts up but then corrupts the display with vertical lines.
> >> >> Disabling the kernel config and everything starts up fine, UXA
> >> >> acceleration seems OK and the speed of compiz is finally back up
> >> >> to ~60fps thanks to the A17 fix.
> >> >>
> >> >> Am I missing another bit of user space for KMS to work properly?
> >>
> >> Apparently I was missing a key bit and had to enable fbdev from the
> >> command line:
> >>
> >> kernel /kernel-2.6-drm root=/dev/sda2
> >> video=intelfb:mode=1440x900-32@75,accel,hwcursor
> >>
> >> However I still saw the same corruption kick in when GDM started. I
> >> couldn't switch mode either which kinda defeated the point.
> >
> > The above seems to indicate that you have some FB drivers built into
> > your kernel; that will likely fail in weird ways.  Try disabling all
> > the FB drivers, but keep CONFIG_FRAMEBUFFER_CONSOLE enabled.  Then
> > when you load the i915 driver you should get a nice console.
>
> Ahh, I was under the (mistaken) impression that the kernel
> frame-buffer drivers where linked to the console frame buffer driver
> and needed for it to work well. Disabling them all and I do indeed get
> a lovely framebuffer console on boot up but still the same corruption
> when GDM starts. I'm also still not able to switch back to the console
> like I can with KMS disabled.
>
> I've attached my .config, a dump of the dmesg of the failing case and
> a broken and working Xorg.log (working being no KMS and the Linus tree
> rather than the intel-drm tree, although I have tested the Linus tree
> fails with KMS enabled in the same way).

Ok so you're getting a good console, that's a start. :)

This really sounds like one of the tiling related issues that should be
fixed now, but if you're on the latest bits...

Can you try setting the tiling option to false in your xorg.conf?
Also, please file a bug for this at bugs.freedesktop.org with your X
log & dmesg from your latest config; you can just assign it to me.

Thanks,
--
Jesse Barnes, Intel Open Source Technology Center

2009-04-29 18:56:17

by Andreas Proschofsky

[permalink] [raw]
Subject: Re: 2.6.30-rc2 + xorg-intel-2.7.0 + DRM_I915_KMS = corruption

This is fixed with Kernel 2.6.30-rc3-git6 for me, so you might try this
one.

bye
Andreas

On Wed, 2009-04-29 at 20:18 +0200, Mateusz Kaduk wrote:
> This is realy old issue now. Which I reported at begining of this
> month but exist much longer.
>
> https://bugs.freedesktop.org/show_bug.cgi?id=20896
>
> Two more people also experience this. This only happens with KMS mode.
> I am using 1.6.1 xorg/mesa master/ xf86-intel master and libdrm 2.4.9
> kernel 2.6.30-rc3-git5.
>
> I hope someone can soleve this some day.
> _______________________________________________
> xorg mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/xorg
--
Andreas Proschofsky
Gentoo Developer / OpenOffice.org


Attachments:
signature.asc (198.00 B)
This is a digitally signed message part

2009-04-29 20:07:52

by Alex Bennee

[permalink] [raw]
Subject: Re: 2.6.30-rc2 + xorg-intel-2.7.0 + DRM_I915_KMS = corruption

2009/4/29 Mateusz Kaduk <[email protected]>:
> This is realy old issue now. Which I reported at begining of this month but
> exist much longer.
>
> https://bugs.freedesktop.org/show_bug.cgi?id=20896
>
> Two more people also experience this. This only happens with KMS mode.
> I am using 1.6.1 xorg/mesa master/ xf86-intel master and libdrm 2.4.9 kernel
> 2.6.30-rc3-git5.
>
> I hope someone can soleve this some day.

I don't think this is the same issue I'm seeing so I shall file another bug


--
Alex, homepage: http://www.bennee.com/~alex/
CV: http://www.bennee.com/~alex/cv.php

2009-04-29 21:58:25

by Alex Bennee

[permalink] [raw]
Subject: Re: 2.6.30-rc2 + xorg-intel-2.7.0 + DRM_I915_KMS = corruption

2009/4/29 Jesse Barnes <[email protected]>:
> This really sounds like one of the tiling related issues that should be
> fixed now, but if you're on the latest bits...
>
> Can you try setting the tiling option to false in your xorg.conf?
> Also, please file a bug for this at bugs.freedesktop.org with your X
> log & dmesg from your latest config; you can just assign it to me.

Less corruption, still crashes when X starts.

Bug raised: https://bugs.freedesktop.org/show_bug.cgi?id=21480

--
Alex, homepage: http://www.bennee.com/~alex/
CV: http://www.bennee.com/~alex/cv.php