system crash when attaching external display

Bug #1581560 reported by Rob Latham
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Expired
Low
Unassigned

Bug Description

After upgrading to 16.04, my thinkpad x1 carbon (3rd edition) freezes and reboots when I attach an external display.

Process:
- put laptop to sleep.
- come into work the next day
- open up laptop
- plug in external display
- observe bug

Expected behavior: I can attach the external display
Observed behavior: system shows black screen on both laptop and display and after a minute or two reboots. Laptop drives external display fine after reboot.

I ssh to the laptop from another machine and monitored /var/log/syslog, /var/log/Xorg.0.log, and ~/.xsession-errors. All I see in those files before the lockup is this, from Xorg.0.log:

[ 34289.447] (II) intel(0): Enabled output DP1-8
[ 34289.448] (II) intel(0): Enabled output DP1-1
[ 34289.460] (II) intel(0): resizing framebuffer to 2560x1440
[ 34289.482] (II) intel(0): switch to mode 2560x1440@60.0 on DP1-8 using pipe 0,
(0, 0), rotation normal, reflection none

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: xorg 1:7.7+13ubuntu3
ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
Uname: Linux 4.4.0-22-generic x86_64
.tmp.unity_support_test.0:

ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CompizPlugins: [core,composite,opengl,compiztoolbox,decor,vpswitch,snap,mousepoll,resize,place,move,wall,grid,regex,imgpng,session,gnomecompat,animation,fade,unitymtgrabhandles,workarounds,scale,expo,ezoom,unityshell]
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
CurrentDesktop: Unity
Date: Fri May 13 09:24:07 2016
DistUpgraded: 2016-04-21 20:51:13,846 ERROR got error from PostInstallScript ./xorg_fix_proprietary.py (g-exec-error-quark: Failed to execute child process "./xorg_fix_proprietary.py" (No such file or directory) (8))
DistroCodename: xenial
DistroVariant: ubuntu
DkmsStatus:
 virtualbox, 5.0.18, 4.2.0-30-generic, x86_64: installed
 virtualbox, 5.0.18, 4.4.0-21-generic, x86_64: installed
 virtualbox, 5.0.18, 4.4.0-22-generic, x86_64: installed
ExtraDebuggingInterest: Yes
GraphicsCard:
 Intel Corporation Broadwell-U Integrated Graphics [8086:1616] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Broadwell-U Integrated Graphics [17aa:2227]
InstallationDate: Installed on 2015-09-10 (245 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
MachineType: LENOVO 20BS0031US
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-22-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
SourcePackage: xorg
UpgradeStatus: Upgraded to xenial on 2016-04-22 (21 days ago)
dmi.bios.date: 05/08/2015
dmi.bios.vendor: LENOVO
dmi.bios.version: N14ET29W (1.07 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20BS0031US
dmi.board.vendor: LENOVO
dmi.board.version: SDK0E50510 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.modalias: dmi:bvnLENOVO:bvrN14ET29W(1.07):bd05/08/2015:svnLENOVO:pn20BS0031US:pvrThinkPadX1Carbon3rd:rvnLENOVO:rn20BS0031US:rvrSDK0E50510WIN:cvnLENOVO:ct10:cvrNone:
dmi.product.name: 20BS0031US
dmi.product.version: ThinkPad X1 Carbon 3rd
dmi.sys.vendor: LENOVO
drirc:

version.compiz: compiz 1:0.9.12.2+16.04.20160415-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.67-1
version.libgl1-mesa-dri: libgl1-mesa-dri 11.2.0-1ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 11.2.0-1ubuntu2
version.xserver-xorg-core: xserver-xorg-core 2:1.18.3-1ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.10.1-1ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.7.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20160325-1ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.12-1build2
xserver.bootTime: Fri May 13 09:04:56 2016
xserver.configfile: default
xserver.errors:

xserver.logfile: /var/log/Xorg.0.log
xserver.outputs:
 product id 4669
 vendor AUO
xserver.version: 2:1.18.3-1ubuntu2

Revision history for this message
Rob Latham (rob-terizla) wrote :
Revision history for this message
Rob Latham (rob-terizla) wrote :
Download full text (25.3 KiB)

Sometimes, my laptop does not freeze. Just now I was able to see the external display upon my second attempt, and found 8 backtraces in dmesg:

[26529.773617] [drm:intel_dp_link_training_clock_recovery [i915]] *ERROR* failed
 to enable link training
[26529.776319] [drm:intel_dp_link_training_channel_equalization [i915]] *ERROR*
failed to start channel equalization
[26529.778857] [drm:intel_mst_pre_enable_dp [i915]] *ERROR* failed to allocate v
cpi
[26529.845810] ------------[ cut here ]------------
[26529.845837] WARNING: CPU: 3 PID: 1780 at /build/linux-FvcHlK/linux-4.4.0/drivers/gpu/drm/i915/intel_display.c:12740 intel_modeset_check_state+0x5b3/0x8a0 [i915]()
[26529.845838] encoder detached but still enabled on pipe A.
[26529.845839] Modules linked in: cpuid pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) drbg ansi_cprng ctr ccm rfcomm bnep binfmt_misc uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core v4l2_common videodev media btusb btrtl btbcm btintel bluetooth intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel arc4 kvm snd_hda_codec_hdmi irqbypass crct10dif_pclmul crc32_pclmul aesni_intel iwlmvm aes_x86_64 lrw gf128mul mac80211 glue_helper snd_seq_midi snd_seq_midi_event ablk_helper snd_rawmidi cryptd input_leds joydev snd_hda_codec_realtek iwlwifi serio_raw snd_hda_codec_generic thinkpad_acpi nvram cfg80211 snd_hda_intel intel_pch_thermal snd_hda_codec mei_me snd_hda_core mei lpc_ich snd_hwdep snd_pcm shpchp snd_seq snd_seq_device snd_timer snd soundcore
[26529.845870] mac_hid parport_pc ppdev lp parport autofs4 ses enclosure uas usb_storage i915 i2c_algo_bit drm_kms_helper psmouse syscopyarea sysfillrect e1000e sysimgblt ahci fb_sys_fops libahci drm ptp pps_core wmi video fjes
[26529.845882] CPU: 3 PID: 1780 Comm: Xorg Tainted: G W OE 4.4.0-22-generic #40-Ubuntu
[26529.845884] Hardware name: LENOVO 20BS0031US/20BS0031US, BIOS N14ET29W (1.07 ) 05/08/2015
[26529.845885] 0000000000000286 0000000088216a49 ffff880034c97b08 ffffffff813e9c53
[26529.845887] ffff880034c97b50 ffffffffc027ca50 ffff880034c97b40 ffffffff81080fb2
[26529.845889] ffff8802443c4318 ffff8800356b1000 ffff8802443c4348 ffff8802443c4330
[26529.845890] Call Trace:
[26529.845895] [<ffffffff813e9c53>] dump_stack+0x63/0x90
[26529.845898] [<ffffffff81080fb2>] warn_slowpath_common+0x82/0xc0
[26529.845899] [<ffffffff8108104c>] warn_slowpath_fmt+0x5c/0x80
[26529.845916] [<ffffffffc020d483>] intel_modeset_check_state+0x5b3/0x8a0 [i915]
[26529.845932] [<ffffffffc0218bcb>] intel_atomic_commit+0x4bb/0x6f0 [i915]
[26529.845947] [<ffffffffc005cc47>] drm_atomic_commit+0x37/0x60 [drm]
[26529.845954] [<ffffffffc01719f6>] drm_atomic_helper_set_config+0x76/0xb0 [drm_kms_helper]
[26529.845964] [<ffffffffc004be02>] drm_mode_set_config_internal+0x62/0x100 [drm]
[26529.845974] [<ffffffffc0050322>] drm_mode_setcrtc+0x3d2/0x4f0 [drm]
[26529.845981] [<ffffffffc0041712>] drm_ioctl+0x152/0x540 [drm]
[26529.845984] [<ffffffff81090a76>] ? __set_current_blocked+0x36/0x60
[26529.845992] [<ffffffffc004ff50>] ? drm_mode_setplane+0x1b0/0x1b0 [drm]
[26529.845995] [<ffffffff8122026f>] do_vfs_ioctl+0x29f/0x490
[26529.845997] [<...

Revision history for this message
Rob Latham (rob-terizla) wrote :

I tried an upstream kernel ( 4.4.12-040412-generic #201606011712 ). Attaching after suspend/resume no longer results in a crash.

The screen frequently fails to restore on the first try. dmesg has these lines in that case:

[drm:intel_mst_disable_dp [i915]] *ERROR* failed to update payload -22
[drm] GPU HANG: ecode 8:-1:0x00000000, reason: Kicking stuck wait on blitter ring, action: continue
[drm:intel_cpu_fifo_underrun_irq_handler [i915]] *ERROR* CPU pipe A FIFO underrun

But, in an improvement from the Ubuntu kernel, I can unplug and try again with success.

penalvch (penalvch)
tags: added: bios-outdated-1.13
Revision history for this message
Rob Latham (rob-terizla) wrote :

The 'bios-outdated-1.13' tag confuses me.

It's true that I am running (dmidecode says...) Vendor: LENOVO Version: N14ET29W (1.07 )

but there is no mention of display fixes in the release notes that accompany n14ur12w (1.13).

I can update my bios but wanted to understand if the tag addition was for fixing a known issue or was something I should try to see if it helps.

As a reminder, Ubuntu-15.10 handled this display fine with the same bios version.

Revision history for this message
penalvch (penalvch) wrote :

Rob Latham, it's always best to run the latest BIOS when debugging issues as documented in https://help.ubuntu.com/community/ReportingBugs#Hardware_bug_reports_.28linux_kernel.2C_xorg.2C_sound.2C_etc..29 . Could you please advise?

Changed in xorg (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
kay (kay-diam) wrote :

I have the same issue on Ubuntu 16.04 4.4.0-34-generic and Lenovo x260

If it was suspended with two screens, it would not wake up.

Revision history for this message
penalvch (penalvch) wrote :

kay (kay-diam), it will help immensely if you filed a new report with Ubuntu by ensuring you have the package xdiagnose installed, and that you click the Yes button for attaching additional debugging information running the following from a terminal:
ubuntu-bug xorg

Also, please feel free to subscribe me to it.

For more on why this is helpful, please see https://wiki.ubuntu.com/ReportingBugs.

Revision history for this message
kay (kay-diam) wrote :

Not sure whether it's related to xorg, but not intel driver or something else.

Here is my dmesg when I just boot the laptop with the attached dock station.

Revision history for this message
kay (kay-diam) wrote :

I don't know why my attachments were removed, but this issue was fixed by upgrading the kernel to http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8-rc6/

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for xorg (Ubuntu) because there has been no activity for 60 days.]

Changed in xorg (Ubuntu):
status: Incomplete → Expired
Revision history for this message
kay (kay-diam) wrote :

Why did you close the issue? I still have to power off my laptop instead of suspending.

Revision history for this message
kay (kay-diam) wrote :

Have resolved the issue by installing yakkety kernel:

sudo add-apt-repository ppa:canonical-kernel-team/ppa
sudo apt update
sudo apt install linux-image-generic-lts-yakkety

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.