Bug 103301 - Image broken on external monitor with 60hz (works with 30hz) + master control interrupt lied
Summary: Image broken on external monitor with 60hz (works with 30hz) + master contro...
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - Intel) (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: intel-gfx-bugs@lists.freedesktop.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-22 16:48 UTC by Nico Schottelius
Modified: 2015-10-20 13:22 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.1.4-1-ARCH
Subsystem:
Regression: No
Bisected commit-id:


Attachments
get-sysinfo.sh (257.67 KB, text/x-log)
2015-08-22 16:48 UTC, Nico Schottelius
Details

Description Nico Schottelius 2015-08-22 16:48:12 UTC
Created attachment 185481 [details]
get-sysinfo.sh

Hello,

trying to connect the Lenovo X1 Carbon Gen3 to an external monitor via Displayport 1.2, I can only see "strange lines" that change slightly when moving the mouse on the screen.

Setting the refresh rate to 30hz fixes the problem (via xrandr).

Connecting with 60hz results in the following message in dmesg:

[92684.950728] [drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe B FIFO underrun

And after disconncting (by turning the output off using xrandr), I read additionally in dmesg:

[92809.474136] [drm:gen8_irq_handler [i915]] *ERROR* The master control interrupt lied (SDE)!

This bug happened since I started using that monitor. I exchanged cables to be sure that is not the cause 

NOTE: After some time the system will not suspend anymore, and I *assume* that the i915 driver reports the external display still connected - this happens after trying to connect to the screen after some days.


Attached is the output of get-sysinfo.sh.

[18:42] wurzel:~% xrandr
Screen 0: minimum 320 x 200, current 2560 x 1440, maximum 8192 x 8192
eDP1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 310mm x 174mm
   2560x1440     60.00*+
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   1600x1200     60.00  
   1400x1050     59.98  
   1280x1024     60.02  
   1280x960      60.00  
   1024x768      60.00  
   800x600       60.32    56.25  
   640x480       59.94  
DP1 connected (normal left inverted right x axis y axis)
   3840x2160     60.00 +  30.00  
   1920x1080     60.00    60.00    50.00    50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.95  
   1280x1024     75.02    60.02  
   1440x900      74.98    59.89  
   1280x960      60.00  
   1280x720      59.97    60.00    50.00    59.94  
   1024x768      75.08    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
HDMI1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
[18:42] wurzel:~%
Comment 1 Jani Nikula 2015-10-07 12:17:04 UTC
Presumed fixed upstream (apart from the master control interrupt bit, but there's another bug for that).

If the problem persists with latest kernels, please file a bug at the freedesktop.org bugzilla [1], referencing this bug. Thank you.

[1] https://bugs.freedesktop.org/enter_bug.cgi?product=DRI&component=DRM/Intel
Comment 2 Nico Schottelius 2015-10-15 09:16:02 UTC
Problem still exists on 4.2.2-1-ARCH and these xorg components:

[11:14] wurzel:~% pacman -Q | grep xorg
xorg-appres 1.0.4-1
xorg-bdftopcf 1.0.5-1
xorg-font-util 1.3.1-1
xorg-font-utils 7.6-4
xorg-fonts-100dpi 1.0.3-2
xorg-fonts-75dpi 1.0.3-2
xorg-fonts-alias 1.0.3-1
xorg-fonts-encodings 1.0.4-4
xorg-fonts-misc 1.0.3-4
xorg-luit 1.1.1-2
xorg-mkfontdir 1.0.7-2
xorg-mkfontscale 1.1.2-1
xorg-server 1.17.2-4
xorg-server-common 1.17.2-4
xorg-server-devel 1.17.2-4
xorg-server-xnest 1.17.2-4
xorg-setxkbmap 1.3.1-1
xorg-util-macros 1.19.0-1
xorg-xauth 1.0.9-1
xorg-xbacklight 1.2.1-1
xorg-xclock 1.0.7-1
xorg-xdpyinfo 1.3.2-1
xorg-xev 1.2.2-1
xorg-xhost 1.0.7-1
xorg-xinit 1.3.4-3
xorg-xinput 1.6.1-1
xorg-xkbcomp 1.3.0-1
xorg-xkill 1.0.4-1
xorg-xprop 1.2.2-1
xorg-xrandr 1.4.3-1
xorg-xrdb 1.1.0-1
xorg-xset 1.2.3-1
xorg-xsetroot 1.1.1-2
xorg-xwd 1.0.6-1
xorg-xwininfo 1.1.3-1


Now I also have some stack traces in dmesg:



[193907.123739] WARNING: CPU: 0 PID: 18822 at drivers/gpu/drm/i915/intel_dp.c:143 intel_dp_max_link_bw.isra.8+0x2d/0x50 [i915]()
[193907.123739] invalid max DP link bw val 0, using 1.62Gbps
[193907.123763] Modules linked in: uas usb_storage cpufreq_stats fuse xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter br_netfilter nf_nat nf_conntrack bridge stp llc dm_thin_pool dm_persistent_data dm_bio_prison dm_bufio loop ctr ccm uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev btusb btrtl btbcm media btintel bluetooth joydev mousedev snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi iTCO_wdt iTCO_vendor_support msr arc4 nls_iso8859_1 nls_cp437 vfat fat iwlmvm mac80211 intel_rapl iosf_mbi x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm iwlwifi input_leds pcspkr psmouse serio_raw cfg80211 thinkpad_acpi i2c_i801 nvram lpc_ich tpm_tis led_class wmi rfkill tpm
[193907.123786]  battery ac snd_hda_intel e1000e mei_me snd_hda_codec mei shpchp snd_hda_core ptp pps_core snd_hwdep thermal evdev mac_hid processor sch_fq_codel pci_stub vboxpci(O) vboxnetflt(O) vboxnetadp(O) vboxdrv(O) snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd soundcore drbd lru_cache libcrc32c ip_tables x_tables ext4 crc16 mbcache jbd2 sha256_ssse3 sha256_generic hmac drbg ansi_cprng algif_skcipher af_alg dm_crypt dm_mod sd_mod atkbd libps2 crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd ahci libahci xhci_pci libata ehci_pci xhci_hcd ehci_hcd scsi_mod usbcore usb_common i8042 serio i915 video button intel_gtt i2c_algo_bit drm_kms_helper drm
[193907.123788] CPU: 0 PID: 18822 Comm: kworker/u16:42 Tainted: G        W  O    4.2.2-1-ARCH #1
[193907.123789] Hardware name: LENOVO 20BTS09600/20BTS09600, BIOS N14ET26W (1.04 ) 01/23/2015
[193907.123792] Workqueue: events_unbound async_run_entry_fn
[193907.123794]  0000000000000000 0000000048653e7b ffff880003baf928 ffffffff8156b9da
[193907.123795]  0000000000000000 ffff880003baf980 ffff880003baf968 ffffffff81074886
[193907.123796]  0000000000000000 0000000000000000 ffffffffa01767c8 ffff880003bafa80
[193907.123796] Call Trace:
[193907.123799]  [<ffffffff8156b9da>] dump_stack+0x4c/0x6e
[193907.123801]  [<ffffffff81074886>] warn_slowpath_common+0x86/0xc0
[193907.123802]  [<ffffffff81074915>] warn_slowpath_fmt+0x55/0x70
[193907.123808]  [<ffffffffa0149f8d>] intel_dp_max_link_bw.isra.8+0x2d/0x50 [i915]
[193907.123814]  [<ffffffffa014c9f6>] intel_dp_common_rates+0xe6/0x100 [i915]
[193907.123819]  [<ffffffffa014d70d>] intel_dp_compute_config+0xcd/0x7e0 [i915]
[193907.123825]  [<ffffffffa0143ada>] intel_ddi_compute_config+0x5a/0xc0 [i915]
[193907.123832]  [<ffffffffa01284ae>] intel_modeset_compute_config+0x34e/0xb60 [i915]
[193907.123838]  [<ffffffffa012d3bb>] intel_set_mode+0x1b/0x60 [i915]
[193907.123844]  [<ffffffffa012e28c>] intel_crtc_restore_mode+0x13c/0x1f0 [i915]
[193907.123850]  [<ffffffffa012f0e8>] intel_modeset_setup_hw_state+0x8c8/0xd50 [i915]
[193907.123852]  [<ffffffff81570813>] ? _raw_spin_unlock_irq+0x13/0x30
[193907.123855]  [<ffffffffa00b81dc>] i915_drm_resume+0xcc/0x160 [i915]
[193907.123858]  [<ffffffffa00b8295>] i915_pm_resume+0x25/0x30 [i915]
[193907.123860]  [<ffffffff812fb0c8>] pci_pm_resume+0x68/0xb0
[193907.123861]  [<ffffffff812fb060>] ? pci_pm_thaw+0x90/0x90
[193907.123863]  [<ffffffff813e071e>] dpm_run_callback+0x4e/0x130
[193907.123865]  [<ffffffff813e0cb3>] device_resume+0xd3/0x1f0
[193907.123866]  [<ffffffff813e0df1>] async_resume+0x21/0x50
[193907.123867]  [<ffffffff81094d3c>] async_run_entry_fn+0x4c/0x160
[193907.123869]  [<ffffffff8108c5bb>] process_one_work+0x14b/0x440
[193907.123870]  [<ffffffff8108c8f8>] worker_thread+0x48/0x4a0
[193907.123871]  [<ffffffff8108c8b0>] ? process_one_work+0x440/0x440
[193907.123873]  [<ffffffff81092558>] kthread+0xd8/0xf0
[193907.123874]  [<ffffffff81092480>] ? kthread_worker_fn+0x170/0x170
[193907.123875]  [<ffffffff8157135f>] ret_from_fork+0x3f/0x70
[193907.123877]  [<ffffffff81092480>] ? kthread_worker_fn+0x170/0x170
[193907.123877] ---[ end trace 9409125a6ea2af2c ]---
[193907.123888] ------------[ cut here ]------------
[193907.123895] WARNING: CPU: 0 PID: 18822 at drivers/gpu/drm/i915/intel_display.c:12198 intel_modeset_check_state+0xb9/0xb50 [i915]()
[193907.123895] connector's staged encoder doesn't match current encoder
[193907.123910] Modules linked in: uas usb_storage cpufreq_stats fuse xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter br_netfilter nf_nat nf_conntrack bridge stp llc dm_thin_pool dm_persistent_data dm_bio_prison dm_bufio loop ctr ccm uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev btusb btrtl btbcm media btintel bluetooth joydev mousedev snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi iTCO_wdt iTCO_vendor_support msr arc4 nls_iso8859_1 nls_cp437 vfat fat iwlmvm mac80211 intel_rapl iosf_mbi x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm iwlwifi input_leds pcspkr psmouse serio_raw cfg80211 thinkpad_acpi i2c_i801 nvram lpc_ich tpm_tis led_class wmi rfkill tpm
[193907.123926]  battery ac snd_hda_intel e1000e mei_me snd_hda_codec mei shpchp snd_hda_core ptp pps_core snd_hwdep thermal evdev mac_hid processor sch_fq_codel pci_stub vboxpci(O) vboxnetflt(O) vboxnetadp(O) vboxdrv(O) snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd soundcore drbd lru_cache libcrc32c ip_tables x_tables ext4 crc16 mbcache jbd2 sha256_ssse3 sha256_generic hmac drbg ansi_cprng algif_skcipher af_alg dm_crypt dm_mod sd_mod atkbd libps2 crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd ahci libahci xhci_pci libata ehci_pci xhci_hcd ehci_hcd scsi_mod usbcore usb_common i8042 serio i915 video button intel_gtt i2c_algo_bit drm_kms_helper drm
[193907.123927] CPU: 0 PID: 18822 Comm: kworker/u16:42 Tainted: G        W  O    4.2.2-1-ARCH #1
[193907.123928] Hardware name: LENOVO 20BTS09600/20BTS09600, BIOS N14ET26W (1.04 ) 01/23/2015
[193907.123929] Workqueue: events_unbound async_run_entry_fn
[193907.123930]  0000000000000000 0000000048653e7b ffff880003bafad8 ffffffff8156b9da
[193907.123931]  0000000000000000 ffff880003bafb30 ffff880003bafb18 ffffffff81074886
[193907.123932]  ffff880003bafb18 ffff8800a62ca000 ffff8802438b5800 ffff88024390c000
[193907.123933] Call Trace:
[193907.123934]  [<ffffffff8156b9da>] dump_stack+0x4c/0x6e
[193907.123935]  [<ffffffff81074886>] warn_slowpath_common+0x86/0xc0
[193907.123936]  [<ffffffff81074915>] warn_slowpath_fmt+0x55/0x70
[193907.123941]  [<ffffffffa012c899>] intel_modeset_check_state+0xb9/0xb50 [i915]
[193907.123946]  [<ffffffffa012d3ce>] ? intel_set_mode+0x2e/0x60 [i915]
[193907.123951]  [<ffffffffa012e28c>] ? intel_crtc_restore_mode+0x13c/0x1f0 [i915]
[193907.123957]  [<ffffffffa012f0fe>] intel_modeset_setup_hw_state+0x8de/0xd50 [i915]
[193907.123958]  [<ffffffff81570813>] ? _raw_spin_unlock_irq+0x13/0x30
[193907.123962]  [<ffffffffa00b81dc>] i915_drm_resume+0xcc/0x160 [i915]
[193907.123965]  [<ffffffffa00b8295>] i915_pm_resume+0x25/0x30 [i915]
[193907.123966]  [<ffffffff812fb0c8>] pci_pm_resume+0x68/0xb0
[193907.123967]  [<ffffffff812fb060>] ? pci_pm_thaw+0x90/0x90
[193907.123968]  [<ffffffff813e071e>] dpm_run_callback+0x4e/0x130
[193907.123969]  [<ffffffff813e0cb3>] device_resume+0xd3/0x1f0
[193907.123971]  [<ffffffff813e0df1>] async_resume+0x21/0x50
[193907.123972]  [<ffffffff81094d3c>] async_run_entry_fn+0x4c/0x160
[193907.123973]  [<ffffffff8108c5bb>] process_one_work+0x14b/0x440
[193907.123974]  [<ffffffff8108c8f8>] worker_thread+0x48/0x4a0
[193907.123975]  [<ffffffff8108c8b0>] ? process_one_work+0x440/0x440
[193907.123976]  [<ffffffff81092558>] kthread+0xd8/0xf0
[193907.123978]  [<ffffffff81092480>] ? kthread_worker_fn+0x170/0x170
[193907.123979]  [<ffffffff8157135f>] ret_from_fork+0x3f/0x70
[193907.123980]  [<ffffffff81092480>] ? kthread_worker_fn+0x170/0x170
[193907.123981] ---[ end trace 9409125a6ea2af2d ]---
[193907.123982] ------------[ cut here ]------------
[193907.123987] WARNING: CPU: 0 PID: 18822 at drivers/gpu/drm/i915/intel_display.c:12218 intel_modeset_check_state+0x501/0xb50 [i915]()
[193907.123987] encoder's stage crtc doesn't match current crtc
[193907.124002] Modules linked in: uas usb_storage cpufreq_stats fuse xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter br_netfilter nf_nat nf_conntrack bridge stp llc dm_thin_pool dm_persistent_data dm_bio_prison dm_bufio loop ctr ccm uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev btusb btrtl btbcm media btintel bluetooth joydev mousedev snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi iTCO_wdt iTCO_vendor_support msr arc4 nls_iso8859_1 nls_cp437 vfat fat iwlmvm mac80211 intel_rapl iosf_mbi x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm iwlwifi input_leds pcspkr psmouse serio_raw cfg80211 thinkpad_acpi i2c_i801 nvram lpc_ich tpm_tis led_class wmi rfkill tpm
[193907.124017]  battery ac snd_hda_intel e1000e mei_me snd_hda_codec mei shpchp snd_hda_core ptp pps_core snd_hwdep thermal evdev mac_hid processor sch_fq_codel pci_stub vboxpci(O) vboxnetflt(O) vboxnetadp(O) vboxdrv(O) snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd soundcore drbd lru_cache libcrc32c ip_tables x_tables ext4 crc16 mbcache jbd2 sha256_ssse3 sha256_generic hmac drbg ansi_cprng algif_skcipher af_alg dm_crypt dm_mod sd_mod atkbd libps2 crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd ahci libahci xhci_pci libata ehci_pci xhci_hcd ehci_hcd scsi_mod usbcore usb_common i8042 serio i915 video button intel_gtt i2c_algo_bit drm_kms_helper drm
[193907.124018] CPU: 0 PID: 18822 Comm: kworker/u16:42 Tainted: G        W  O    4.2.2-1-ARCH #1
[193907.124018] Hardware name: LENOVO 20BTS09600/20BTS09600, BIOS N14ET26W (1.04 ) 01/23/2015
[193907.124019] Workqueue: events_unbound async_run_entry_fn
[193907.124020]  0000000000000000 0000000048653e7b ffff880003bafad8 ffffffff8156b9da
[193907.124021]  0000000000000000 ffff880003bafb30 ffff880003bafb18 ffffffff81074886
[193907.124022]  ffff880003bafb18 0000000000000001 ffff8802438b5800 ffff8802438b5b50
[193907.124023] Call Trace:
[193907.124024]  [<ffffffff8156b9da>] dump_stack+0x4c/0x6e
[193907.124025]  [<ffffffff81074886>] warn_slowpath_common+0x86/0xc0
[193907.124026]  [<ffffffff81074915>] warn_slowpath_fmt+0x55/0x70
[193907.124031]  [<ffffffffa012cce1>] intel_modeset_check_state+0x501/0xb50 [i915]
[193907.124036]  [<ffffffffa012d3ce>] ? intel_set_mode+0x2e/0x60 [i915]
[193907.124040]  [<ffffffffa012e28c>] ? intel_crtc_restore_mode+0x13c/0x1f0 [i915]
[193907.124046]  [<ffffffffa012f0fe>] intel_modeset_setup_hw_state+0x8de/0xd50 [i915]
[193907.124047]  [<ffffffff81570813>] ? _raw_spin_unlock_irq+0x13/0x30
[193907.124050]  [<ffffffffa00b81dc>] i915_drm_resume+0xcc/0x160 [i915]
[193907.124054]  [<ffffffffa00b8295>] i915_pm_resume+0x25/0x30 [i915]
[193907.124055]  [<ffffffff812fb0c8>] pci_pm_resume+0x68/0xb0
[193907.124056]  [<ffffffff812fb060>] ? pci_pm_thaw+0x90/0x90
[193907.124057]  [<ffffffff813e071e>] dpm_run_callback+0x4e/0x130
[193907.124058]  [<ffffffff813e0cb3>] device_resume+0xd3/0x1f0
[193907.124059]  [<ffffffff813e0df1>] async_resume+0x21/0x50
[193907.124060]  [<ffffffff81094d3c>] async_run_entry_fn+0x4c/0x160
[193907.124061]  [<ffffffff8108c5bb>] process_one_work+0x14b/0x440
[193907.124062]  [<ffffffff8108c8f8>] worker_thread+0x48/0x4a0
[193907.124063]  [<ffffffff8108c8b0>] ? process_one_work+0x440/0x440
[193907.124065]  [<ffffffff81092558>] kthread+0xd8/0xf0
[193907.124066]  [<ffffffff81092480>] ? kthread_worker_fn+0x170/0x170
[193907.124067]  [<ffffffff8157135f>] ret_from_fork+0x3f/0x70
[193907.124068]  [<ffffffff81092480>] ? kthread_worker_fn+0x170/0x170
[193907.124069] ---[ end trace 9409125a6ea2af2e ]---
Comment 3 Jani Nikula 2015-10-20 13:22:35 UTC
(In reply to Nico Schottelius from comment #2)
> Problem still exists on 4.2.2-1-ARCH and these xorg components:

If the problem persists with latest v4.3-rc, please file a new bug at https://bugs.freedesktop.org/enter_bug.cgi?product=DRI&component=DRM/Intel

Note You need to log in before you can comment on or make changes to this bug.