Bug 109829 - No image via KVM switch. USB-C->dual DisplayPort->KVM
Summary: No image via KVM switch. USB-C->dual DisplayPort->KVM
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: Triaged, ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-04 17:45 UTC by Stuart
Modified: 2019-12-02 16:40 UTC (History)
4 users (show)

See Also:
i915 platform: KBL
i915 features: display/Other


Attachments
dmesg (65.06 KB, text/plain)
2019-03-04 17:45 UTC, Stuart
no flags Details
updated_dmesg (58.08 KB, text/plain)
2019-03-16 18:18 UTC, Stuart
no flags Details
drm-tip install messages (2.15 KB, text/plain)
2019-03-16 18:19 UTC, Stuart
no flags Details
dmesg with boot parameters (871.63 KB, text/plain)
2019-03-19 01:20 UTC, Stuart
no flags Details
cat /sys/kernel/debug/dri/0/i915_display_info (3.94 KB, text/plain)
2019-10-26 17:55 UTC, Stuart
no flags Details

Description Stuart 2019-03-04 17:45:16 UTC
Created attachment 143523 [details]
dmesg

Hi all,

I have a NUC7i7BNH with the latest BIOS (0062) running Ubuntu 18.04 (uname -r = 4.18.0-15-generic). I have the NUC connected via USB-C to a dual DisplayPort adapter, to an Avocent SV340D KVM. Also tried kernel v5.0-rc7.

If I have the KVM on the switch for the NUC, everything works great. If I switch the KVM to another channel, and then switch back to the NUC, I only get black screens. The only solution is to hard reboot the NUC.

This relates to a bug I raised on https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1816269.

Specifically [  135.089830] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe A FIFO underrun followed by a lot of thunderblot hotplug messages.
Comment 1 Lakshmi 2019-03-07 12:28:47 UTC
Ville, any comments here?
Comment 2 Stuart 2019-03-14 23:12:14 UTC
Any additional info I can provide here to help?
Comment 3 Lakshmi 2019-03-15 07:27:51 UTC
Thanks for asking. Can you please verify the issue with latest drmtip?
(https://cgit.freedesktop.org/drm-tip)

This is to ensure that this issue still persists with drmtip. This will be useful during investigation.
Comment 4 Kai-Heng Feng 2019-03-15 08:07:15 UTC
FWIW you can find prebuilt binary [1] for Ubuntu.

[1] https://kernel.ubuntu.com/~kernel-ppa/mainline/drm-tip/
Comment 5 Stuart 2019-03-16 18:18:28 UTC
Created attachment 143696 [details]
updated_dmesg
Comment 6 Stuart 2019-03-16 18:18:37 UTC
@Lakshmi / @Kai-Heng

Tried cod/tip/drm-tip/2019-03-16 mainline build but still same issue.

When I switch over to another KVM input, and switch back to the NUC, black screen and can't do anything. The only way to recover is hard reboot of the NUC.

new dmesg attached.
Comment 7 Stuart 2019-03-16 18:19:29 UTC
Created attachment 143697 [details]
drm-tip install messages

drm-tip install messages
Comment 8 Lakshmi 2019-03-18 08:48:53 UTC
> new dmesg attached.

Can you please set kernel parameters drm.debug=0x1e log_buf_len=4M and attach the log from boot.
Comment 9 Stuart 2019-03-19 01:20:42 UTC
Created attachment 143731 [details]
dmesg with boot parameters

Thanks for the help. Please see attached file for dmesg with boot params.

Let me know what else I can provide.
Comment 10 Stuart 2019-06-17 13:24:12 UTC
HI @Lakshmi,

This still isn't working for me - I even tried another KVM - is there anything further I can provide to help debug?
Comment 11 Swati Sharma 2019-07-16 13:29:24 UTC
Hi @stuart, can you please provide display_info as well?
cat /sys/kernel/debug/dri/0/i915_display_info
Will try reproducing the issue and get back to you.
Comment 12 Lakshmi 2019-08-27 10:56:07 UTC
(In reply to Stuart from comment #10)
> HI @Lakshmi,
> 
> This still isn't working for me - I even tried another KVM - is there
> anything further I can provide to help debug?

(In reply to Swati Sharma from comment #11)
> Hi @stuart, can you please provide display_info as well?
> cat /sys/kernel/debug/dri/0/i915_display_info
> Will try reproducing the issue and get back to you.

No feedback from more than a month. Dropping the priority of the issue to Medium.
Stuart, can you please provide requested details?
Comment 13 Stuart 2019-10-26 17:55:22 UTC
Created attachment 145825 [details]
cat /sys/kernel/debug/dri/0/i915_display_info

Sorry for delay - missed the previous messages.

Please find output of cat /sys/kernel/debug/dri/0/i915_display_info on a fresh install of Ubuntu 19.10 with same issue. Only one monitor is showing.
Comment 14 Stuart 2019-10-26 17:59:50 UTC
Also to re-confirm as of today.

This is on an Intel NUC7i7BNH with BIOS 0080 running Ubuntu 19.10 (uname -r
5.3.0-19-generic).

It is a LINKUP 2019 Thunderbolt 3 to Dual DisplayPort 1.2 into an Aten CS1944DP KVM switch.
Comment 15 Lakshmi 2019-10-29 14:51:55 UTC
(In reply to Swati Sharma from comment #11)
> Hi @stuart, can you please provide display_info as well?
> cat /sys/kernel/debug/dri/0/i915_display_info
> Will try reproducing the issue and get back to you.

(In reply to Stuart from comment #13)
> Created attachment 145825 [details]
> cat /sys/kernel/debug/dri/0/i915_display_info
> 
> Sorry for delay - missed the previous messages.
> 
> Please find output of cat /sys/kernel/debug/dri/0/i915_display_info on a
> fresh install of Ubuntu 19.10 with same issue. Only one monitor is showing.

CC'ing Swati.
Comment 16 Swati Sharma 2019-11-09 23:58:23 UTC
(In reply to Stuart from comment #14)
> Also to re-confirm as of today.
> 
> This is on an Intel NUC7i7BNH with BIOS 0080 running Ubuntu 19.10 (uname -r
> 5.3.0-19-generic).
> 
> It is a LINKUP 2019 Thunderbolt 3 to Dual DisplayPort 1.2 into an Aten
> CS1944DP KVM switch.

Hi Stuart,
Can you please check whether its the same issue as in https://bugs.freedesktop.org/show_bug.cgi?id=112212 ?
Comment 17 Stuart 2019-11-10 01:34:40 UTC
@Swati / @Lakshmi - I don't believe so.
Comment 18 Stuart 2019-11-15 04:20:59 UTC
Anything else I can provide @Swati @Lakshmi?
Comment 19 Jani Saarinen 2019-11-15 06:37:45 UTC
Hi, Just this week there some was fix made. I actually have same NUC7i7BNH and with that both Thunderbolt dock and from that to DP-MST monitor => that to normar just worked now. Also now I have Lenovo MST HUB connected to monitor and that also works now. Can you try now with latest drm-tip and exactly fix that Laksmi informed: https://bugs.freedesktop.org/show_bug.cgi?id=112212 however that was also regression. 

But can you still try with latest-drm-tip as that now works for me too. 
Can you also attach /sys/kernel/debug/dri/0/i915_dp_mst_info
Comment 20 Stuart 2019-11-15 14:18:09 UTC
@Jani

Is this done by installing the latest mainline kernel (v5.4-rc7) and then applying the patch?

How do I apply the patch?
Comment 21 Jani Saarinen 2019-11-15 15:16:29 UTC
It is merged to drm-tip, can you use that? 
https://cgit.freedesktop.org/drm-tip
Comment 22 Stuart 2019-11-15 19:16:10 UTC
@Jani, I did the following:

I cloned drm-tip from git://anongit.freedesktop.org/drm-tip and then ran `make defconfig`, `make`, `sudo make modules_install`, `sudo make install` and then rebooted.

My LUKS password wouldn't work at all for an unknown reason and no WiFi device. I reinstalled Ubuntu 19.10 with no LUKS and reran the above drm-tip install. Still no WiFi and still no dual DP monitors.

See below.

stuart@SSH-NUC:~/drm-tip$ sudo cat /sys/kernel/debug/dri/0/i915_dmc_info
fw loaded: no
path: i915/kbl_dmc_ver1_04.bin
program base: 0xfffffdfe
ssp base: 0x00000000
htp: 0x00000000


stuart@SSH-NUC:~/drm-tip$ dmesg | grep i915
[    0.415019] i915 0000:00:02.0: Found 64MB of eDRAM
[    0.415071] i915 0000:00:02.0: vgaarb: deactivate vga console
[    0.419134] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[    0.419167] i915 0000:00:02.0: Direct firmware load for i915/kbl_dmc_ver1_04.bin failed with error -2
[    0.419168] i915 0000:00:02.0: Failed to load DMC firmware i915/kbl_dmc_ver1_04.bin. Disabling runtime power management.
[    0.419169] i915 0000:00:02.0: DMC firmware homepage: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915
[    0.727855] [drm] Initialized i915 1.6.0 20191101 for 0000:00:02.0 on minor 0
[    0.918841] fbcon: i915drmfb (fb0) is primary device
[    0.946780] i915 0000:00:02.0: fb0: i915drmfb frame buffer device



stuart@SSH-NUC:~/drm-tip$ dmesg | grep failed
[    0.419167] i915 0000:00:02.0: Direct firmware load for i915/kbl_dmc_ver1_04.bin failed with error -2
[    0.688530] [drm] failed to retrieve link info, disabling eDP
[    1.017595] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.017596] cfg80211: failed to load regulatory.db


In settings my thunderbolt -> dual DP port adapter says "No Thunderbolt support" "Thunderbolt security level could not be determined"

Let me know what we need to try next.
Comment 23 Stuart 2019-11-15 19:16:53 UTC
Sorry, should have clarified. One of the two monitors works via the Thunderbolt -> dual DP adapter.
Comment 24 Lakshmi 2019-11-18 12:17:25 UTC
I reinstalled Ubuntu 19.10 with no LUKS and reran the above drm-tip
> install. Still no WiFi and still no dual DP monitors.
> 
Can you please attch the full dmesg here with kernel parameters drm.debug=0x1e log_buf_len=4M?
Comment 25 Jani Saarinen 2019-11-18 12:24:32 UTC
Not necessarily related to this issue at all but have you checked you have fw (dmc) eg in /lib/firmware/i915 ?
Comment 26 Jani Saarinen 2019-11-18 12:25:21 UTC
Also wifi not working is separate. This propably just kernel config issue and not related to drm-tip as such.
Comment 27 Jani Saarinen 2019-11-18 12:27:50 UTC
As you see from our CI KBL NUC (not same but anyway)
http://gfx-ci.fi.intel.com/tree/drm-tip/IGT_5292/fi-kbl-7500u/boot0.txt
<7>[    4.905598] [drm:intel_csr_ucode_init [i915]] Loading i915/kbl_dmc_ver1_04.bin
<6>[    4.907977] [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
<7>[    4.908643] [drm:intel_fbc_init [i915]] Sanitized enable_fbc value: 1
Comment 28 Martin Peres 2019-12-02 16:40:51 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/intel/issues/702.


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.