Bug 196559 - xhci_hcd: kernel panic using thunderbolt dell dock TB16 on 4.12.4
Summary: xhci_hcd: kernel panic using thunderbolt dell dock TB16 on 4.12.4
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Greg Kroah-Hartman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-01 15:15 UTC by Jose Marino
Modified: 2017-10-12 21:58 UTC (History)
0 users

See Also:
Kernel Version: 4.12.4
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
kernel panic logs saved by efi_pstore (22.68 KB, text/plain)
2017-08-01 15:15 UTC, Jose Marino
Details
systemd journal log (155.70 KB, text/plain)
2017-09-05 21:05 UTC, Jose Marino
Details
pstore panic messages from v4.13 (22.49 KB, text/plain)
2017-09-06 16:02 UTC, Jose Marino
Details
journald messagse from v4.13 (168.97 KB, text/plain)
2017-09-06 16:04 UTC, Jose Marino
Details

Description Jose Marino 2017-08-01 15:15:41 UTC
Created attachment 257781 [details]
kernel panic logs saved by efi_pstore

I'm running archlinux on a Dell XPS15 9550 and I connect it to a TB16 thunderbolt dock. Connected to the dock I have a 4k external display and a USB logitech transmitter for my wireless keyboard and mouse.

The TB16 dock is a finicky beast and doesn't currently work 100% with linux. However, if I follow a strict set of steps every time I plug it in and suspend/resume the laptop everything works reasonably well and I have an acceptable work environment. For the record the correct set of steps is: plug in dock, then connect dock to still asleep laptop, then resume laptop.
Also, to help things along I automatically unload/reload module 'xhci_pci' on suspend/resume.

Things were running smoothly with little hiccups here and there until I upgraded to kernel 4.12.4.
I have suffered at least 3 kernel panics since yesterday. This is a description of what happened during each one:
1. Laptop had been freshly rebooted over the weekend with kernel 4.12.4. I come into the office, plugged in dock, connect dock to laptop, resume laptop. Display comes up and everything looks good except that Caps Lock key is blinking and computer is frozen.
2. After full day of successfully using dock. I send output to laptop display, which appears to work fine, but Caps Lock is blinking.
3. Fresh reboot. Suspend, plug in dock, resume. Send output to external display but mouse and keyboard don't work. Send output to laptop display -> flashing Caps Lock.

I have efi_pstore module loaded so I was able to capture the panic logs in each of these 3 situations. I'm attaching the one from the last panic. They're all pretty much identical though.

After the 3rd panic I have downgraded to 4.12.3 and so far I haven't had any issues.

A note about the attachment: after each freeze the pstore logs contained an Opps and a Panic, however the Oops messages are fully contained in the Panic messages so I'm only attaching the Panic logs.
Comment 1 Greg Kroah-Hartman 2017-08-01 17:52:08 UTC
On Tue, Aug 01, 2017 at 03:15:41PM +0000, bugzilla-daemon@bugzilla.kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=196559
> 
>             Bug ID: 196559
>            Summary: xhci_hcd: kernel panic using thunderbolt dell dock
>                     TB16 on 4.12.4
>            Product: Drivers
>            Version: 2.5
>     Kernel Version: 4.12.4

All USB bugs should be sent to the linux-usb@vger.kernel.org mailing
list, and not entered into bugzilla.  Please bring this issue up there,
if it is still a problem in the latest kernel release.
Comment 2 Jose Marino 2017-09-05 21:05:24 UTC
Created attachment 258213 [details]
systemd journal log

The messages in the original attachment (with the efi_pstore logs) are clipped. They show the last messages produced but not the full story.

The logs stored by journald are also clipped but in the other direction, they show all the kernel messages from boot to just before the panic.
Combining both provides the full series of BUG and WARNING messages. In particular the first BUG message (scheduling while atomic) that was not included in the pstore logs.
Comment 3 Jose Marino 2017-09-06 16:02:05 UTC
Created attachment 258223 [details]
pstore panic messages from v4.13
Comment 4 Jose Marino 2017-09-06 16:04:55 UTC
Created attachment 258225 [details]
journald messagse from v4.13

Kernel messages recorded by journald from boot to panic.

Steps to trigger panic: boot, plug in dock, send display output to external display, suspend.
Comment 5 Jose Marino 2017-10-12 21:58:13 UTC
The fix for this bug has already landed in the mainline kernel (commit 4ec1cd3eeeee7ccc35681270da028dbc29ca7bbd) and in the latest stable version (v4.13.6)

Closing this bug.

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