Bug 27220 - [arrandale] Wrong colors on notebook display
Summary: [arrandale] Wrong colors on notebook display
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Wang Zhenyu
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
: 27207 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-21 05:46 UTC by Jan-Hendrik Zab
Modified: 2011-01-05 04:08 UTC (History)
6 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg with drm-intel-next branch and drm.debug=0x06 (119.95 KB, text/plain)
2010-03-21 05:46 UTC, Jan-Hendrik Zab
no flags Details
photo with wrong colors (291.34 KB, image/jpeg)
2010-03-21 05:47 UTC, Jan-Hendrik Zab
no flags Details
screenshot for comparsion (correct colors) (157.17 KB, image/png)
2010-03-21 05:47 UTC, Jan-Hendrik Zab
no flags Details
lspci (15.69 KB, text/plain)
2010-03-21 05:48 UTC, Jan-Hendrik Zab
no flags Details
xrandr output (2.52 KB, text/plain)
2010-03-21 05:48 UTC, Jan-Hendrik Zab
no flags Details
inte_reg_dump with drm-intel-next branch (7.08 KB, text/plain)
2010-03-21 05:49 UTC, Jan-Hendrik Zab
no flags Details
dmesg output with patch #18 (60.24 KB, text/plain)
2010-05-25 07:10 UTC, templar
no flags Details
intel reg dump (7.68 KB, text/plain)
2010-05-25 07:10 UTC, templar
no flags Details
dmesg with patch #18 (61.44 KB, text/plain)
2010-05-27 11:22 UTC, Jan-Hendrik Zab
no flags Details
intel reg dump with patch #18 (7.08 KB, text/plain)
2010-05-27 11:23 UTC, Jan-Hendrik Zab
no flags Details
[Patch 1/2] add the support of edp on DP-D of CPT/Ibex (7.74 KB, patch)
2010-05-28 05:40 UTC, ykzhao
no flags Details | Splinter Review
[Patch 2/2]: configure the pipeconf dithering flag correctly (1.29 KB, patch)
2010-05-28 05:41 UTC, ykzhao
no flags Details | Splinter Review
dmesg output - black console, X ok with patched 2.6.34 (64.09 KB, text/plain)
2010-06-20 05:58 UTC, Xavier Hallade
no flags Details
[1/2] dmesg 2.6.35 (garbled colors) (53.75 KB, text/plain)
2010-08-03 15:54 UTC, andagom
no flags Details
[2/2] intel_reg_dumper 2.6.35 (garbled colors) (10.36 KB, text/plain)
2010-08-03 15:54 UTC, andagom
no flags Details
Revert patch as requested on comment #46 (1.89 KB, patch)
2010-09-03 07:07 UTC, Christophe Boyanique
no flags Details | Splinter Review

Description Jan-Hendrik Zab 2010-03-21 05:46:21 UTC
Created attachment 34274 [details]
dmesg with drm-intel-next branch and drm.debug=0x06

The problem appears on a new Sony Vaio VPCZ1 notebook with Intel Core i5 520M processor and Arch Linux (x86_64). I also tried Ubuntu 10.04 alpha 3 and the current nightly, but had the same symptoms:

When I start X, all the colors are just wrong on the notebook display, e.g. white becomes pink. (see photo compared to the screenshot)

A TFT connected via VGA1 has the correct colors.

I'm using the current git versions of:

libdrm: c1c8bbf80b1f734e23996bf805dc78f32ebaf56f
xf86-video-intel: 3d4b3f257fbbb69c6f236d9803abe54a90d7d434
drm-intel-next: 4b67369c64759e28717e25d888138ee9fea2437a

But saw this problem also with last stable libdrm and xf86-video-intel pared with either 2.6.33.1 or 2.6.32.10.

If you need any more infos etc., please feel free to ask.

I also opened another bug report yesterday about blurred text in console, since both are display issues: http://bugs.freedesktop.org/show_bug.cgi?id=27207
Comment 1 Jan-Hendrik Zab 2010-03-21 05:47:13 UTC
Created attachment 34275 [details]
photo with wrong colors
Comment 2 Jan-Hendrik Zab 2010-03-21 05:47:43 UTC
Created attachment 34276 [details]
screenshot for comparsion (correct colors)
Comment 3 Jan-Hendrik Zab 2010-03-21 05:48:08 UTC
Created attachment 34277 [details]
lspci
Comment 4 Jan-Hendrik Zab 2010-03-21 05:48:40 UTC
Created attachment 34278 [details]
xrandr output
Comment 5 Jan-Hendrik Zab 2010-03-21 05:49:03 UTC
Created attachment 34279 [details]
inte_reg_dump with drm-intel-next branch
Comment 6 Wang Zhenyu 2010-04-07 23:57:59 UTC
Could you comment out

        if (!lvds_is_present_in_vbt(dev)) {
                DRM_DEBUG_KMS("LVDS is not present in VBT\n");
                return;
        }

in intel_lvds.c and try again?
Comment 7 Jan-Hendrik Zab 2010-04-08 15:44:21 UTC
(In reply to comment #6)
> Could you comment out
> 
>         if (!lvds_is_present_in_vbt(dev)) {
>                 DRM_DEBUG_KMS("LVDS is not present in VBT\n");
>                 return;
>         }
> 
> in intel_lvds.c and try again?

I tried it with drm-intel-next, but nothing changed. xrandr output is the same (except for the 'Timestamp:' part).

Didn't have the time to compare the other output (eg. dmesg) yet.
Comment 8 ykzhao 2010-04-08 17:55:14 UTC
hi, Zhenyu
   From the vbios.dump attached in https://bugs.freedesktop.org/show_bug.cgi?id=27207#C7 it seems that the panel is connected with eDP instead of LVDS controller.

   Not sure whether the dithering is configured for eDP panel.

thanks.
Comment 9 Jan-Hendrik Zab 2010-04-09 08:18:17 UTC
(In reply to comment #8)
> hi, Zhenyu
>    From the vbios.dump attached in
> https://bugs.freedesktop.org/show_bug.cgi?id=27207#C7 it seems that the panel
> is connected with eDP instead of LVDS controller.
> 
>    Not sure whether the dithering is configured for eDP panel.
> 
> thanks.

But it is not identified as eDP IMHO. HAS_eDP is false in ironlake_crtc_dpms().
Comment 10 Adam Jackson 2010-04-12 09:08:55 UTC
This doesn't look like a dithering bug.  It looks like a channel mapping bug.
Comment 11 ykzhao 2010-04-13 06:29:58 UTC
(In reply to comment #10)
> This doesn't look like a dithering bug.  It looks like a channel mapping bug.

Hi, Ajax
    Can you describe it about the channing mapping more clearly? DP port setting or incorrect mapping between DP and pipe?

Thanks.
Comment 12 Adam Jackson 2010-04-14 11:33:25 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > This doesn't look like a dithering bug.  It looks like a channel mapping bug.
> 
> Hi, Ajax
>     Can you describe it about the channing mapping more clearly? DP port
> setting or incorrect mapping between DP and pipe?

I don't know!  Both the FDI registers and the DP registers contain "reversal" bits.  If I had to guess, I'd suspect the DP register first, since if the FDI link were reversed VGA wouldn't look right either.

The reason I say it's likely a channel mapping bug is because the colors in the photo look "swapped" compared to the screenshot: things that would be blue are red, and vice versa.

It would be worth checking if there's a bit in the VBT that tells us what we should do here.
Comment 13 ykzhao 2010-04-14 17:45:33 UTC
thanks for sharing the idea.

I will look at the VBT and see whether any hint can be found.

Thanks.
Comment 14 templar 2010-04-27 09:20:08 UTC
(In reply to comment #13)
> thanks for sharing the idea.
> 
> I will look at the VBT and see whether any hint can be found.
> 
> Thanks.

any news on that?

thx ..
Comment 15 gabe 2010-05-16 17:52:56 UTC
I feel that this is a 'MAJOR' bug as the computer is essentially useless with this graphic corruption.  There is no change as of the May 11 intel-drm-next branch.
Comment 16 ykzhao 2010-05-25 06:41:18 UTC
Will you please try the debug patch https://bugs.freedesktop.org/show_bug.cgi?id=27207#18 on the 2.6.34 kernel and see whether it is helpful?

Please add the boot option of "drm.debug=0x04" and attach the output of dmesg, intel_reg_dumper.

Thanks.
Comment 17 templar 2010-05-25 07:10:30 UTC
Created attachment 35846 [details]
dmesg output with patch #18
Comment 18 templar 2010-05-25 07:10:53 UTC
Created attachment 35847 [details]
intel reg dump
Comment 19 templar 2010-05-25 07:13:35 UTC
(In reply to comment #16)

> Will you please try the debug patch
> https://bugs.freedesktop.org/show_bug.cgi?id=27207#18 on the 2.6.34 kernel and
> see whether it is helpful?
thx alot .. 
colors are correct now in X and the console as well :)

> Please add the boot option of "drm.debug=0x04" and attach the output of dmesg,
> intel_reg_dumper.
nevertheless I've attached the dmesg output:
https://bugs.freedesktop.org/attachment.cgi?id=35846

and the intel_reg_dump output:
https://bugs.freedesktop.org/attachment.cgi?id=35847

I guess I need your address to send you a beer .. ;)
Comment 20 Jan-Hendrik Zab 2010-05-27 11:22:49 UTC
Created attachment 35888 [details]
dmesg with patch #18
Comment 21 Jan-Hendrik Zab 2010-05-27 11:23:29 UTC
Created attachment 35889 [details]
intel reg dump with patch #18
Comment 22 Jan-Hendrik Zab 2010-05-27 11:36:40 UTC
(In reply to comment #16)
> Will you please try the debug patch
> https://bugs.freedesktop.org/show_bug.cgi?id=27207#18 on the 2.6.34 kernel and
> see whether it is helpful?

Kudos, the intel driver works fine now, no funny colors in X and no blurry fonts on the console. :)

Thanks a lot!

Let's hope that the fix will get upstream soon.
Comment 23 ykzhao 2010-05-28 05:40:14 UTC
Created attachment 35908 [details] [review]
[Patch 1/2] add the support of edp on DP-D of CPT/Ibex
Comment 24 ykzhao 2010-05-28 05:41:11 UTC
Created attachment 35909 [details] [review]
[Patch 2/2]: configure the pipeconf dithering flag correctly
Comment 25 ykzhao 2010-05-28 05:45:03 UTC
(In reply to comment #22)
> (In reply to comment #16)
> > Will you please try the debug patch
> > https://bugs.freedesktop.org/show_bug.cgi?id=27207#18 on the 2.6.34 kernel and
> > see whether it is helpful?
> Kudos, the intel driver works fine now, no funny colors in X and no blurry
> fonts on the console. :)
> Thanks a lot!
> Let's hope that the fix will get upstream soon.

thanks for the testing. It is good news that the patch in comment #18 can be helpful to the issue.

Will you please help me test the two patches in comment #23/24 on drm-intel-next tree and see whether it is helpful?

Thanks.
Comment 26 Jan-Hendrik Zab 2010-05-28 09:51:39 UTC
> Will you please help me test the two patches in comment #23/24 on
> drm-intel-next tree and see whether it is helpful?

Hey,
the display works fine with only the first patch applied, having both patches applied works fine as well.

Do you need dmesg and intel reg dump?
Comment 27 ykzhao 2010-05-30 17:51:02 UTC
(In reply to comment #26)
> > Will you please help me test the two patches in comment #23/24 on
> > drm-intel-next tree and see whether it is helpful?
> 
> Hey,
> the display works fine with only the first patch applied, having both patches
> applied works fine as well.
> 
> Do you need dmesg and intel reg dump?

thanks for the testing. It is unnecessary to attach them again.

The second patch is only to configure the dither flag correctly. If the dither flag is already configured by BIOS, the system can work well. But if we select different crtc for eDP or it is not configured by BIOS, the second patch is required.

Thanks.
Comment 28 ykzhao 2010-05-30 18:05:40 UTC
*** Bug 27207 has been marked as a duplicate of this bug. ***
Comment 29 Xavier Hallade 2010-06-20 05:57:12 UTC
When will theses patches get upstream ? I've just tried the 2.6.35-rc3 kernel and I still have random colors.
I'm with the first patch (#16) with 2.6.34 for now and X works really fine but my console goes black when the intel driver is loaded at boot and ctrl+alt+fn doesn't work either (it doesn't show a black screen but my X session, freezed).
Should I try the last patches or do they works the same ? I've attached my dmesg output with drm.debug=0x04
Comment 30 Xavier Hallade 2010-06-20 05:58:32 UTC
Created attachment 36377 [details]
dmesg output - black console, X ok with patched 2.6.34
Comment 31 Wang Zhenyu 2010-07-04 21:35:41 UTC
Please try current linux-2.6 git master.
Comment 32 Jan-Hendrik Zab 2010-07-06 11:11:25 UTC
Hey,
I tried with a current git master (commit 815c4163b6c8ebf8152f42b0a5fd015cfdcedc78), but the colors are still all wrong.

Do you need any specific debugging output?
Comment 33 Wang Zhenyu 2010-08-02 18:31:20 UTC
Could you try final 2.6.35? there should be fixes there.
Comment 34 andagom 2010-08-03 15:54:00 UTC
Created attachment 37558 [details]
[1/2] dmesg 2.6.35 (garbled colors)
Comment 35 andagom 2010-08-03 15:54:57 UTC
Created attachment 37559 [details]
[2/2] intel_reg_dumper 2.6.35 (garbled colors)
Comment 36 andagom 2010-08-03 15:57:02 UTC
(In reply to comment #33)
> Could you try final 2.6.35? there should be fixes there.
Today I tried compiling 2.6.35 without any patches. I still get purple text on
boot, and the colors in X are garbled.

Up until now I had been using a patched 2.6.34 which works perfectly. I used
the same .config when I compile 2.6.35 today. 

Attached is dmesg with "drm.debug=0x04" enabled and intel_reg_dump.
Comment 37 Jan-Hendrik Zab 2010-08-14 08:33:31 UTC
Same here, 2.6.35 still shows the wrong colors.

On another note, drm-intel-next stopped working as well [which gave the correct colors a few weeks ago]. I'm only getting a black screen now, but could not debug this any further due to some upcoming exams.
Comment 38 Wang Zhenyu 2010-08-15 20:13:30 UTC
Please try 2.6.36-rc1 that I've seen many eDP fix go in.
Comment 39 Wang Zhenyu 2010-08-15 20:14:44 UTC
(In reply to comment #36)
> 
> Up until now I had been using a patched 2.6.34 which works perfectly. I used
> the same .config when I compile 2.6.35 today. 
> 

Which patch works for you?
Comment 40 andagom 2010-08-16 09:23:23 UTC
(In reply to comment #39)
> (In reply to comment #36)
> > 
> > Up until now I had been using a patched 2.6.34 which works perfectly. I used
> > the same .config when I compile 2.6.35 today. 
> > 
> 
> Which patch works for you?

I used a patch from Zhao Yakui that I downloaded from here:
http://lowl.net/wp-content/uploads/2010/06/i915patch.txt.


I will try 2.6.36-rc1 next chance I get. Thanks.
Comment 41 Christophe Boyanique 2010-08-22 09:48:23 UTC
Hello,

I own a Sony VPCZ11 notebook (which is similar to VPCZ12) and can
confirm this bug. I found support from the lowl.net site. I installed
Ubuntu Maverick x86_64 and confirmed non working graphic card.

I recompiled the Ubuntu kernel 2.6.35-12.17 kernel with the following 
two patches:

  * Add the support of eDP on DP-D for Ibex/CPT
    https://patchwork.kernel.org/patch/105706/
  * Configure dither for eDP
    https://patchwork.kernel.org/patch/105707/

and that solves the problem. X is working correctly. I'm almost sure 
that only the first one is required.

Since that, I tried to recompile several kernels without success:

* 2.6.35-14.19 with patch #105706
* 2.6.35-14.19 with patch #105706 and https://bugs.freedesktop.org/attachment.cgi?id=37049
* 2.6.35-14.19 with drm-net patch from 20100804
* vanilla 2.6.35 with drm-net patch from 20100804

As you I noticed that 2.6.36-rc1 has many eDP fix but it does not work
either (screen goes black and seems off).
Comment 42 Wang Zhenyu 2010-08-22 20:15:07 UTC
increase priority
Comment 43 Wang Zhenyu 2010-08-29 19:10:10 UTC
(In reply to comment #41)
> I recompiled the Ubuntu kernel 2.6.35-12.17 kernel with the following 
> two patches:
> 
>   * Add the support of eDP on DP-D for Ibex/CPT
>     https://patchwork.kernel.org/patch/105706/
>   * Configure dither for eDP
>     https://patchwork.kernel.org/patch/105707/
> 
> and that solves the problem. X is working correctly. I'm almost sure 
> that only the first one is required.

I'm a little confused, so first one could fix the problem for you, and it's already in upstream. Does 2.6.36-rc2 work for you? If not, could you bisect which commit causes regression?
Comment 44 Christophe Boyanique 2010-09-02 05:59:50 UTC
(In reply to comment #43)

> I'm a little confused, so first one could fix the problem for you, and it's
> already in upstream. Does 2.6.36-rc2 work for you? If not, could you bisect
> which commit causes regression?

I just tried a vanilla 2.6.36-rc3 and it does not fix the problem.

I don't know how to "bisect" commit between the 2.6.35-12-generic from ubuntu and a vanilla 2.6.36-rc3. I am able to use diff and patch but I don't know how to help more.
Comment 45 Jan-Hendrik Zab 2010-09-02 06:54:54 UTC
Hey,
I tried bisecting the problem (with git bisect start -- drivers/gpu), but for now only to the commit that reintroduced the wrong colors.

Git says that 1073af33fdd4e960c70b828e899b1291b44f0b3d is at fault, which is IMHO a bit wierd, considering that it only touches the intel_lvds.c file.

My bisecting log:
# bad: [2bfc96a127bc1cc94d26bfaa40159966064f9c8c] Linux 2.6.36-rc3
git bisect bad 2bfc96a127bc1cc94d26bfaa40159966064f9c8c
# good: [36e83a187ca7517e9bdce7148b1c2c27661ef38f] drm/i915: Add the support of eDP on DP-D for Ibex/CPT
git bisect good 36e83a187ca7517e9bdce7148b1c2c27661ef38f
# bad: [5ddb954b9ee50824977d2931e0ff58b3050b337d] drm/i915/edp: Flush the write before waiting for PLLs
git bisect bad 5ddb954b9ee50824977d2931e0ff58b3050b337d
# bad: [7b824ec2e5d7d086264ecae51e30e3c5e00cdecc] drm/i915: Clear the Ironlake dithering flags when the pipe doesn't want it.
git bisect bad 7b824ec2e5d7d086264ecae51e30e3c5e00cdecc
# bad: [2bd34f6ca86b5a5f9b749624f73310820e7a93fd] Merge remote branch 'origin/master' into drm-intel-next
git bisect bad 2bd34f6ca86b5a5f9b749624f73310820e7a93fd
# good: [e1a4474349997d722e4ae64e40a68feb25307109] drm/i915/pch: Cosmetic fix to FDI link training
git bisect good e1a4474349997d722e4ae64e40a68feb25307109
# bad: [aebf0dafee1a0a22b3d25db8107c6479db4aaebe] drm/i915: don't free non-existent compressed llb on ILK+
git bisect bad aebf0dafee1a0a22b3d25db8107c6479db4aaebe
# bad: [6ba770dc5c334aff1c055c8728d34656e0f091e2] drm/i915: Make G4X-style PLL search more permissive
git bisect bad 6ba770dc5c334aff1c055c8728d34656e0f091e2
# bad: [6f772d7e2f4105470b9f3d0f0b26f06f61b1278d] drm/i915: Explosion following OOM in do_execbuffer.
git bisect bad 6f772d7e2f4105470b9f3d0f0b26f06f61b1278d
# bad: [1073af33fdd4e960c70b828e899b1291b44f0b3d] gpu/drm/i915: Add a blacklist to omit modeset on LID open
git bisect bad 1073af33fdd4e960c70b828e899b1291b44f0b3d


I'll try to bisect the black screen issue next week.
Comment 46 Wang Zhenyu 2010-09-02 18:21:38 UTC
I think this regression should be caused by

commit b329530ca7cdf6bf014f2124efd983e01265d623
Author: Adam Jackson <ajax@redhat.com>
Date:   Fri Jul 16 14:46:28 2010 -0400

    drm/i915/dp: Correctly report eDP in the core connector type
    
    Do this for both real eDP and for PCH_DP_D when used as the eDP
    connection.
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>
    Signed-off-by: Eric Anholt <eric@anholt.net>

please help to test by revert that commit, thanks.
Comment 47 Christophe Boyanique 2010-09-03 07:07:55 UTC
Created attachment 38402 [details] [review]
Revert patch as requested on comment #46


I compiled a 2.6.36rc3 vanilla kernel with the revert patch as requested and I always get a blackscreen.

Patch attached. Packages of the kernel are available there:

http://ombos.raceme.org//tof/i915-vpcz1/2.6.36-rc3-2/

I don't know if it can be usefull but I included two xorg log files:

- xorg.1 from a working session
- xorg.2 from a non working session
Comment 48 Boris Dolgov 2010-09-12 21:48:09 UTC
The blank screen still reproduces on Sony Vaio VPC-Z11X9R and linux-2.6.36-rc4.
Comment 49 Wang Zhenyu 2010-09-18 18:46:46 UTC
(lower priority to not block Q3 release...)

I suspect there're actually two kinds of eDP bugs here. One for eDP output from CPU directly, and another for eDP output from PCH. Ajax's patch only affect PCH eDP, but current upstream has regression for CPU eDP as well...I'll try to see if we can find proper hw to reproduce this.
Comment 50 Christophe Boyanique 2010-09-21 06:19:45 UTC
(In reply to comment #49)

> I'll try to see if we can find proper hw to reproduce this.

I can give you ssh access to my Sony VPCZ11 if this can help. Please contact me privately for details if interrested.
Comment 51 Boris Dolgov 2010-10-04 07:56:21 UTC
If Christophe's laptop didn't satisfy you by any reason, I can also give you access to my vpc-z11x9r (with slackware linux and vanilla kernel installed).
Comment 52 Boris Dolgov 2010-10-13 05:16:39 UTC
No luck with linux-2.6.36-rc7 :(
Comment 53 Jan-Hendrik Zab 2010-10-13 06:21:47 UTC
It works fine with a (relatively) current drm-intel-next. The black screen bug is gone now, so we can actually tell that the colors are fine. :)
Comment 54 Boris Dolgov 2010-10-13 22:35:33 UTC
Where can I get it? 
Is it the drm-intel git repository?

If so, the screen is blank with it.
Comment 55 Boris Dolgov 2010-10-14 03:37:21 UTC
This is a correct bootup log:
Oct 14 09:58:44 vaio kernel: i915 0000:00:02.0: power state changed by ACPI to D0
Oct 14 09:58:44 vaio kernel: i915 0000:00:02.0: power state changed by ACPI to D0
Oct 14 09:58:44 vaio kernel: i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Oct 14 09:58:44 vaio kernel: mtrr: no more MTRRs available
Oct 14 09:58:44 vaio kernel: [drm] MTRR allocation failed.  Graphics performance may suffer.
Oct 14 09:58:44 vaio kernel: [drm] set up 127M of stolen space
Oct 14 09:58:44 vaio kernel: fb0: inteldrmfb frame buffer device
Oct 14 09:58:44 vaio kernel: registered panic notifier
Oct 14 09:58:44 vaio kernel: acpi device:00: registered as cooling_device4
Oct 14 09:58:44 vaio kernel: input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input6
Oct 14 09:58:44 vaio kernel: ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
Oct 14 09:58:44 vaio kernel: [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0


This is a blank screen bootup log:
Oct 14 09:57:22 vaio kernel: [drm] Initialized drm 1.1.0 20060810
Oct 14 09:57:22 vaio kernel: i915 0000:00:02.0: power state changed by ACPI to D0
Oct 14 09:57:22 vaio kernel: i915 0000:00:02.0: power state changed by ACPI to D0
Oct 14 09:57:22 vaio kernel: i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Oct 14 09:57:22 vaio kernel: mtrr: no more MTRRs available
Oct 14 09:57:22 vaio kernel: [drm] MTRR allocation failed.  Graphics performance may suffer.
Oct 14 09:57:22 vaio kernel: [drm] detected 127M stolen memory, trimming to 32M
Oct 14 09:57:22 vaio kernel: [drm] set up 32M of stolen space
Oct 14 09:57:22 vaio kernel: vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
Oct 14 09:57:22 vaio kernel: No connectors reported connected with modes
Oct 14 09:57:22 vaio kernel: [drm] Cannot find any crtc or sizes - going 1024x768
Oct 14 09:57:22 vaio kernel: fb0: inteldrmfb frame buffer device
Oct 14 09:57:22 vaio kernel: drm: registered panic notifier
Oct 14 09:57:22 vaio kernel: acpi device:00: registered as cooling_device4
Oct 14 09:57:22 vaio kernel: input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input4
Oct 14 09:57:22 vaio kernel: ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
Oct 14 09:57:22 vaio kernel: [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0

I can ssh to the blank screen bootup and do some commands there.
Comment 56 Jan-Hendrik Zab 2010-10-14 04:49:19 UTC
(In reply to comment #54)
> Where can I get it? 
> Is it the drm-intel git repository?
> 
> If so, the screen is blank with it.

You can get it here: git://git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel

And check it out via: `git clone git://git.kernel.org/pub/scm/linux/kernel/git/ickle/drm-intel'

You can check out the 'drm-intel-next' branch with `git checkout drm-intel-next', but it might be the default anyway.
Comment 57 Christophe Boyanique 2010-10-18 10:02:48 UTC
> You can check out the 'drm-intel-next' branch with `git checkout
> drm-intel-next', but it might be the default anyway.

I managed to download the -next branch (http://git.kernel.org/?p=linux/kernel/git/ickle/drm-intel.git;a=shortlog;h=refs/heads/drm-intel-next) and compile it. Indeed the black screen bug is resolved: X is fully working.

If one wants to test I made linux-image packages for ubuntu maverick 64bits:

http://ombos.raceme.org/tof/i915-vpcz1/2.6.36-rc5-tiphon.2/
Comment 58 Boris Dolgov 2010-10-24 20:57:52 UTC
Yes, intel-drm-next works for me!

But my xrandr outputs:
borisko@vaio:~$ xrandr
Screen 0: minimum 320 x 200, current 1600 x 900, maximum 8192 x 8192
(null)1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 291mm x 164mm
   1600x900       59.9*+   40.0  
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)

is it ((null)1) correct?
Comment 59 Wang Zhenyu 2010-11-14 17:22:24 UTC
Mark as closed with upstream bits. Please also test with 2.6.37-rc kernel too to make sure the fix in drm-intel-next is not missed.

thanks.
Comment 60 Boris Dolgov 2010-11-15 05:01:39 UTC
2.6.37-rc1-git11 works fine.

But the bug with the name ((null)1 connected 1600x900+0+0 (normal left inverted right x axis y axis) 291mm x 164mm) still exist.
Comment 61 Boris Dolgov 2010-11-16 07:54:16 UTC
I have a lot of messages in dmesg on 2.6.37-rc1-git11:
[drm:i915_gem_mmap_gtt_ioctl] *ERROR* Attempting to mmap a purgeable buffer
[drm:i915_gem_object_bind_to_gtt] *ERROR* Attempting to bind a purgeable object
Comment 62 Boris Dolgov 2010-12-13 06:29:15 UTC
Also, black screen problem returns in linux-2.6.37-rc5.
Comment 63 Boris Dolgov 2011-01-05 04:03:41 UTC
Linux 2.6.37 has blank screen problem.
Comment 64 Chris Wilson 2011-01-05 04:08:03 UTC
Not the same bug, so please reopen another. However you might be interested in

commit 369581028e2528122cc109abacf11766ae231f01
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date:   Tue Jan 4 10:46:49 2011 -0800

    drm/i915: check eDP encoder correctly when setting modes
    
    We were using a stale pointer in the check which caused us to use CPU
    attached DP params when we should have been using PCH attached params.
    
    Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31988
    Tested-by: Jan-Hendrik Zab <jan@jhz.name>
    Tested-by: Christoph Lukas <christoph.lukas@gmx.net>
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>


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.