[Bug 216728] Thunderbolt USB Controller died after resume on Intel CometLake platform

bugzilla-daemon
2022-11-30T13:18:01Z

--- Comment #17 from Chris Chiu (chris.chiu@canonical.com) ---
+-1c.0-[01]----00.0 Realtek Semiconductor Co., Ltd. RTS525A PCI
Express Card Reader
+-1c.4-[02-6b]----00.0-[03-6b]--+-00.0-[04]----00.0 Intel
Corporation JHL7540 Thunderbolt 3 NHI [Titan Ridge 4C 2018]
| +-01.0-[05-37]--
| +-02.0-[38]----00.0 Intel
Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 4C 2018]
| \-04.0-[39-6b]--

I disabled the aspm by assign 0 individually to
/sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.0/0000:03:02.0/0000:38:00.0/link/l1_aspm

and

/sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.0/link/l1_2_aspm
/sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.0/link/l1_1_aspm
/sys/devices/pci0000:00/0000:00:1c.4/0000:02:00.0/link/l1_aspm

The same problem happens.

But I found something interesting which makes difference. If I disabled the
"Wake on Dell USB-C dock" feature in BIOS setting, the problem will be gone.
That matches the finding in the description, the power state change failure
will always happens then the HC died after. I'll ask more detail about this
feature. But also need suggestion about how we should handle this unexpected
wakeup for the xhci_hcd.