Bug 89271 - [HSW] i915 doesn't enable DP-2 on MacBook 11,1 (Retina, Intel Only, Late 2013 / Mid 2014)
Summary: [HSW] i915 doesn't enable DP-2 on MacBook 11,1 (Retina, Intel Only, Late 2013...
Status: CLOSED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-21 20:44 UTC by Regular Guy
Modified: 2018-04-22 15:29 UTC (History)
9 users (show)

See Also:
i915 platform: BDW, HSW
i915 features: display/DP MST


Attachments
dmesg without drm.debug=14 (150.46 KB, text/plain)
2015-02-21 20:44 UTC, Regular Guy
no flags Details
dmesg with drm.debug=14 (216.91 KB, text/plain)
2015-02-21 20:46 UTC, Regular Guy
no flags Details
xrander --verbose output. (8.45 KB, text/plain)
2015-02-21 20:46 UTC, Regular Guy
no flags Details
Journalctl when unplugging and hotplugging the apple monitor (51.20 KB, text/plain)
2017-08-14 22:57 UTC, Arun S A G
no flags Details
Logs when running drm-tip (21.14 KB, text/plain)
2017-08-17 07:44 UTC, Arun S A G
no flags Details
dmesg without drm.debug=14 and before/after hotplug thunderbolt dumps (135.09 KB, text/plain)
2017-09-29 04:40 UTC, Chow Loong Jin
no flags Details
dmesg from drm-tip with drm.debug=14 (macbookpro12,1) (1.24 MB, text/plain)
2017-09-29 14:26 UTC, Chow Loong Jin
no flags Details

Description Regular Guy 2015-02-21 20:44:51 UTC
Created attachment 113728 [details]
dmesg without drm.debug=14

HW: MacBookPro11,1, Retina display
2 x 27" Thunderbolt displays.

Under MacOS X, all 3 displays work.

Under Ubuntu 14.10, kernel 3.19, only eDP1 + one other show as active.
Comment 1 Regular Guy 2015-02-21 20:46:10 UTC
Created attachment 113729 [details]
dmesg with drm.debug=14
Comment 2 Regular Guy 2015-02-21 20:46:42 UTC
Created attachment 113730 [details]
xrander --verbose output.
Comment 3 Regular Guy 2015-02-22 16:22:59 UTC
To add some colour to this report:

When the MacOS boots, both the external screens remain blank, the logo and the progress bar only appear on the laptop's internal display. The external screens come alive later. The typical use case is to run the laptop with its lid closed, and just use the 2 x 27" 2560x1440 monitors - there is a lack of desk space which forces this particular setup more than anything else. It does help with the resolution, since the Retina display has a higher resolution than the 27" monitors.


This is similar to what I see happening when Linux loads - initially, I see the kernel messages on the laptop's internal screen, then (I suspect) the i915 driver loads, takes over the fbcon, and I get a mirror of what is on the Mac's internal display on one (DP-1) of the two 27" monitors. 

When Xorg starts, I get a spanned screen between the eDP-1 and DP-1. 

I have tried to be clever-ish - 'xrandr --output eDP-1 --off', then 'xrandr --output DP-2 --auto'.

Am quite willing to play with patches and such.
Comment 4 Jani Nikula 2015-02-23 12:07:35 UTC
How do you have the monitors connected?
Comment 5 Regular Guy 2015-02-23 17:01:44 UTC
@Jani: Via the Thunderbolt ports, each monitor in its own Thunderbolt port.

I have tried to daisy-chain, too, with the same effect, just in case the Thunderbolt ports on the MacBook were, somehow, competing for resources, though that was just a wild-ass guess on my part, based, rather flimsily, on lines a-la "pci 0000:00:1c.4: can't claim BAR 15 [mem 0xbcc00000-0xc8dfffff 64bit pref]: address conflict with PCI Bus 0000:05 [mem 0xb0b00000-0xbcffffff]" in dmesg's output
Comment 6 aspicer 2015-03-12 22:40:54 UTC
For some more background:

The monitors don't work at all with hotplugging. Devices plugged into the back work with hotplugging, but the monitors aren't detected.

DP2 works if it's the only port plugged in at boot, otherwise DP1 works and DP2 shows up as disconnected.

When two thunderbolt displays are connected, the USB devices on the back on either display work, even though DP2 doesn't show up as connected.
Comment 7 Jani Nikula 2016-01-18 13:09:56 UTC
Please try kernel v4.4.
Comment 8 Patrick Bogen 2016-01-19 23:27:45 UTC
Howdy.

Not the original reporter, but I have a very similar setup (MacBook 11,1 Retina Intel Only, albeit late 2015), and I'm experiencing the same issue with kernels 4.3 and 4.4-rc8. (I'm compiling 4.4 now, though; maybe it was fixed between rc8 and 4.4.)

When monitors are connected while booting, only the one identified as DP1 activates. This is true in both chained and parallel (i.e., each monitor on its own thunderbolt port) configurations.

Neither monitor is detected/activated upon hotplug, regardless of the connectedness of the monitors on boot.

- Patrick
Comment 9 Patrick Bogen 2016-01-20 17:38:13 UTC
I've confirmed that on 4.4 proper, thunderbolt displays are not correctly enabled when hotplugged.
Comment 10 Arun S A G 2016-05-24 03:27:05 UTC
Same here. Tried it on 4.6.0 vanilla kernel on a fedora machine, i am having the same issue. Raised a bug here https://bugzilla.kernel.org/show_bug.cgi?id=118591, i was asked to report it here. 

Bump
Comment 11 Arun S A G 2016-06-02 20:45:07 UTC
Tested it on 4.6.1 and 4.7.0-rc1, still seeing this issue. This bug is annoying every time i disconnect my laptop go into a meeting and come back. I need to reboot it for the apple monitor to work. This bug has been sitting here for more than year. I would be more than happy to show you my hardware if you live in the bay area. I am willing to test any patches too.
Comment 12 Jari Tahvanainen 2017-05-10 15:55:44 UTC
Development is targeting to work on thunderbolt related issues on 4.13.
Comment 13 Elizabeth 2017-08-01 22:52:12 UTC
(In reply to Jari Tahvanainen from comment #12)
> Development is targeting to work on thunderbolt related issues on 4.13.
Good afternoon Regular Guy, Patrick, Arun,
4.13 is available now, any update with mainline or/and latest drm-tip on this case?
Thank you.

https://cgit.freedesktop.org/drm-tip
https://www.kernel.org/
Comment 14 Regular Guy 2017-08-14 03:44:34 UTC
(In reply to Elizabeth from comment #13)
> (In reply to Jari Tahvanainen from comment #12)
> > Development is targeting to work on thunderbolt related issues on 4.13.
> Good afternoon Regular Guy, Patrick, Arun,
> 4.13 is available now, any update with mainline or/and latest drm-tip on
> this case?
> Thank you.
> 
> https://cgit.freedesktop.org/drm-tip
> https://www.kernel.org/

Sadly, I no longer have in my possession the MacBook (company took it back), making it difficult to check. Sorry :(
Comment 15 Elizabeth 2017-08-14 21:38:51 UTC
(In reply to Regular Guy from comment #14)
> Sadly, I no longer have in my possession the MacBook (company took it back),
> making it difficult to check. Sorry :(
Thanks for the update Regular Guy,
Then I will wait for Patrick or Arun to share status.
Comment 16 Arun S A G 2017-08-14 22:57:38 UTC
Created attachment 133515 [details]
Journalctl when unplugging and hotplugging the apple monitor
Comment 17 Arun S A G 2017-08-14 22:58:23 UTC
Still doesn't work, attached the logs. Tested it on 4.13.0-0.rc4.git4.1.vanilla.knurd.1.fc26.x86_64
Comment 18 Arun S A G 2017-08-14 23:00:20 UTC
I mean, i do not see the monitor detected after hotplug. It stays turned off
Comment 19 Arun S A G 2017-08-14 23:01:44 UTC
Apologies for the flurry of comments, i just realized i have not tested the latest drm-tip. Will test it and post the comments. Thanks.
Comment 20 Arun S A G 2017-08-17 07:44:50 UTC
Created attachment 133567 [details]
Logs when running drm-tip
Comment 21 Chow Loong Jin 2017-09-28 06:11:38 UTC
The same bug happens in Macbookpro12,1 (Retina 13" early 2015) too.
Comment 22 Jani Nikula 2017-09-28 09:16:53 UTC
Please at least run current drm-tip, add drm.debug=14 module parameter, and attach logs all the way from boot to the problem.

And I'm not sure what the exact problem is anymore... you all have eDP + one DP working fine, but another DP won't show up? Or what?
Comment 23 Chow Loong Jin 2017-09-29 04:40:39 UTC
Created attachment 134561 [details]
dmesg without drm.debug=14 and before/after hotplug thunderbolt dumps

I have one eDP-1 and one DP-1. When booted with the monitor plugged in, it works and both /sys/class/drm/card0-eDP-1/enabled and /sys/class/drm/card0-DP-1/enabled show "enabled".

After unplugging it and plugging it back in, only /sys/class/drm/card0-eDP-1/enabled shows up, and it's impossible to bring back the external display without rebooting.

While examining the thunderbolt dump in dmesg from a booting up event and after replugging it, I noticed that two DP/HDMI ports are missing in the latter dump:

[   28.716581] thunderbolt 0000:07:00.0:  Port 11: 8086:156d (Revision: 0, TB Version: 1, Type: DP/HDMI (0xe0101))
[   28.716582] thunderbolt 0000:07:00.0:   Max hop id (in/out): 9/9
[   28.716583] thunderbolt 0000:07:00.0:   Max counters: 2
[   28.716584] thunderbolt 0000:07:00.0:   NFC Credits: 0xf0000b
[   28.716602] thunderbolt 0000:07:00.0:  Port 12: 8086:156d (Revision: 0, TB Version: 1, Type: DP/HDMI (0xe0101))
[   28.716603] thunderbolt 0000:07:00.0:   Max hop id (in/out): 9/9
[   28.716603] thunderbolt 0000:07:00.0:   Max counters: 2
[   28.716604] thunderbolt 0000:07:00.0:   NFC Credits: 0xf00000
Comment 24 Chow Loong Jin 2017-09-29 04:41:46 UTC
As for drm-tip, I'll need to recompile my kernel for that so it'll take a while.
Comment 25 Chow Loong Jin 2017-09-29 14:26:55 UTC
Created attachment 134568 [details]
dmesg from drm-tip with drm.debug=14 (macbookpro12,1)

This dmesg dump was taken from a session where the machine was booted up with the display plugged in, then unplugged at [366.531437], and plugged back in again at [405.015372]. The display doesn't return, but the USB devices and ethernet interface does.
Comment 26 Chow Loong Jin 2017-09-30 09:06:45 UTC
Marking Broadwell as affected as well, and setting it back to REOPENED since I've provided the requested information. Please let me know if you need me to poke around further.
Comment 27 Jani Saarinen 2018-03-29 07:11:17 UTC
First of all. Sorry about spam.
This is mass update for our bugs. 

Sorry if you feel this annoying but with this trying to understand if bug still valid or not.
If bug investigation still in progress, please ignore this and I apologize!

If you think this is not anymore valid, please comment to the bug that can be closed.
If you haven't tested with our latest pre-upstream tree(drm-tip), can you do that also to see if issue is valid there still and if you cannot see issue there, please comment to the bug.
Comment 28 Jani Saarinen 2018-04-22 15:29:41 UTC
Closing old bug, please re-open if still occurs.


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.