Bug 177541 - serio1 [psmouse] takes 14 seconds to suspend after resume - Dell XPS11
Summary: serio1 [psmouse] takes 14 seconds to suspend after resume - Dell XPS11
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Input Devices (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_input-devices
URL:
Keywords:
Depends on:
Blocks: 178231
  Show dependency tree
 
Reported: 2016-10-13 23:24 UTC by Len Brown
Modified: 2019-03-04 12:18 UTC (History)
4 users (show)

See Also:
Kernel Version: 4.8.0.22-generic
Subsystem:
Regression: No
Bisected commit-id:


Attachments
analyze_suspend -dev -x2 output (636.14 KB, text/html)
2016-10-13 23:24 UTC, Len Brown
Details
config file to reproduce this issue with analyze_suspend (2.39 KB, application/octet-stream)
2016-10-13 23:26 UTC, Len Brown
Details
dmesg (9.74 KB, text/plain)
2016-11-21 23:43 UTC, Len Brown
Details

Description Len Brown 2016-10-13 23:24:55 UTC
Created attachment 241691 [details]
analyze_suspend -dev -x2 output

On a Dell XPS11 laptop...

When suspending to memory shortly after a resume, serio1 takes 14 seconds to suspend.
Comment 1 Len Brown 2016-10-13 23:26:45 UTC
Created attachment 241701 [details]
config file to reproduce this issue with analyze_suspend

reproduce this failure by using the attached config file:

./analyze_suspend.py -config suspend-x2.cfg
Comment 2 Dmitry Torokhov 2016-10-19 00:28:34 UTC
I suspect that is because we cheat and do not actually resume the touchpad when we say we did, but rather mark the device as resumed and fire off work item to really reinitialize it. If you try to suspend right away, you need to wait until the device actually resumes before it can be suspended again.
Comment 3 Len Brown 2016-10-25 00:47:47 UTC
when i manually suspend the system and resume,
i am able to use the touchpad _well_ before 14 seconds, usually at about 2 seconds...

perhaps analyze_suspend should use kprobes to monitor this work item to see when it actually runs?
Comment 4 Dmitry Torokhov 2016-10-31 20:07:47 UTC
Could I see full dmesg of the 2 attempts?
Comment 5 Len Brown 2016-11-21 23:43:16 UTC
Created attachment 245491 [details]
dmesg

Attached is the dmesg associated with the initial comment #0 and comment #1.

Here is the fun part:

[ 2742.182392] PM: Suspending system (mem)
[ 2742.182457] Suspending console(s) (use no_console_suspend to debug)
[ 2742.205841] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 2742.207324] sd 0:0:0:0: [sda] Stopping disk
[ 2753.749248] psmouse serio1: Failed to deactivate mouse on isa0060/serio1
[ 2754.002838] psmouse serio1: Failed to enable mouse on isa0060/serio1
[ 2756.276056] psmouse serio1: Failed to enable mouse on isa0060/serio1
[ 2756.402760] psmouse serio1: Failed to disable mouse on isa0060/serio1
[ 2756.719189] Removing pn544
[ 2756.833784] PM: suspend of devices complete after 14649.888 msecs
Comment 6 Paul Menzel 2019-03-04 12:18:28 UTC
Len, can you still reproduce this with the latest Linux kernel?

Note You need to log in before you can comment on or make changes to this bug.