Re: [xhci-hcd][linux 4.20.13] autosuspend on causes a single cpu core to stay in kernel mode using 100% of said cpu core.

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

 



On 3.3.2019 16.30, Greg KH wrote:
On Sun, Mar 03, 2019 at 03:15:27PM +0100, Farelka kek wrote:
usbcore.autosuspend higher than -1, causes 1 cpu core to never step
down from kernel mode.

Some hardware does not aupport autosuspend, so leaving it at -1 is good.

It happens on a core i5-7200U laptop, an acer f5-573g-50ec
Disabling usb autosuspend causes the cpu not to idle at, minimum of
25% cpu usage.

Is this a regression from earlier kernel versions?  If so, any chance
you can run 'git bisect' to find the offending commit?


It could be the following patch:

2f31a67 usb: xhci: Prevent bus suspend if a port connect change or polling state is detected

It caused similar issues on MacBookPro because of broken usb card reader stuck
in polling state.

Farelka kek, If that's the case for you, could you try a fix I wrote?
I added the fix on top of 4.20.13 in a suspend_fix branch:

git://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git suspend_fix
https://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git/commit/?h=suspend_fix

-Mathias



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

  Powered by Linux