Bug 104615 - [KBL] Using custom edid via drm_kms_helper.edid_firmare results in black screen
Summary: [KBL] Using custom edid via drm_kms_helper.edid_firmare results in black screen
Status: CLOSED WONTFIX
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
Hardware: Other All
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-13 13:30 UTC by Wolfgang Haupt
Modified: 2018-03-08 18:28 UTC (History)
2 users (show)

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


Attachments
dmesg from boot of the system (195.67 KB, text/x-log)
2018-01-13 13:30 UTC, Wolfgang Haupt
no flags Details
xrandr --verbose output (2.66 KB, text/x-log)
2018-01-13 13:31 UTC, Wolfgang Haupt
no flags Details
EDID (256 bytes, application/octet-stream)
2018-01-13 17:00 UTC, Wolfgang Haupt
no flags Details

Description Wolfgang Haupt 2018-01-13 13:30:11 UTC
Created attachment 136707 [details]
dmesg from boot of the system

I use Intel NUCs as my home theatre solution.
In order to circumvent having to turn on devices in the right order (TV, AVR, NUC, etc.).
I dumped my TV's edid and overwrote it with drm_kms_helper.
Unfortunately it does not work with current drm-tip even if the TV (or any monitor) is attached I only have a black screen.
Comment 1 Wolfgang Haupt 2018-01-13 13:31:31 UTC
Created attachment 136708 [details]
xrandr --verbose output
Comment 2 Wolfgang Haupt 2018-01-13 17:00:40 UTC
Created attachment 136712 [details]
EDID
Comment 3 Wolfgang Haupt 2018-01-13 17:01:31 UTC
It works fine on my Skylake NUC and fritsch confirmed it works on his Apollo Lake.
Comment 4 Elizabeth 2018-01-16 15:53:54 UTC
[    1.216977] [drm] Got external EDID base block and 1 extension from "edid/edid.bin" for connector "DP-1"
[    1.216982] [drm:drm_detect_monitor_audio] Monitor has basic audio support
[    1.216985] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:59:DP-1] status updated from unknown to connected
[    1.216991] [drm:drm_add_display_info] non_desktop set to 0
[    1.216994] [drm:drm_add_display_info] HDMI: DVI dual 0, max TMDS clock 0 kHz
[    1.216998] [drm:drm_add_edid_modes] ELD monitor FS2434
[    1.217002] [drm:drm_add_edid_modes] HDMI: latency present 0 0, video latency 0 0, audio latency 0 0
[    1.217004] [drm:drm_add_edid_modes] ELD size 32, SAD count 1
[    1.217006] [drm:drm_add_display_info] non_desktop set to 0
[    1.217009] [drm:drm_add_display_info] HDMI: DVI dual 0, max TMDS clock 0 kHz
[    1.217104] ------------[ cut here ]------------
[    1.217105] WARN_ON(len <= 0)
[    1.217123] WARNING: CPU: 2 PID: 5 at drivers/gpu/drm/i915/intel_dp.c:1563 intel_dp_max_link_rate+0x5e/0x80
[    1.217124] Modules linked in:
[    1.217126] CPU: 2 PID: 5 Comm: kworker/u8:0 Not tainted 4.15.0-rc7 #1
[    1.217127] Hardware name: YachtCloud Omniyon/NUC7i5BNB, BIOS BNKBL357.86A.0045.2017.0417.1728 04/17/2017
[    1.217130] Workqueue: events_unbound async_run_entry_fn
[    1.217132] RIP: 0010:intel_dp_max_link_rate+0x5e/0x80
[    1.217133] RSP: 0000:ffff9957f98b3c98 EFLAGS: 00010292
[    1.217135] RAX: 0000000000000011 RBX: ffff9957f9b80000 RCX: ffffffffa30453d8
[    1.217136] RDX: 0000000000000001 RSI: 0000000000000086 RDI: 0000000000000287
[    1.217137] RBP: 00000000000a4cb8 R08: 000000000000030e R09: ffffffffa3ae8b60
[    1.217137] R10: ffffeb8e46e26a40 R11: 0000000000000001 R12: ffff9957f99f4200
[    1.217138] R13: 0000000000024414 R14: 0000000000000000 R15: ffff9957f9b80108
[    1.217140] FS:  0000000000000000(0000) GS:ffff9957fe900000(0000) knlGS:0000000000000000
[    1.217141] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    1.217142] CR2: 0000000000000000 CR3: 000000001000a001 CR4: 00000000001606a0
[    1.217143] Call Trace:
[    1.217147]  intel_dp_mode_valid+0xa7/0x160
[    1.217150]  drm_helper_probe_single_connector_modes+0x3d3/0x6a0
[    1.217152]  drm_setup_crtcs+0x137/0xae0
[    1.217155]  ? dequeue_entity+0x45d/0x7c0
[    1.217157]  __drm_fb_helper_initial_config_and_unlock+0x2d/0x3f0
[    1.217159]  ? _cond_resched+0x15/0x40
[    1.217160]  ? mutex_lock+0xe/0x30
[    1.217162]  intel_fbdev_initial_config+0x14/0x30
[    1.217164]  async_run_entry_fn+0x31/0xe0
[    1.217166]  process_one_work+0x1ec/0x3e0
[    1.217167]  worker_thread+0x2b/0x3f0
[    1.217169]  ? process_one_work+0x3e0/0x3e0
[    1.217170]  kthread+0x111/0x130
[    1.217173]  ? _kthread_create_worker_on_cpu+0x40/0x40
[    1.217175]  ret_from_fork+0x24/0x30
[    1.217176] Code: 8a fc eb 10 8b 32 89 c1 48 83 ea 04 83 e8 01 41 39 f0 7d 1f 85 c0 75 ec 48 c7 c6 c3 bf d5 a2 48 c7 c7 b7 58 cc a2 e8 62 c1 79 ff <0f> ff b8 d0 78 02 00 c3 83 e9 01 48 63 c9 8b 84 8f 8c 00 00 00 
[    1.217203] ---[ end trace ff3fd02f6f847db7 ]---
Comment 5 Wolfgang Haupt 2018-01-18 20:51:26 UTC
I've also tested kernel 4.13.6 and 4.14.10 and it fails as well - same backtrace.
Comment 6 Jani Nikula 2018-01-19 15:06:13 UTC
Try without video=DP-1:D
Comment 7 Jani Nikula 2018-01-19 15:07:21 UTC
Unrelated side note, [    0.000000] [drm] drm_kms_firmware.edid_firmware is deprecated, please use drm.edid_firmware intead.
Comment 8 Wolfgang Haupt 2018-01-19 16:27:15 UTC
drm.edid_firmware without video=DP-1:D seems to work fine with drm-tip kernel.
drm_kms_firmware.edid_firmware without video=DP-1:D still fails on 4.13.6 in case you are interested.
Otherwise feel free to close this report or contact me if you need further input.
Thanks for your help.
Comment 9 Jani Nikula 2018-02-15 14:57:19 UTC
(In reply to Wolfgang Haupt from comment #8)
> drm.edid_firmware without video=DP-1:D seems to work fine with drm-tip
> kernel.
> drm_kms_firmware.edid_firmware without video=DP-1:D still fails on 4.13.6 in
> case you are interested.
> Otherwise feel free to close this report or contact me if you need further
> input.
> Thanks for your help.

Closing, thanks for the report.


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.