Bug 103220 - CFL not booting to up to desktop because it does not found eDP
Summary: CFL not booting to up to desktop because it does not found eDP
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: All Linux (All)
: highest critical
Assignee: Mika Kahola
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-11 14:07 UTC by valtteri.rantala
Modified: 2017-11-01 14:32 UTC (History)
3 users (show)

See Also:
i915 platform: CFL
i915 features: display/eDP


Attachments
verbose dmesg from LAB-CFL-S (175.58 KB, text/plain)
2017-10-12 13:45 UTC, David Weinehall
no flags Details

Description valtteri.rantala 2017-10-11 14:07:37 UTC
CFL is trying to use eDP as display even it is not connected and then looses it. It seems to be a race condition that when eDP is lost and external display is not yet found lightdm tries to start. Therefore it fails to boot up. Delayed lightdm start works because external display is recognized when lightdm is started after 10 seconds
Comment 1 valtteri.rantala 2017-10-11 14:14:48 UTC
With only external display attached X fails to start
With eDP connected it can start X without issue
Comment 2 David Weinehall 2017-10-12 13:45:02 UTC
Created attachment 134813 [details]
verbose dmesg from LAB-CFL-S
Comment 3 Jani Nikula 2017-10-26 09:54:18 UTC
The VBT says we have eDP, so we try it. Turns out we can't talk to it, so we don't register it after all. Doesn't even seem to take all that long to figure this out. I don't see why eDP should be an issue here.
Comment 4 Mika Kahola 2017-10-26 10:02:53 UTC
There are two issues in this bug. One is that the VBT (BIOS CNLSFWX1.R00.X095.A04.17072407838) is unable to detect lspcon (Megachip MCDP2800) and therefore it is not getting initialized. The effect of this is that DP doesn't light up. If you force lspcon in kernel the DP lights up.

The second problem is the X. On a bootup X falls back to SW rendering.
Comment 5 Mika Kahola 2017-10-30 10:32:58 UTC
Switching to BIOS

CNLSFWR1.R00.X104.B11.1710091318

has lspcon supported so the i915 driver can initialize and use Megachip MCDP2800 DP-to-HDMI converter properly.

Second problem with was fixed by updating mesa.
Comment 6 Mika Kahola 2017-10-31 11:23:36 UTC
With BIOS

CNLSFWR1.R00.X104.B11.1710091318

perf team CFL now boots with drm_intel kernel from HDMI port with HW accelerated graphics.
Comment 7 Jani Saarinen 2017-10-31 14:35:05 UTC
So this can be resolved?
Comment 8 Mika Kahola 2017-10-31 14:59:39 UTC
CFL on CI system works perfectly with upgraded BIOS. Perf team CFL does not show boot menu with HDMI connection only. It does boot to drm_intel desktop. 

My vote goes for resolving this bug.
Comment 9 valtteri.rantala 2017-11-01 07:36:30 UTC
With delay workaround it works and it seems to work with new HW with correct BIOS. marking as resolved.


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.