Re: USB ExpressCard makes kworker process utilise 72-75% CPU infinitely

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 12, 2017 at 02:33:36PM +0100, Christoph Anton Mitterer wrote:
> Hi.
> 
> This is basically from:
> https://bugzilla.kernel.org/show_bug.cgi?id=108341
> respectively
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805903
> the later in which Ben Hutchings recommended me to ping this list as
> well.
> 
> 
> I bought a USB3.0 ExpressCard from StarTech[0] which is apparently[1]
> based on the NEC uPD720200.
> 
> Using a kernel 4.2.6 (see further below for the same on a more recent kernel version) on amd64, the System is Debian sid, the following
> happens when I plug the card:
> 
> kernel logs show:
> Nov 21 17:15:22 heisenberg kernel: [  102.387452] pci 0000:01:00.0: [1033:0194] type 00 class 0x0c0330
> Nov 21 17:15:22 heisenberg kernel: [  102.387545] pci 0000:01:00.0: reg 0x10: [mem0x00000000-0x00001fff 64bit]
> Nov 21 17:15:22 heisenberg kernel: [  102.387723] pci 0000:01:00.0: PME# supported from D0 D3hot
> Nov 21 17:15:22 heisenberg kernel: [  102.394689] pci 0000:01:00.0: BAR 0: assigned [mem0xf0d00000-0xf0d01fff 64bit]
> Nov 21 17:15:22 heisenberg kernel: [  102.394750] pci 0000:01:00.0: enabling device (0000 -> 0002)
> Nov 21 17:15:22 heisenberg kernel: [  102.395178] xhci_hcd 0000:01:00.0: xHCI Host Controller
> Nov 21 17:15:22 heisenberg kernel: [  102.395192] xhci_hcd 0000:01:00.0: new USB bus registered,assigned bus number 5
> Nov 21 17:15:22 heisenberg kernel: [  102.395418] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hciversion 0x96 quirks 0x00000004
> Nov 21 17:15:22 heisenberg kernel: [  102.395892] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
> Nov 21 17:15:22 heisenberg kernel: [  102.395896] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> Nov 21 17:15:22 heisenberg kernel: [  102.395899] usb usb5: Product: xHCI Host Controller
> Nov 21 17:15:22 heisenberg kernel: [  102.395902] usb usb5: Manufacturer: Linux 4.2.0-1-amd64 xhci-hcd
> Nov 21 17:15:22 heisenberg kernel: [  102.395905] usb usb5: SerialNumber: 0000:01:00.0
> Nov 21 17:15:22 heisenberg kernel: [  102.396308] hub 5-0:1.0: USB hub found
> Nov 21 17:15:22 heisenberg kernel: [  102.396331] hub 5-0:1.0: 2 ports detected
> Nov 21 17:15:22 heisenberg kernel: [  102.396591] xhci_hcd 0000:01:00.0: xHCI Host Controller
> Nov 21 17:15:22 heisenberg kernel: [  102.396599] xhci_hcd 0000:01:00.0: new USB bus registered,assigned bus number 6
> Nov 21 17:15:22 heisenberg kernel: [  102.398835] usb usb6: We don't know the algorithms for LPM forthis host, disabling LPM.
> Nov 21 17:15:22 heisenberg kernel: [  102.398883] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003
> Nov 21 17:15:22 heisenberg kernel: [  102.398887] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> Nov 21 17:15:22 heisenberg kernel: [  102.398890] usb usb6: Product: xHCI Host Controller
> Nov 21 17:15:22 heisenberg kernel: [  102.398892] usb usb6: Manufacturer: Linux 4.2.0-1-amd64 xhci-hcd
> Nov 21 17:15:22 heisenberg kernel: [  102.398895] usb usb6: SerialNumber: 0000:01:00.0
> Nov 21 17:15:22 heisenberg kernel: [  102.399272] hub 6-0:1.0: USB hub found
> Nov 21 17:15:22 heisenberg kernel: [  102.399294] hub 6-0:1.0: 2 ports detected
> 
> and when removing:
> Nov 21 17:15:40 heisenberg kernel: [  120.541515] xhci_hcd 0000:01:00.0: remove, state 4
> Nov 21 17:15:40 heisenberg kernel: [  120.544671] usb usb6: USB disconnect, device number 1
> Nov 21 17:15:40 heisenberg kernel: [  120.546683] xhci_hcd 0000:01:00.0: Host not halted after 16000 microseconds.
> Nov 21 17:15:40 heisenberg kernel: [  120.547611] xhci_hcd 0000:01:00.0: USB bus 6 deregistered
> Nov 21 17:15:40 heisenberg kernel: [  120.547618] xhci_hcd 0000:01:00.0: remove, state 4
> Nov 21 17:15:40 heisenberg kernel: [  120.547622] usb usb5: USB disconnect, device number 1
> Nov 21 17:15:40 heisenberg kernel: [  120.547735] xhci_hcd 0000:01:00.0: USB bus 5 deregistered
> 
> Now the problem is that immediately when I attach the card, a kworker
> process starts to utilise the CPU to always around 72%.
> And it never stops again until I shutdown; removing the card doesn't
> help.

What kworker process causes this?  Does it have a name?

> 
> 
> 
> On a more recent:
> $ uname -a
> Linux heisenberg 4.8.0-2-amd64 #1 SMP Debian 4.8.15-2 (2017-01-04) x86_64 GNU/Linux
> 
> 
> kernel log for the inserted USB3.0 ExpressCard from StarTech:
> Jan 12 14:15:13 heisenberg kernel: pci 0000:01:00.0: [1033:0194] type 00 class 0x0c0330
> Jan 12 14:15:13 heisenberg kernel: pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
> Jan 12 14:15:13 heisenberg kernel: pci 0000:01:00.0: PME# supported from D0 D3hot
> Jan 12 14:15:13 heisenberg kernel: pci 0000:01:00.0: BAR 0: assigned [mem 0xf0d00000-0xf0d01fff 64bit]
> Jan 12 14:15:13 heisenberg kernel: pci 0000:01:00.0: enabling device (0000 -> 0002)
> Jan 12 14:15:13 heisenberg kernel: xhci_hcd 0000:01:00.0: xHCI Host Controller
> Jan 12 14:15:13 heisenberg kernel: xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 5
> Jan 12 14:15:13 heisenberg kernel: xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
> Jan 12 14:15:13 heisenberg kernel: usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
> Jan 12 14:15:13 heisenberg kernel: usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> Jan 12 14:15:13 heisenberg kernel: usb usb5: Product: xHCI Host Controller
> Jan 12 14:15:13 heisenberg kernel: usb usb5: Manufacturer: Linux 4.8.0-2-amd64 xhci-hcd
> Jan 12 14:15:13 heisenberg kernel: usb usb5: SerialNumber: 0000:01:00.0
> Jan 12 14:15:13 heisenberg kernel: hub 5-0:1.0: USB hub found
> Jan 12 14:15:13 heisenberg kernel: hub 5-0:1.0: 2 ports detected
> Jan 12 14:15:13 heisenberg kernel: xhci_hcd 0000:01:00.0: xHCI Host Controller
> Jan 12 14:15:13 heisenberg kernel: xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 6
> Jan 12 14:15:13 heisenberg kernel: usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
> Jan 12 14:15:13 heisenberg kernel: usb usb6: New USB device found, idVendor=1d6b, idProduct=0003
> Jan 12 14:15:13 heisenberg kernel: usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> Jan 12 14:15:13 heisenberg kernel: usb usb6: Product: xHCI Host Controller
> Jan 12 14:15:13 heisenberg kernel: usb usb6: Manufacturer: Linux 4.8.0-2-amd64 xhci-hcd
> Jan 12 14:15:13 heisenberg kernel: usb usb6: SerialNumber: 0000:01:00.0
> Jan 12 14:15:13 heisenberg kernel: hub 6-0:1.0: USB hub found
> Jan 12 14:15:13 heisenberg kernel: hub 6-0:1.0: 2 ports detected
> Jan 12 14:15:15 heisenberg kernel: hub 6-0:1.0: USB hub found
> Jan 12 14:15:15 heisenberg kernel: hub 6-0:1.0: 2 ports detected
> Jan 12 14:15:15 heisenberg kernel: usb usb6: authorized to connect
> Jan 12 14:15:16 heisenberg kernel: hub 5-0:1.0: USB hub found
> Jan 12 14:15:16 heisenberg kernel: hub 5-0:1.0: 2 ports detected
> Jan 12 14:15:16 heisenberg kernel: usb usb5: authorized to connect
> 
> 
> then top shows this kworker, which remains at ~75% CPU until reboot:
>  2359 root      20   0       0      0      0 R  74,8  0,0   0:46.82 kworker/0:3                                                                                                               
> 
> # perf top -p 2359 gives something like that:
> Samples: 64K of event 'cycles:ppp', Event count (approx.): 19127246624
> Overhead  Shared Object     Symbol
>   19,91%  [kernel]          [k] acpi_ns_search_one_scope
>   11,18%  [kernel]          [k] acpi_os_write_port
>    8,51%  [kernel]          [k] pci_conf1_read
>    7,59%  [kernel]          [k] acpi_ex_system_memory_space_handler
>    3,57%  [kernel]          [k] acpi_os_read_port
>    2,84%  [kernel]          [k] kmem_cache_alloc
>    2,27%  [kernel]          [k] acpi_ut_get_next_predefined_method
>    1,96%  [kernel]          [k] nmi

Looks like acpi is going crazy, maybe lots of different ACPI events?
Have you asked the ACPI developers about this?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux