Re: kworker/0:3+pm hogging CPU

Michal Hocko
2020-07-20T16:34:04Z

On Mon 20-07-20 11:12:55, Alan Stern wrote:
[...]
> sudo echo 'module usbcore =p' >/debug/dynamic_debug/control
>
> Then wait long enough for some interesting messages to appear in the
> kernel log (it should only take a few seconds if the worker thread is as
> busy as you say) and collect the output from the dmesg command.
>
> To turn dynamic debugging back off when you're finished, use the same
> command with "=p" changed to "-p".

[ 95.395815] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.395824] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.395838] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.396016] hub 2-0:1.0: hub_suspend
[ 95.396023] usb usb2: bus auto-suspend, wakeup 1
[ 95.396029] usb usb2: bus suspend fail, err -16
[ 95.396030] hub 2-0:1.0: hub_resume
[ 95.396094] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.396160] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.396166] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.396259] hub 2-0:1.0: hub_suspend
[ 95.396300] usb usb2: bus auto-suspend, wakeup 1
[ 95.396321] usb usb2: bus suspend fail, err -16
[ 95.396332] hub 2-0:1.0: hub_resume
[ 95.396436] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.396443] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.396449] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.396582] hub 2-0:1.0: hub_suspend
[ 95.396587] usb usb2: bus auto-suspend, wakeup 1
[ 95.396594] usb usb2: bus suspend fail, err -16
[ 95.396595] hub 2-0:1.0: hub_resume
[ 95.396718] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.396725] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.396731] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.396870] hub 2-0:1.0: hub_suspend
[ 95.396874] usb usb2: bus auto-suspend, wakeup 1
[ 95.396881] usb usb2: bus suspend fail, err -16
[ 95.396882] hub 2-0:1.0: hub_resume
[ 95.396911] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.396917] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.396975] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.397063] hub 2-0:1.0: hub_suspend
[ 95.397068] usb usb2: bus auto-suspend, wakeup 1
[ 95.397095] usb usb2: bus suspend fail, err -16
[ 95.397105] hub 2-0:1.0: hub_resume
[ 95.397200] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.397207] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.397213] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.397367] hub 2-0:1.0: hub_suspend
[ 95.397372] usb usb2: bus auto-suspend, wakeup 1
[ 95.397379] usb usb2: bus suspend fail, err -16
[ 95.397380] hub 2-0:1.0: hub_resume
[ 95.397412] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.397418] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.397470] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.397560] hub 2-0:1.0: hub_suspend
[ 95.397565] usb usb2: bus auto-suspend, wakeup 1
[ 95.397599] usb usb2: bus suspend fail, err -16
[ 95.397610] hub 2-0:1.0: hub_resume
[ 95.397740] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.397746] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.397753] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.397888] hub 2-0:1.0: hub_suspend
[ 95.397893] usb usb2: bus auto-suspend, wakeup 1
[ 95.397900] usb usb2: bus suspend fail, err -16
[ 95.397901] hub 2-0:1.0: hub_resume
[ 95.397989] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.398030] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.398036] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.398120] hub 2-0:1.0: hub_suspend
[ 95.398158] usb usb2: bus auto-suspend, wakeup 1
[ 95.398189] usb usb2: bus suspend fail, err -16
[ 95.398190] hub 2-0:1.0: hub_resume
[ 95.398231] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.398237] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.398243] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.398381] hub 2-0:1.0: hub_suspend
[ 95.398385] usb usb2: bus auto-suspend, wakeup 1
[ 95.398392] usb usb2: bus suspend fail, err -16
[ 95.398393] hub 2-0:1.0: hub_resume
[ 95.398479] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.398523] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.398529] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.398620] hub 2-0:1.0: hub_suspend
[ 95.398678] usb usb2: bus auto-suspend, wakeup 1
[ 95.398685] usb usb2: bus suspend fail, err -16
[ 95.398686] hub 2-0:1.0: hub_resume
[ 95.398717] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.398724] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.398730] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.398869] hub 2-0:1.0: hub_suspend
[ 95.398874] usb usb2: bus auto-suspend, wakeup 1
[ 95.398880] usb usb2: bus suspend fail, err -16
[ 95.398882] hub 2-0:1.0: hub_resume
[ 95.399004] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.399011] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.399016] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.399152] hub 2-0:1.0: hub_suspend
[ 95.399157] usb usb2: bus auto-suspend, wakeup 1
[ 95.399164] usb usb2: bus suspend fail, err -16
[ 95.399165] hub 2-0:1.0: hub_resume
[ 95.399194] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.399201] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.399241] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.399346] hub 2-0:1.0: hub_suspend
[ 95.399350] usb usb2: bus auto-suspend, wakeup 1
[ 95.399357] usb usb2: bus suspend fail, err -16
[ 95.399358] hub 2-0:1.0: hub_resume
[ 95.399481] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.399488] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.399493] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.399630] hub 2-0:1.0: hub_suspend
[ 95.399634] usb usb2: bus auto-suspend, wakeup 1
[ 95.399641] usb usb2: bus suspend fail, err -16
[ 95.399642] hub 2-0:1.0: hub_resume
[ 95.399671] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.399707] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.399750] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.399934] hub 2-0:1.0: hub_suspend
[ 95.399985] usb usb2: bus auto-suspend, wakeup 1
[ 95.399992] usb usb2: bus suspend fail, err -16
[ 95.399995] hub 2-0:1.0: hub_resume
[ 95.400027] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.400034] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.400093] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.400228] hub 2-0:1.0: hub_suspend
[ 95.400233] usb usb2: bus auto-suspend, wakeup 1
[ 95.400267] usb usb2: bus suspend fail, err -16
[ 95.400276] hub 2-0:1.0: hub_resume
[ 95.400363] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.400370] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.400377] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.400514] hub 2-0:1.0: hub_suspend
[ 95.400519] usb usb2: bus auto-suspend, wakeup 1
[ 95.400526] usb usb2: bus suspend fail, err -16
[ 95.400527] hub 2-0:1.0: hub_resume
[ 95.400558] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000
[ 95.400565] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s
[ 95.400571] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s
[ 95.400709] hub 2-0:1.0: hub_suspend
[ 95.400714] usb usb2: bus auto-suspend, wakeup 1
[ 95.400721] usb usb2: bus suspend fail, err -16
[ 95.400722] hub 2-0:1.0: hub_resume
--
Michal Hocko
SUSE Labs