USB port not working + kworker crazyness

Hi,

Since the middle of the week and following an update, The USB ports are not working after using them for a few minutes.

Below are the trace from dmesg:

[ 2174.020498] fuse init (API version 7.26)
[ 3455.871653] xhci_hcd 0000:00:14.0: xHC is not running.
[ 5696.614007] xhci_hcd 0000:00:14.0: xHC is not running.
[ 5810.890426] xhci_hcd 0000:00:14.0: xHC is not running.
[ 5810.921485] xhci_hcd 0000:00:14.0: xHCI host controller not responding, assume dead
[ 5810.921516] xhci_hcd 0000:00:14.0: HC died; cleaning up
[ 5810.957579] usb 1-3: USB disconnect, device number 2
[ 5810.958339] usb 1-4: USB disconnect, device number 3
[ 5810.961379] usb 1-6: USB disconnect, device number 4
[ 5842.050810] CPU3: Core temperature above threshold, cpu clock throttled (total events = 1)
[ 5842.050811] CPU2: Core temperature above threshold, cpu clock throttled (total events = 1)
[ 5842.050812] CPU0: Package temperature above threshold, cpu clock throttled (total events = 143)
[ 5842.050814] CPU2: Package temperature above threshold, cpu clock throttled (total events = 143)
[ 5842.050818] CPU3: Package temperature above threshold, cpu clock throttled (total events = 143)
[ 5842.050828] CPU1: Package temperature above threshold, cpu clock throttled (total events = 143)
[ 5842.053973] CPU3: Core temperature/speed normal
[ 5842.053974] CPU2: Core temperature/speed normal
[ 5842.053975] CPU0: Package temperature/speed normal
[ 5842.053976] CPU2: Package temperature/speed normal
[ 5842.053977] CPU3: Package temperature/speed normal
[ 5842.053989] CPU1: Package temperature/speed normal
[ 5864.104735] do_general_protection: 48 callbacks suppressed
[ 5864.104737] traps: variety[19329] general protection ip:7f9e94b7c832 sp:7f9e61cefb00 error:0 in libc-2.27.so[7f9e94b1d000+146000]
[ 6172.973168] tun: Universal TUN/TAP device driver, 1.6

I have also noticed that kworker eats up the power of one core triggering the cpu fan

And here are lspci + lsusb:

roland@tanko:~$ sudo lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

roland@tanko:~$ sudo lspci
00:00.0 Host bridge: Intel Corporation Skylake Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 520 (rev 07)
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 08)
00:08.0 System peripheral: Intel Corporation Skylake Gaussian Mixture Model
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
00:1f.5 Non-VGA unclassified device: Intel Corporation Device 9d24 (rev 21)
01:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)

Roland.

whats

sudo service xHC status

give, also https://askubuntu.com/questions/729558/how-do-i-get-usb-3-0-driver-working-or-check-that-it-is-already-working

Also another user rebooted twice and that did it for them??? bit weird

Here are the results from the commands you post and the one in the link:

roland@tanko:~$ sudo service xHC status
[sudo] Mot de passe de roland : 
Unit xHC.service could not be found.

roland@tanko:~$ sudo lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
roland@tanko:~$ grep -i xhci /boot/config-$(uname -r)
CONFIG_USB_XHCI_HCD=m
# CONFIG_USB_XHCI_DBGCAP is not set
CONFIG_USB_XHCI_PCI=m
# CONFIG_USB_XHCI_PLATFORM is not set
# CONFIG_USB_ROLES_INTEL_XHCI is not set

roland@tanko:~$ sudo lspci -v | grep xhci
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci

let’s try rebooting twice.

Rebootig twice didn’t fix the issue for me :frowning:

Apparently there might be something in BIOS about legacy usb support

https://ubuntuforums.org/showthread.php?t=2308392

also just to check is it all usb ports or just 2.0/3.0?

that and apparently powertop can be an arse about usb devices did you apply the fix for purism power optimisations?

Which optimization are you talking about?

Unfortunatelly, I don’t have any USB-C device to try the related port.

I didn’t have the problem reported in this post.

I will have a look in the BIOS.

I have also to say that I didn’t update my BIOS since I receive my Librem 15 v3

Hi,

Sorry for the lack of update on this topic.

A resent, big system update seems to have solved this issue.

Thanks for your support.

Which ‘big system update’ are you talking about here? I’m having this problem currently as well with the USB not working, however my system is fully up to date as well has the latest Coreboot version.

I remind that some pureos packages have been updated last week.

Below is an extract from my dpkg.log

2018-08-28 14:03:54 status installed pureos-security-hardening:all 0.0.1
2018-08-28 14:04:17 status installed pureos-standard:amd64 0.9.4
2018-08-28 14:04:16 status installed pureos-minimal:amd64 0.9.4

Hope this can help I can try to extract the list of packages update during last month if that can help.

Roland.