Bug 42278 - [SNB eDP] kms failure (Vostro 360)
Summary: [SNB eDP] kms failure (Vostro 360)
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: Other All
: high critical
Assignee: Jesse Barnes
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
: 44898 (view as bug list)
Depends on:
Blocks: 42991 44622
  Show dependency treegraph
 
Reported: 2011-10-26 05:41 UTC by kowalski marcin
Modified: 2017-07-24 23:03 UTC (History)
10 users (show)

See Also:
i915 platform:
i915 features:


Attachments
X logs (22.86 KB, text/plain)
2011-10-26 05:41 UTC, kowalski marcin
no flags Details
dmesg output (179.17 KB, text/plain)
2011-10-26 05:42 UTC, kowalski marcin
no flags Details
dmesg from drm-intel-next boot (47.45 KB, text/plain)
2011-10-26 06:45 UTC, kowalski marcin
no flags Details
dmesg from intel-drm-next boot with extra debug param (489.66 KB, text/plain)
2011-10-26 09:07 UTC, kowalski marcin
no flags Details
more complete dmesg (859.83 KB, application/octet-stream)
2011-10-26 09:15 UTC, kowalski marcin
no flags Details
kernel log from intel-drm-next@9ca1d10d748e56964de95e3ed80211b192f56cf4 (115.19 KB, text/plain)
2011-11-08 01:32 UTC, kowalski marcin
no flags Details
boot log from drm-intel-next@9a10f401a401ca69c6537641c8fc0d6b57b5aee8 (113.88 KB, text/x-log)
2011-11-17 06:14 UTC, kowalski marcin
no flags Details
drm-intel-fixes@5be93ad2ebb975df8ba01f6c76b541ff4e9929f4 boot log (315.53 KB, text/x-log)
2011-12-01 02:49 UTC, kowalski marcin
no flags Details
drm-intel-fixes@5be93ad2ebb975df8ba01f6c76b541ff4e9929f4 boot log (315.53 KB, text/plain)
2011-12-01 02:51 UTC, kowalski marcin
no flags Details
boot log from drm-intel-next@097354eb14fa94d31a09c64d640643f58e4a5a9a (117.76 KB, text/plain)
2011-12-20 00:41 UTC, kowalski marcin
no flags Details
Logs of kernel, Xorg and lspci on Ubuntu oneiric (24.93 KB, application/x-compressed-tar)
2012-01-05 05:24 UTC, Jerome Tournier
no flags Details
fixup dp bpc calculations (3.32 KB, patch)
2012-01-26 03:54 UTC, Daniel Vetter
no flags Details | Splinter Review
boot log from drm-intel-fixes-next@ 6a8197121146cdad0ceb6d639676965aaffcb69a + patch (492.58 KB, text/plain)
2012-01-26 23:20 UTC, kowalski marcin
no flags Details
boot log with intel_dp_link_required patch applied (from comment 56180) (55.62 KB, text/plain)
2012-01-30 07:22 UTC, Jerome Tournier
no flags Details
Kernel dmesg log with drm-intel-fixes@c291be9dba370ba696a0d482249a212cf5c15f45 (1.33 MB, text/plain)
2012-04-18 08:00 UTC, Olivier Cloirec
no flags Details
Vostro 360 intel video register with drm-intel-fixes@c291be9dba370ba696a0d482249a212cf5c15f45 (7.14 KB, text/plain)
2012-04-18 08:01 UTC, Olivier Cloirec
no flags Details
Vostro 360 intel video BIOS dump with drm-intel-fixes@c291be9dba370ba696a0d482249a212cf5c15f45 (64.00 KB, application/octet-stream)
2012-04-18 08:02 UTC, Olivier Cloirec
no flags Details
/sys/kernel/debug/dri/0/i915_gem_interrupt output on drm-intel-fixes@c291be9dba370ba696a0d482249a212cf5c15f45 (845 bytes, application/octet-stream)
2012-04-19 04:23 UTC, Olivier Cloirec
no flags Details
1. after a lightdm restart, no more backlight (11.33 KB, application/octet-stream)
2012-04-24 00:37 UTC, Olivier Cloirec
no flags Details
2. subsequent reboot, no backlight after starting (11.36 KB, application/octet-stream)
2012-04-24 00:38 UTC, Olivier Cloirec
no flags Details
3. on (2) session, after lightdm restart, backlight is back (11.33 KB, application/octet-stream)
2012-04-24 00:38 UTC, Olivier Cloirec
no flags Details
keep HDMID off the eDP port (1.10 KB, patch)
2012-05-30 12:53 UTC, Jesse Barnes
no flags Details | Splinter Review
cache the EDID on eDP panels (3.25 KB, patch)
2012-06-05 14:38 UTC, Jesse Barnes
no flags Details | Splinter Review

Description kowalski marcin 2011-10-26 05:41:52 UTC
Created attachment 52789 [details]
X logs

I'm currently trying to put linux on dell vostro 360 . It's fitted with Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz , and lspci shows 

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)

The issues it that as KMS starts up, the display goes blank. The system works, i can ssh into it. X11 driver does not bring the display up.

Booting with nomodeset helps.

I tested with most recent opensuse 11.4 kernel ( ~2.6.37.6) , also most recent 3.0 and most recent 3.1 (stable) kernels from arch linux.

Also, most live distributions fail in the same way. Tested with fedora16 beta and recent archlinux. Systems without KMS drivers (opensuse 11.4 graphical installer, using vesa driver) work fine.

3.1 kernel spams dmesg with 
===============================================
[  602.041127] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
[  602.471030] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
[  602.900936] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
[  603.330855] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
[  603.760647] [drm:intel_dp_complete_link_train] *ERROR* failed to train DP, aborting
(....)
===============================================

I'll provide any info as necessary.

i'll attach Xorg.0.log (trying to launch login manager remotely) and dmesg
Comment 1 kowalski marcin 2011-10-26 05:42:18 UTC
Created attachment 52790 [details]
dmesg output
Comment 2 Eugeni Dodonov 2011-10-26 05:57:18 UTC
Could you try the patches from the drm-intel-next branch, at http://cgit.freedesktop.org/~keithp/linux/log/?h=drm-intel-next ?
Comment 3 Daniel Vetter 2011-10-26 06:42:49 UTC
Also please boot your kernel with drm.debug=0xe added to your kernel bootline and attach the complete dmesg.
Comment 4 kowalski marcin 2011-10-26 06:43:50 UTC
the old errors are gone, something new appeared now

attaching dmesg.
Comment 5 kowalski marcin 2011-10-26 06:45:05 UTC
Created attachment 52793 [details]
dmesg from drm-intel-next boot

i reused default archlinux config to save time.

kernel versioned itself as 3.1.0-rc6-ARCH-g82d1655
Comment 6 kowalski marcin 2011-10-26 06:45:56 UTC
i forgot to mention - still no display.
Comment 7 Keith Packard 2011-10-26 08:31:48 UTC
Please try drm-intel-next branch and make sure you set the kernel option drm.debug=0x0e so that we get the necessary debug messages in the kernel log.
Comment 8 kowalski marcin 2011-10-26 09:06:41 UTC
retested i got the right kernel, it's drm-intel-next @ 

commit 82d165557ef094d4b4dfc05871aee618ec7102b0
Author: Adam Jackson <ajax@redhat.com>
Date:   Fri Oct 14 17:22:26 2011 -0400

    drm/i915/dp: Fix eDP on PCH DP on CPT/PPT
    
    According to the gen6 docs, only the DP_A port (on-CPU eDP) still uses
    the old IBX bit shift for the link training pattern setup bits.
    
    Signed-off-by: Adam Jackson <ajax@redhat.com>
    Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
    Signed-off-by: Keith Packard <keithp@keithp.com>



rebooted with necessary debug parameters, attaching dmesg. it seems to loop after a minute or so, so i cut it to two minutes.
Comment 9 kowalski marcin 2011-10-26 09:07:49 UTC
Created attachment 52802 [details]
dmesg from intel-drm-next boot with extra debug param
Comment 10 kowalski marcin 2011-10-26 09:12:11 UTC
it seems that dmesg i posted has only last couple of messages, so i dig out entire kernel log from boot time, that should be more complete.
Comment 11 Keith Packard 2011-10-26 09:14:10 UTC
yeah, looks like the dmesg ring lost the interesting boot-time bits due to the looping. Any way you can capture the dmesg soon enough after boot to get the startup sequence?
Comment 12 kowalski marcin 2011-10-26 09:15:00 UTC
Created attachment 52803 [details]
more complete dmesg
Comment 13 kowalski marcin 2011-11-08 01:30:44 UTC
I'm attaching a new kernel log from drm-intel-next @ 	9ca1d10d748e56964de95e3ed80211b192f56cf4
Comment 14 kowalski marcin 2011-11-08 01:32:52 UTC
Created attachment 53281 [details]
kernel log from intel-drm-next@9ca1d10d748e56964de95e3ed80211b192f56cf4
Comment 15 kowalski marcin 2011-11-08 01:35:39 UTC
the messages that start at ~15 second mark start repeating in the log unchanged every second, so i cut it short.
Comment 16 Paulo J. Matos 2011-11-14 01:51:53 UTC
I am interested in the bug. Same setup here. Exactly the same problem.
Comment 17 Martin Treide-Heuser 2011-11-17 04:11:48 UTC
About this Issue i found another interesting thing:
Dell named their Monitor 23" AIO!


root@daphixterminal1:~# hwinfo --monitor
25: None 00.0: 10002 LCD Monitor                                
  [Created at monitor.95]
  Unique ID: rdCR.KZw2Np07sk4
  Hardware Class: monitor
  Model: "23" AIO"
  Vendor: CHR 
  Device: eisa 0x0608 "23" AIO"
  Resolution: 1920x1080@60Hz
  Size: 509x286 mm

This results in a wrong xorg.conf:

Section "Monitor"
	ModelName "23" AIO"


You will get an error when you try to start....
Comment 18 kowalski marcin 2011-11-17 06:12:45 UTC
i'm experiencing weird behavior on currrent intel-drm-next git

KMS kicks in and it works during boot, but something goes wrong few seconds later. 

screen goes black, and seems to "flicker". it looks like the backlight alternates between different states or screen powers on and off constantly.

i can catch a brief glimpse of console output once in a while.

i'm attaching a new log in a minute.
Comment 19 kowalski marcin 2011-11-17 06:14:39 UTC
Created attachment 53631 [details]
boot log from drm-intel-next@9a10f401a401ca69c6537641c8fc0d6b57b5aee8
Comment 20 kowalski marcin 2011-11-17 06:17:19 UTC
btw, external d-sub display works correctly - i plugged it in after system has booted to figure out the ip address and grab the logs.
Comment 21 Paulo J. Matos 2011-11-17 06:42:27 UTC
I face the same problem. Black screen on Vostro 360 when using i915 driver (ubuntu 11.10).

I am currently working around using vesa driver however this is quite bad as the max resolution is 1280x1024 instead of the usual 1080p.

Is there anything I can provide or do to help fix this issue?
Comment 22 kowalski marcin 2011-11-17 11:48:34 UTC
@Paulo , you could try building the drm-intel-next branch of the kernel from  git://people.freedesktop.org/~keithp/linux and running it on your machine.

i'm not going to have access to vostro 360 for a couple of days, maybe i have it again in my hands next week - just to keep testing perpetual as new commits roll in would help.
Comment 23 kowalski marcin 2011-12-01 02:48:48 UTC
i've got a hold of another vostro 360, and tested drm-intel-fixes.

after booting display is fine for a couple of seconds, and then it starts to turn on and off. i can see console output for a ~0.5 second, it reinitializes, shows up for ~0.5 second and the process repeats.

attaching log from drm-intel-fixes@5be93ad2ebb975df8ba01f6c76b541ff4e9929f4

the problem starts at 15 seconds mark. up to this point KMS is working fine.
Comment 24 kowalski marcin 2011-12-01 02:49:27 UTC
Created attachment 53995 [details]
drm-intel-fixes@5be93ad2ebb975df8ba01f6c76b541ff4e9929f4 boot log
Comment 25 kowalski marcin 2011-12-01 02:51:12 UTC
Created attachment 53996 [details]
drm-intel-fixes@5be93ad2ebb975df8ba01f6c76b541ff4e9929f4 boot log

resending in text/plain, for convenience
Comment 26 kowalski marcin 2011-12-09 05:37:51 UTC
retested on 	drm-intel-fixes @ 89c488d29811e220eb29af5c8babc36963cbbc7a

things are basically the same.

i also updated 360's bios from A02 to A04, but that changed nothing. behavior is exactly the same.
Comment 27 kowalski marcin 2011-12-13 23:38:59 UTC
is there any other way i can provide extra information besided testing subsequent git commits against the hardware ?
Comment 28 kowalski marcin 2011-12-20 00:40:12 UTC
attaching log from drm-intel-next@097354eb14fa94d31a09c64d640643f58e4a5a9a

behavior is similar on drm-intel-fixes at current head. i also tested semaphore parameter, which does nothing in this case.
Comment 29 kowalski marcin 2011-12-20 00:41:12 UTC
Created attachment 54592 [details]
boot log from drm-intel-next@097354eb14fa94d31a09c64d640643f58e4a5a9a
Comment 30 Jerome Tournier 2012-01-05 05:20:18 UTC
I also have this problem with a Vostro 360.

X logs for Ubuntu 11.10 (i386 but same issue for amd64):

00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
I will attach a kernel and Xorg dump.

The only way for me to have correct resolution (1920x1080) was in using the Live CDROM of Ubuntu Maverick 10.10 which use:
- kernel 2.6.35-22-generic
- xserver-xorg-video-intel 2.12.0-1ubuntu5

... but once the system installed, the black screen problem come back. I can't actually undestand the difference between the live OS and the installed one (after the installation, the kernel is slightly different; but after installing exactly the same than the one used in the live CD, the problem persist).

I also tried other Ubuntu release, even the latest Ubuntu 12.04 precise (alpha version): same issue.

Booting with nomodeset helps also, but lead to a low resolution.
Comment 31 Jerome Tournier 2012-01-05 05:24:35 UTC
Created attachment 55168 [details]
Logs of kernel, Xorg and lspci on Ubuntu oneiric
Comment 32 kowalski marcin 2012-01-08 21:56:34 UTC
@Jerome - interesting. did you boot the cd normally or with a safe video mode option ? is the resolution correct in live environment?

i'll retest on my 360 unit with that live media in a few hours.
Comment 33 kowalski marcin 2012-01-08 23:46:16 UTC
unfortunately, i cannot reproduce a correct boot with ubuntu 10.10 on my 360 unit. the 10.10 media has 2.6.35-22-generic kernel, as in your example.

display goes black every time. booting with nomodeset makes X fail to work completely.
Comment 34 Jerome Tournier 2012-01-09 00:47:26 UTC
Hi,

Well another Live distribution that work every time correctly for me is the elementary OS:
- ISO used: elementaryos0.1-jupiter-amd64.iso
- Web site: http://elementaryos.org/

This Live CD is based also on Ubuntu Maverick AMD64 and use:
- linux-headers-2.6.35-28-generic      2.6.35-28.49
- xserver-xorg-video-intel             2:2.12.0-1ubuntu5.2

I don't understand why this live cd work and i can't manage the OS to work once installed...
Comment 35 Jerome Tournier 2012-01-09 00:48:27 UTC
Hi,

Well another Live distribution that work every time correctly for me is the elementary OS:
- ISO used: elementaryos0.1-jupiter-amd64.iso
- Web site: http://elementaryos.org/

This Live CD is based also on Ubuntu Maverick AMD64 and use:
- linux-headers-2.6.35-28-generic      2.6.35-28.49
- xserver-xorg-video-intel             2:2.12.0-1ubuntu5.2

I don't understand why this live cd work and i can't manage the OS to work once installed...

PS: i did not specify any option at the boot time.
Comment 36 kowalski marcin 2012-01-09 02:43:23 UTC
i still get a no display with elementary os. 

@Jerome, i think that's because you have slightly different cpu than one in mine.

i have i3-2100 in all 360's i tried, your logs show i3-2120. They probably have a little different hd graphics cores, as well.
Comment 37 Jerome Tournier 2012-01-16 06:28:23 UTC
Hi,

I'm coming back.

Even with the Intel driver 2.17.0 and latest kernel 3.2.0-9, the problem is still present.

What can i do to help ?
Comment 38 Daniel Vetter 2012-01-26 03:54:49 UTC
Created attachment 56180 [details] [review]
fixup dp bpc calculations

Can you please try this kernel patch?
Comment 39 kowalski marcin 2012-01-26 23:18:39 UTC
didn't help for me.

attaching boot log from current drm-intel-next-fixes with the patch applied on top.
Comment 40 kowalski marcin 2012-01-26 23:20:25 UTC
Created attachment 56214 [details]
boot log from drm-intel-fixes-next@	6a8197121146cdad0ceb6d639676965aaffcb69a + patch
Comment 41 kowalski marcin 2012-01-27 04:29:03 UTC
just to clarify - the KMS part works fine, for a few seconds from boot. 

after a short while (usually ~5 seconds after KMS changes the display resolution) display starts constantly resetting itself, going on and off, occasionally displaying output for a split second. 

this behavior is consistent - i've experienced it on all vostro 360 units i tested.
Comment 42 Jerome Tournier 2012-01-30 07:19:29 UTC
Patch also doesn't work in my case. Exactly same behaviour for the display.
My dmesg output in attachment.
Comment 43 Jerome Tournier 2012-01-30 07:22:00 UTC
Created attachment 56328 [details]
boot log with intel_dp_link_required patch applied (from comment 56180)
Comment 44 Paulo J. Matos 2012-02-07 00:12:48 UTC
Hi,

Yesterday I turned my Vostro 360 on again after two months on hiatus due to a quite convoluted house move.

I see there are no changes to the status of the problem with the vostro, it's still a no no for linux. 

I am wondering if someone actually knows what the problem is with the vostro card such that it is not working or if we are just trying patches as they come out in the hope that one will fix it.

Also, if I can do anything to help (including testing patches), pls let me know.
Comment 45 Jesse Barnes 2012-04-05 13:41:26 UTC
Ok so you both see the kernel log during boot (if you remove the 'quiet' boot option) but when X starts the display goes blank and doesn't come back?  Or it flickers on and off?

Would it be possible for you to disable gdm or lightdm, login with the console working and get a register dump using "intel_reg_dumper", then start gdm/lightdm and get another dump using ssh?

We must be shutting off the panel or backlight when starting X, or otherwise breaking the eDP config.

Unfortunately, I don't have an SNB eDP system to test with, but Keith does so he may be able to help too.
Comment 46 Jesse Barnes 2012-04-05 13:48:08 UTC
Oh forgot to ask the most annoying question: does this still happen on the drm-intel-next branch of Daniel's tree at git://people.freedesktop.org/~danvet/drm-intel.git?
Comment 47 kowalski marcin 2012-04-10 06:58:09 UTC
in my case i didn't use X, except for brief testing.

X or not, the display starts turning itself on and off, with occasional glimpse of console. 

logs were gathered without X or any login managers running.

boot is as follows - standard kernel bootup, KMS kicks in and sets proper resolution. few seconds later display goes black as if powered down. turns itself on, goes blank etc. sometimes console output flashes for split second on screen. from what i can see backlight also switches on and off, as display doesn't just go blank - it goes black as when it's powered down.

this continues unchanged when X is started. although X logs don't show anything useful.

external display (unit has d-sub) works without glitches, when connected.

i don't currently have the hardware around, when i get my hands on next batch of 360s, i'll test again.
Comment 48 Jesse Barnes 2012-04-10 10:22:08 UTC
Does http://lists.freedesktop.org/archives/intel-gfx/2012-April/016230.html help at all?
Comment 49 kowalski marcin 2012-04-10 12:54:41 UTC
i don't think i've tested this one. 

i followed keith's drm-intel-next git trees, and didn't notice the more up to date drm-intel tree at http://cgit.freedesktop.org/~danvet/drm-intel/log/?h=drm-intel-fixes until yesterday.

if i get the hardware i'll test this.
Comment 50 Olivier Cloirec 2012-04-18 07:57:51 UTC
Hello all,

I have just tested a Vostro 360 with drm-intel-fixes@c291be9dba370ba696a0d482249a212cf5c15f45 from ~danvet/drm-intel.

The behavior with KMS (nomodeset disabled) is slightly different. Now, backlight is switching from "almost black" (very dark) to "black" (darkest) every 1 second (fixed rate). No more randomly "short backlighting" as with 3.2.

I give you:
- kernel dmesg logs with drm.debug=0x0e
- intel_reg_dumper output
- Intel bios video dump (generated with intel-gpu-tools 1.1.0 release since 1.0.2 is broken)

Hardware type is a DELL Vostro 360 with "Intel(R) Core(TM) i5-2400S CPU @ 2.50GHz" cpu and Video controller is "00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0102] (rev 09)".

OS is an Ubuntu 11.10.
Please let me know if I can provide any other useful info.

Thanks in advance.
Comment 51 Olivier Cloirec 2012-04-18 08:00:01 UTC
Created attachment 60258 [details]
Kernel dmesg log with drm-intel-fixes@c291be9dba370ba696a0d482249a212cf5c15f45
Comment 52 Olivier Cloirec 2012-04-18 08:01:46 UTC
Created attachment 60259 [details]
Vostro 360 intel video register with drm-intel-fixes@c291be9dba370ba696a0d482249a212cf5c15f45
Comment 53 Olivier Cloirec 2012-04-18 08:02:39 UTC
Created attachment 60260 [details]
Vostro 360 intel video BIOS dump with drm-intel-fixes@c291be9dba370ba696a0d482249a212cf5c15f45
Comment 54 Jesse Barnes 2012-04-18 10:11:52 UTC
*** Bug 44898 has been marked as a duplicate of this bug. ***
Comment 55 Jesse Barnes 2012-04-18 10:12:17 UTC
Going out on a limb and associating these two bugs.

Can one of you get the output from /sys/kernel/debug/dri/0/i915_gem_interrupt? 
You may need to capture it a few times to get the output I'm looking for,
specifically what the "South Display Interrupt identity" field is when the
hotplug occurs.  I'm guessing bit 23, 22, or 21 is stuck on, but it could be
one of the others.

After you've gathered that, you could try this patch, which ought to shut up
your hotplug interrupts at least:

diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 967b92e..9b6d8ac 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -2106,6 +2106,8 @@ static int ironlake_irq_postinstall(struct drm_device
*dev
                                SDE_AUX_MASK);
        }

+       hotplug_mask = 0;
+
        dev_priv->pch_irq_mask = ~hotplug_mask;

        I915_WRITE(SDEIIR, I915_READ(SDEIIR));

*** This bug has been marked as a duplicate of bug 42278 ***
Comment 56 Daniel Vetter 2012-04-18 14:40:54 UTC
The duped bug #44898 reporter said that his display works when adding drm_kms_helper.poll=0 on the kernel command line. Can you please test this?
Comment 57 Olivier Cloirec 2012-04-19 04:22:10 UTC
Hello and thanks for your help.

First, the output of /sys/kernel/debug/dri/0/i915_gem_interrupt is stable (except the number of received interrupts ;) )

I tried "drm_kms_helper.poll=0" option and it worked like duplicate #44898.
Btw, I can confirm it works:
- without applying the i915_irq.c latest patch
- on a previous kernel (linux-image-3.2.0-17-generic package on Ubuntu)

The startup problem is also there. How can we help more?
Comment 58 Olivier Cloirec 2012-04-19 04:23:24 UTC
Created attachment 60306 [details]
/sys/kernel/debug/dri/0/i915_gem_interrupt output on drm-intel-fixes@c291be9dba370ba696a0d482249a212cf5c15f45
Comment 59 Olivier Cloirec 2012-04-24 00:36:08 UTC
The following register dumps might help:
1. after a lightdm restart, no more backlight
2. subsequent reboot, no backlight after starting
3. on (2) session, after lightdm restart, backlight is back

I made a few reg dump for each state but they are all the same for a same state.
Comment 60 Olivier Cloirec 2012-04-24 00:37:57 UTC
Created attachment 60509 [details]
1. after a lightdm restart, no more backlight
Comment 61 Olivier Cloirec 2012-04-24 00:38:20 UTC
Created attachment 60510 [details]
2. subsequent reboot, no backlight after starting
Comment 62 Olivier Cloirec 2012-04-24 00:38:50 UTC
Created attachment 60511 [details]
3. on (2) session, after lightdm restart, backlight is back
Comment 63 Gustavo Spadari 2012-05-11 13:01:55 UTC
Hi. I've a Dell Inspiron 2310 All In One and it presents the same issues as described in this bug.
Here is a bug to the kernel site:
https://bugzilla.kernel.org/show_bug.cgi?id=43181
and to Ubuntu Launchpad:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/912397

I'm running
Linux ubudell 3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

And Edgers PPA enabled.

Hope it helps.
Comment 64 Gustavo Spadari 2012-05-11 19:12:18 UTC
It's working if I turn on the PC (I mean no reboot) and start with only "drm_kms_help.poll=0".
If I reboot, the screen starts to turn on and off.
Comment 65 Gustavo Spadari 2012-05-11 19:14:27 UTC
Sorry: the param is "drm_kms_helper.poll=0"
Comment 66 Daniel Vetter 2012-05-12 07:53:23 UTC
Hm, I'm confused: Is this bug here and the one on the kernel bugzilla about the same machine and problem?

https://bugzilla.kernel.org/process_bug.cgi
Comment 67 Daniel Vetter 2012-05-12 07:56:56 UTC
Ok, Gustavo is not the original reporter here. Gustavo, please do not cross-post on multiple bugzilla's. There's a really big chance that your bug is a different one than this one. Thanks.
Comment 68 Jesse Barnes 2012-05-29 10:39:55 UTC
I just got a vostro 360 to check this one out.  I can confirm that the 3.3 kernel included in the Ubuntu 12.04 install doesn't work well; the panel flickers at boot and never syncs to an image (though occasionally you can see a flash of the desktop or boot loader).  Trying the latest kernel now, if it still happens there I should be able to debug and fix things.
Comment 69 Jesse Barnes 2012-05-30 12:53:04 UTC
Created attachment 62301 [details] [review]
keep HDMID off the eDP port

There are a few issues here, but this seems to be the big one.  When HDMID is enumerated on the eDP port, any call to its ->detect hook will use the GMBUS pins shared by DP, and potentially cause panel trouble.
Comment 70 Olivier Cloirec 2012-05-31 08:15:23 UTC
Many thanks Jesse,

Will take a look as soon as possible when get a hand on another Vostro.
Comment 71 Jesse Barnes 2012-06-05 14:38:01 UTC
Created attachment 62598 [details] [review]
cache the EDID on eDP panels

This one fixes the flicker that occurs at detect time.  With both patches (the HDMID one and this one) the Vostro is behaving like it should.
Comment 72 Jesse Barnes 2012-06-14 10:22:37 UTC
commit 46c325a871d50096b312e0f7f48182f2152ee836
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date:   Mon Jun 11 14:39:56 2012 -0400

    drm/i915: don't enumerate HDMID if an eDP panel is already active on the por

there's another patch for #46856 which also affects my Vostro, that one should be going in shortly.
Comment 73 Florian Mickler 2012-07-01 03:35:55 UTC
A patch referencing this bug report has been merged in Linux v3.5-rc4:

commit b708a1d5ea7880b399dbd45cacafff6ae8d73171
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date:   Mon Jun 11 14:39:56 2012 -0400

    drm/i915: don't enumerate HDMID if an eDP panel is already active on the port
Comment 74 Stanislaw Czech 2012-07-10 17:00:49 UTC
I still have issues with kernel v3.5rc6 on vostro 360. It looks like everything is ok, when the computer is being powered on and is starting (then it goes to KDE ok). I don't have to use drm_kms_poll.helper=0 parameter in the grub. But as soon as I restart/reboot, the screen goes black. It seems that for some reason the screen behaves differently when it's powered on, and when it's just rebooted..

Tested on 5 different vostro 360 computers with Fedora 16/17 and kernel 3.5 rc5/rc6

Please confirm the same behavior.
Comment 75 Chris Wilson 2012-11-14 10:45:01 UTC
In 3.7, Daniel landed the modeset-rework, which fixes a number of eDP related issues; please test.
Comment 76 Jesse Barnes 2012-11-14 17:16:07 UTC
Ping, any update on testing the latest bits?
Comment 77 kowalski marcin 2012-11-16 10:19:01 UTC
(In reply to comment #74)
> I still have issues with kernel v3.5rc6 on vostro 360. It looks like
> everything is ok, when the computer is being powered on and is starting
> (then it goes to KDE ok). I don't have to use drm_kms_poll.helper=0
> parameter in the grub. But as soon as I restart/reboot, the screen goes
> black. It seems that for some reason the screen behaves differently when
> it's powered on, and when it's just rebooted..
> 
> Tested on 5 different vostro 360 computers with Fedora 16/17 and kernel 3.5
> rc5/rc6
> 
> Please confirm the same behavior.

I've just got another 360 unit and i have no problems whatsoever when using vanilla 3.6.6 kernel build on opensuse 12.2, with no i915-related boot parameters.

i also tried systemrescuecd 3.1.1 livecd with "alternative kernel" boot option which boots into 3.6.4 instead of default 3.2.x kernel that this media offers.

That unit, as previous ones i tried, has i3-2120 cpu. The video chip is identified as "Dell Device 0512"; with lspci -n showing it as 8086:0102 (rev 09) .

Can you try using systemrescuecd media and boot into alternative kernel menu option?
Comment 78 Chris Wilson 2012-12-07 19:37:37 UTC
*fingers closed that this was indeed resolved in 3.6

Please do take this opportunity to test and reopen the bug if we still fail to light up the 360 correctly.


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.