>Synopsis: Laptop fails to shutdown and drops to DDB when connected to a
>USB-C dock
>Category: openbsd-bugs
>Environment:
System : OpenBSD 6.6
Details : OpenBSD 6.6 (GENERIC.MP) #7: Thu Mar 12 11:55:22 MDT 2020
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64
Machine : amd64
>Description:
When my laptop (Lenovo X1 Carbon 6th Generation) is connected to a USB-C
dock it takes a lot longer than normal to boot and when launching things
like Firefox or Chromium they will take substantially longer than normal
to load (initially) and during their load the CPU will be pegged at 100%
usage. When going to shutdown the laptop (shutdown -p now) it will get
to syncing disks and then drop to DDB with the following:
```
login: syncing disks... done
kernel: protection fault trap, code=0
Stopped at nvme_q_complete+0x2a: movq 0x30(%rax),%r14
ddb{0}>
```
when running `show panic` it returns:
```
ddb{0}> show panic
the kernel did not panic
```
when running `show registers` it returns:
```
rdi 0xffff800000576000
rsi 0xffff800000571a00
rbp 0xffff800029fe36b0
rbx 0x4
rdx 0xed3cd7 acpi_pdirpa+0xebfb3f
rcx 0xed3cd7 acpi_pdirpa+0xebfb3f
rax 0xdeafbeaddeafbead
r8 0xb527c1d851311cce
r9 0x5e725ac8
r10 0xffff800029fe3800
r11 0x25eac0524b511f51
r12 0xffff800000576000
r13 0
r14 0xffff800000576000
r15 0xffff800000571a00
rip 0xffffffff81a839ba nvme_q_complete+0x2a
cs 0x8
rflags 0x10286 __ALIGN_SIZE+0xf286
rsp 0xffff800029fe3660
ss 0x10
nvme_q_complete+0x2a: movq 0x30(%rax),%r14
ddb{0}>
```
when running `boot dump` it never actually reboots and manual
intervention/hard powering off the laptop is required.
>How-To-Repeat:
Boot laptop while connected to a USB-C dock. I have tested three(3)
various docks;
1. Lenovo Dock that came with the laptop
2. Dell Dock that I had lying around
3. Targus Dock that I had lying around
>Fix:
I've simply avoided using USB-C docks for now, figured I'd try again
today with the Lenovo Dock that came with the Laptop. No change in
behavior.