Bug 105961

Summary: i915, UHD 620, screen goes blank after boot
Product: DRI Reporter: Pavel Nakonechnyi <zorg1331>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: CLOSED DUPLICATE QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs, sewkokot, zorg1331
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
drm.debug=14
none
i915_vbt none

Description Pavel Nakonechnyi 2018-04-09 21:00:56 UTC
Created attachment 138709 [details]
drm.debug=14

Hardware: Dell Latitude 5590
Kernel: vanilla, tag v4.16 (the same for v4.14.32)

When kernel is booted without 'nomodeset' option screen goes blank once i915 kernel module is loaded. At this moment system becomes inaccessible over network, but SysRq sequences work. The following trace extracted:

------------[ cut here ]------------
WARN_ON(!intel_gmbus_is_valid_pin(dev_priv, pin))
WARNING: CPU: 1 PID: 113 at drivers/gpu/drm/i915/intel_i2c.c:784 intel_gmbus_get_adapter+0x37/0x40 [i915]
Modules linked in: snd_soc_skl_ipc snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core snd_soc_acpi snd_soc_core snd_compress snd_pcm_dmaengine ac97_bus joydev hid_multitouch hid_generic arc4 iTCO_wdt dell_wmi iTCO_vendor_support wmi_bmof dell_wmi_descriptor dell_smm_hwmon rtsx_pci_ms dell_laptop rtsx_pci_sdmmc dell_smbios i2c_designware_platform mmc_core memstick i2c_designware_core dcdbas coretemp hwmon intel_rapl x86_pkg_temp_thermal intel_powerclamp crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel i2c_hid thermal hid iwlmvm mac80211 efi_pstore i915 iwlwifi pcspkr snd_hda_intel video snd_hda_codec drm_kms_helper snd_hda_core xhci_pci ucsi_acpi snd_hwdep cfg80211 efivars typec_ucsi drm xhci_hcd snd_pcm typec snd_timer wmi battery usbcore idma64 rtsx_pci intel_gtt e1000e rfkill
 snd virt_dma i2c_algo_bit tpm_crb intel_hid dell_smo8800 i2c_i801 int3400_thermal sparse_keymap soundcore acpi_thermal_rel processor_thermal_device int3403_thermal i2c_core int340x_thermal_zone usb_common intel_soc_dts_iosf intel_lpss_pci intel_pch_thermal acpi_pad ac intel_lpss dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua button efivarfs ip_tables x_tables ipv6 crc_ccitt ext4 crc16 mbcache jbd2 fscrypto sd_mod sha256_mb mcryptd sha256_ssse3 xts ahci libahci libata evdev scsi_mod input_leds serio_raw aesni_intel crypto_simd cryptd glue_helper aes_x86_64 dm_crypt dm_mod autofs4
CPU: 1 PID: 113 Comm: kworker/u16:1 Not tainted 4.16.0-un-def-alt1 #1
Hardware name: Dell Inc. Latitude 5590/0MM81M, BIOS 1.1.9 03/13/2018
Workqueue: events_unbound async_run_entry_fn
RIP: 0010:intel_gmbus_get_adapter+0x37/0x40 [i915]
RSP: 0018:ffffc90002833c40 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff88041014c000 RCX: ffffffff82051038
RDX: 0000000000000001 RSI: 0000000000000082 RDI: 0000000000000282
RBP: ffff880411a20000 R08: 0000000000000031 R09: 000000000000031d
R10: ffffc90002833c68 R11: 000000000000031d R12: ffff880411a20000
R13: ffff880410423000 R14: 0000000000000003 R15: ffffffffa0929ca0
FS:  0000000000000000(0000) GS:ffff88042e440000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e7ec948ae8 CR3: 000000000300a006 CR4: 00000000003606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 intel_hdmi_set_edid+0x37/0x290 [i915]
 intel_hdmi_detect+0x85/0xa0 [i915]
 drm_helper_probe_single_connector_modes+0xdb/0x6f0 [drm_kms_helper]
 drm_setup_crtcs+0x139/0xb00 [drm_kms_helper]
 ? __switch_to_asm+0x40/0x70
 ? __switch_to_asm+0x34/0x70
 ? __switch_to_asm+0x40/0x70
 ? __switch_to_asm+0x34/0x70
 ? __switch_to_asm+0x40/0x70
 ? __switch_to_asm+0x34/0x70
 __drm_fb_helper_initial_config_and_unlock+0x32/0x410 [drm_kms_helper]
 ? finish_task_switch+0x70/0x240
 intel_fbdev_initial_config+0xf/0x20 [i915]
 async_run_entry_fn+0x2c/0xd0
 process_one_work+0x1c3/0x3c0
 worker_thread+0x42/0x3e0
 kthread+0xf0/0x130
 ? process_one_work+0x3c0/0x3c0
 ? kthread_associate_blkcg+0xb0/0xb0
 ret_from_fork+0x35/0x40
Code: 17 48 89 c8 48 c1 e0 04 48 01 c1 48 c1 e1 06 48 8d 84 0f 70 0c 00 00 c3 48 c7 c6 58 14 95 a0 48 c7 c7 47 8b 93 a0 e8 49 ef 77 e0 <0f> 0b 31 c0 c3 0f 1f 40 00 8b 87 ec 03 00 00 80 e4 fc 09 c6 89 
---[ end trace 77c9ff0a4eac81ac ]---
BUG: unable to handle kernel NULL pointer dereference at 0000000000000010
IP: i2c_transfer+0x4/0xa0 [i2c_core]
PGD 0 P4D 0 
Oops: 0000 [#1] PREEMPT SMP PTI
Modules linked in: snd_soc_skl_ipc snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core snd_soc_acpi snd_soc_core snd_compress snd_pcm_dmaengine ac97_bus joydev hid_multitouch hid_generic arc4 iTCO_wdt dell_wmi iTCO_vendor_support wmi_bmof dell_wmi_descriptor dell_smm_hwmon rtsx_pci_ms dell_laptop rtsx_pci_sdmmc dell_smbios i2c_designware_platform mmc_core memstick i2c_designware_core dcdbas coretemp hwmon intel_rapl x86_pkg_temp_thermal intel_powerclamp crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel i2c_hid thermal hid iwlmvm mac80211 efi_pstore i915 iwlwifi pcspkr snd_hda_intel video snd_hda_codec drm_kms_helper snd_hda_core xhci_pci ucsi_acpi snd_hwdep cfg80211 efivars typec_ucsi drm xhci_hcd snd_pcm typec snd_timer wmi battery usbcore idma64 rtsx_pci intel_gtt e1000e rfkill
 snd virt_dma i2c_algo_bit tpm_crb intel_hid dell_smo8800 i2c_i801 int3400_thermal sparse_keymap soundcore acpi_thermal_rel processor_thermal_device int3403_thermal i2c_core int340x_thermal_zone usb_common intel_soc_dts_iosf intel_lpss_pci intel_pch_thermal acpi_pad ac intel_lpss dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua button efivarfs ip_tables x_tables ipv6 crc_ccitt ext4 crc16 mbcache jbd2 fscrypto sd_mod sha256_mb mcryptd sha256_ssse3 xts ahci libahci libata evdev scsi_mod input_leds serio_raw aesni_intel crypto_simd cryptd glue_helper aes_x86_64 dm_crypt dm_mod autofs4
CPU: 1 PID: 113 Comm: kworker/u16:1 Tainted: G        W        4.16.0-un-def-alt1 #1
Hardware name: Dell Inc. Latitude 5590/0MM81M, BIOS 1.1.9 03/13/2018
Workqueue: events_unbound async_run_entry_fn
RIP: 0010:i2c_transfer+0x4/0xa0 [i2c_core]
RSP: 0018:ffffc90002833b20 EFLAGS: 00010246
RAX: ffffc90002833b5e RBX: 0000000000000005 RCX: 0000000000000001
RDX: 0000000000000002 RSI: ffffc90002833b70 RDI: 0000000000000000
RBP: ffffc90002833bd0 R08: 0000000000000001 R09: 0000000000000050
R10: 0000000000000001 R11: 000000000000031d R12: 0000000000000002
R13: 0000000000000001 R14: ffffc90002833b5f R15: ffffc90002833c07
FS:  0000000000000000(0000) GS:ffff88042e440000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000010 CR3: 000000000300a006 CR4: 00000000003606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 drm_do_probe_ddc_edid+0xd8/0x160 [drm]
 ? apic_timer_interrupt+0xa/0x20
 ? drm_get_edid+0xeb/0x3f0 [drm]
 drm_get_edid+0xeb/0x3f0 [drm]
 intel_hdmi_set_edid+0x45/0x290 [i915]
 intel_hdmi_detect+0x85/0xa0 [i915]
 drm_helper_probe_single_connector_modes+0xdb/0x6f0 [drm_kms_helper]
 drm_setup_crtcs+0x139/0xb00 [drm_kms_helper]
 ? __switch_to_asm+0x40/0x70
 ? __switch_to_asm+0x34/0x70
 ? __switch_to_asm+0x40/0x70
 ? __switch_to_asm+0x34/0x70
 ? __switch_to_asm+0x40/0x70
 ? __switch_to_asm+0x34/0x70
 __drm_fb_helper_initial_config_and_unlock+0x32/0x410 [drm_kms_helper]
 ? finish_task_switch+0x70/0x240
 intel_fbdev_initial_config+0xf/0x20 [i915]
 async_run_entry_fn+0x2c/0xd0
 process_one_work+0x1c3/0x3c0
 worker_thread+0x42/0x3e0
 kthread+0xf0/0x130
 ? process_one_work+0x3c0/0x3c0
 ? kthread_associate_blkcg+0xb0/0xb0
 ret_from_fork+0x35/0x40
Code: ff ff ff 0f 84 d6 fc ff ff e9 29 fd ff ff 48 c7 c2 ae a0 3c a0 48 89 df e8 aa fb ff ff eb dc 45 31 e4 e9 0b fd ff ff 41 54 55 53 <48> 8b 47 10 48 83 38 00 74 7c 65 8b 05 3b 0d c5 5f a9 ff ff ff 
RIP: i2c_transfer+0x4/0xa0 [i2c_core] RSP: ffffc90002833b20
CR2: 0000000000000010
---[ end trace 77c9ff0a4eac81ad ]---

Attached is the boot log of the same kernel with 'drm.debug=14' option enabled.

/sys/kernel/debug/dri/0/i915_vbt file is also attached.

This is UEFI boot (secure boot enabled).

To resolve this problem the following patch is enough: https://patchwork.kernel.org/patch/10003565/ (requires small change to fit 4.16 kernel).
Comment 1 Pavel Nakonechnyi 2018-04-09 21:01:49 UTC
Created attachment 138710 [details]
i915_vbt
Comment 2 Seweryn Kokot 2018-04-10 20:32:42 UTC
Similar bug report to this one:

https://bugs.freedesktop.org/show_bug.cgi?id=105549
Comment 3 Jani Nikula 2018-04-11 08:26:50 UTC

*** This bug has been marked as a duplicate of bug 105549 ***
Comment 4 Jani Saarinen 2018-04-20 09:50:45 UTC
Duplicate closed, closing this one.

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.