Bug 169241
Summary: | AC to battery causes extreme load, many kworker threads in D state - 2008 Macbook | ||
---|---|---|---|
Product: | ACPI | Reporter: | G Mo (spambox+kernelbug) |
Component: | Power-Battery | Assignee: | Lv Zheng (lv.zheng) |
Status: | CLOSED UNREPRODUCIBLE | ||
Severity: | normal | CC: | lenb, rui.zhang, yu.c.chen |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.4.0, 4.6.3 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
output of 'acpidump -o'
'cat /proc/kworker_pid/stack' of first kworker thread to appear after a plug event 'cat /proc/kworker_pid/stack' of an additional kworker thread to appear after a plug event |
Description
G Mo
2016-09-17 23:06:53 UTC
Looks like the EC work item has been queued on ec_query_wq frequently, besides, the notifier has triggered acpi_os_execute_deferred rapidly, let me add @Lv in this discussion. Please attach your acpidump file. And please find the pid of that kworker, and provide: cat /proc/kworker_pid/stack Created attachment 238531 [details]
output of 'acpidump -o'
Created attachment 238541 [details]
'cat /proc/kworker_pid/stack' of first kworker thread to appear after a plug event
Created attachment 238551 [details]
'cat /proc/kworker_pid/stack' of an additional kworker thread to appear after a plug event
I attached the output of 'acpidump -o' and a couple kworkers, the first one to appear after I triggered the bug, and one of the later ones to appear. I'm not sure if those were the right ones. Interestingly, I found I cannot trigger the bug from the console or lightdm screen - the bug only happens when an LXDE session (this is Lubuntu) is running, or even more strangely, upon the start of an LXDE session if the power source has been toggled before that session is started. First we need to know which _Qxx has triggered this issue. Could you enable CONFIG_ACPI_DEBUG (enable and re-build the kernel if it is not enabled currently) and boot the enabled kernel with the following boot parameter: dyndbg="file ec.c +p" Thanks Lv (In reply to Lv Zheng from comment #7) > Could you enable CONFIG_ACPI_DEBUG (enable and re-build the kernel if it is > not enabled currently) and boot the enabled kernel with the following boot > parameter: > dyndbg="file ec.c +p" Sorry for missing the next steps: And please obtain the dmesg output after triggering the issue and upload the dmesg output here. Hopefully we can see the query number in the log. Pinging... Hi, sorry, I do intend to follow up on this. I'm having some trouble reproducing it and need to (re)build some kernels and test further on the Macbook. It's slow going. OK. Leaving this opened. I'll ping you next month. Hope it has already been fixed by the upstream kernel then. :) Hi, G Mo, any updates? can you reproduce the problem in the latest upstream kernel? Closing due to no progress. Feel free to re-open it when you can reproduce the issue. Thanks and best regards Lv |