Thunderbolt hotplug causes system hang

Bug #1677575 reported by Thibault Roche
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I have a problem similar to the bug #1599476, my system freezes when I unplug my thunderbolt port if it is connected during startup.

What I have tested so far :
* If the thunderbolt is plugged at startup and I unplug it -> System freeze
* If the thunderbolt is not plugged at startup, I can plug it and unplug it fine.

What I expect to happen :
Being able to unplug my thunderbolt without the system freezing.

I updated my BIOS and the firmware of the dock :
13:47 troche@serenity ~ % sudo dmidecode -s bios-version && sudo dmidecode -s bios-release-date
1.2.19
12/22/2016

This was working fine in Ubuntu 16.04, and it is not working since my update to Ubuntu 16.10.
13:47 troche@serenity ~ % lsb_release -rd
Description: Ubuntu 16.10
Release: 16.10

My computer is a Dell Precision 5510 laptop with a dock WD15 Thunderbolt.

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: linux-image-4.8.0-41-generic 4.8.0-41.44
ProcVersionSignature: Ubuntu 4.8.0-41.44-generic 4.8.17
Uname: Linux 4.8.0-41-generic x86_64
ApportVersion: 2.20.3-0ubuntu8.2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/pcmC0D0p: troche 2945 F...m pulseaudio
 /dev/snd/controlC0: troche 2945 F.... pulseaudio
CurrentDesktop: Unity
Date: Thu Mar 30 13:41:26 2017
HibernationDevice: RESUME=UUID=65e0fb0a-8046-4428-bb89-53d36638d70a
InstallationDate: Installed on 2016-08-24 (218 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
MachineType: Dell Inc. Precision 5510
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.8.0-41-generic root=UUID=7510dd66-3e56-446f-b39c-71724a228d07 ro quiet splash
RelatedPackageVersions:
 linux-restricted-modules-4.8.0-41-generic N/A
 linux-backports-modules-4.8.0-41-generic N/A
 linux-firmware 1.161.1
SourcePackage: linux
UpgradeStatus: Upgraded to yakkety on 2017-03-27 (3 days ago)
dmi.bios.date: 12/22/2016
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.2.19
dmi.board.name: 0N8J4R
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 9
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.2.19:bd12/22/2016:svnDellInc.:pnPrecision5510:pvr:rvnDellInc.:rn0N8J4R:rvrA00:cvnDellInc.:ct9:cvr:
dmi.product.name: Precision 5510
dmi.sys.vendor: Dell Inc.

Revision history for this message
Thibault Roche (thibault-n) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.11 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11-rc5

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
tags: added: kernel-da-key
Revision history for this message
Thibault Roche (thibault-n) wrote :

The bug itself is fixed in the 4.11.0-041100rc5-generic kernel. But I encounter regular freezes with this version of the kernel, and I have ACPI related error messages.

Here are the ACPI messages from the dmesg :
[ 6.090510] ACPI Warning: \_SB.IETM._ART: Return Package type mismatch at index 0 - found Integer, expected Reference (20170119/nspredef-297)
[ 6.090530] ACPI: Invalid package element [0]: got number, expecting [R]
[ 6.090531] _ART package 0 is invalid, ignored
[ 6.090563] ACPI Warning: \_SB.IETM._TRT: Return Package has no elements (empty) (20170119/nsprepkg-130)

tags: added: kernel-fixed-upstream
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Thanks for the feedback. Since it's fixed in mainline, we can perform a "Reverse" bisect to identify the commit that fixes the bug.

We first need to know that last bad kernel version and first good kernel version. Can you test the following kernels:

v4.9: http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9/
v4.10: http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10/
v4.11-rc1: http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11-rc1/

You don't have to test every kernel, just up until the first kernel that does not have this bug.

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.