Created attachment 273855 [details] Compressed HTML output of `sudo ./sleepgraph.py -config config/suspend-callgraph.cfg` On the TUXEDO Book BU1406 [1], benchmarking suspend times with `sudo ./sleepgraph.py -config config/suspend-callgraph.cfg` [2], it turns out that `acpi_pm_finish()` takes over 140 ms. > acpi_pm_finish (144.631 ms) resume_machine Looking into the “children”, the following method takes the longest time. > acpi_ps_parse_aml (143.203 ms @ 570.791149) Please find the compressed HTML file attached. The output of `acpidump` follows. [1] https://www.tuxedocomputers.com/ [2] https://github.com/01org/pm-graph
Created attachment 273857 [details] Screenshot from HTML output of `sleepgraph.py`
Created attachment 273859 [details] `acpidump -o …`
it is probably caused by the EC transactions. We used to have a patch to fix it, but the patch was reverted later because of regressions. can you please try 4.12 kernel (which contains the patch) and see if the problem is gone?
(In reply to Zhang Rui from comment #3) > it is probably caused by the EC transactions. We used to have a patch to fix > it, but the patch was reverted later because of regressions. > can you please try 4.12 kernel (which contains the patch) and see if the > problem is gone? True. I guess you mean bug #185611 and commit c3a696b6e8f8 (ACPI / EC: Use busy polling mode when GPE is not enabled) and the revert commit 662591461c (ACPI / EC: Drop EC noirq hooks to fix a regression) [1]. I’ll try to test that. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=66259146
I tested the commit, but it didn’t improve anything. It could be that PTI is at fault though, cf. bug 185611, comment 52 [1]. [1] https://bugzilla.kernel.org/show_bug.cgi?id=185611#c52
(In reply to Paul Menzel from comment #5) > I tested the commit, but it didn’t improve anything. It could be that PTI > is at fault though, cf. bug 185611, comment 52 [1]. > > [1] https://bugzilla.kernel.org/show_bug.cgi?id=185611#c52 OK, Does it help to disable the pti by appending nopti?
@Paul, Do you have a chance to confirm this?
Assumed to be duplicated of 198909, let's move there and debug then. *** This bug has been marked as a duplicate of bug 198909 ***