Re: Attempted summary of suspend-blockers LKML thread

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arve Hjønnevåg
Date: Sunday, August 8, 2010 - 10:09 pm

2010/8/8 Rafael J. Wysocki <rjw@sisk.pl>:
...

The java wakelocks have stats in user space, but the lower level
services that use the kernel api do not show up there.


I'm not sure what you mean. If you mean add a procfs or debugfs api
that lists the stats for devices that have used the api, then yes that
should work. If I have a devices where the battery drained too
quickly, I run cat /proc/wakelocks which has all the reasons why it
was not suspended.

...

As long as it is not optional.


No that is not how it deadlocks. The input driver calls pm_stay_awake
which blocks the thread that reads from /sys/power/wakeup_count. If
that threads needs to run before the user-space reads from the input
device (either because it is the same thread, or because it provides a
user-space wakelock api) you have a deadlock.


My main point is that blocking suspend while the input event queue is
not empty changes what else is safe for the user-space process reading
/sys/power/wakeup_count.

-- 
Arve Hjønnevåg
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Attempted summary of suspend-blockers LKML thread, Rafael J. Wysocki, (Fri Aug 6, 3:04 pm)
Re: Attempted summary of suspend-blockers LKML thread, Arve Hjønnevåg, (Fri Aug 6, 8:19 pm)
Re: Attempted summary of suspend-blockers LKML thread, Rafael J. Wysocki, (Sat Aug 7, 1:44 am)
Re: Attempted summary of suspend-blockers LKML thread, Rafael J. Wysocki, (Sat Aug 7, 1:49 am)
Re: Attempted summary of suspend-blockers LKML thread, Arve Hjønnevåg, (Sat Aug 7, 3:02 am)
Re: Attempted summary of suspend-blockers LKML thread, Arve Hjønnevåg, (Sat Aug 7, 3:23 am)
Re: Attempted summary of suspend-blockers LKML thread, Rafael J. Wysocki, (Sun Aug 8, 12:17 pm)
Re: Attempted summary of suspend-blockers LKML thread, Rafael J. Wysocki, (Sun Aug 8, 12:55 pm)
Re: Attempted summary of suspend-blockers LKML thread, Arve Hjønnevåg, (Sun Aug 8, 10:09 pm)
Re: Attempted summary of suspend-blockers LKML thread, Arve Hjønnevåg, (Sun Aug 8, 10:29 pm)
Re: Attempted summary of suspend-blockers LKML thread, Rafael J. Wysocki, (Mon Aug 9, 7:53 pm)
Re: Attempted summary of suspend-blockers LKML thread, Arve Hjønnevåg, (Mon Aug 9, 9:28 pm)
Re: Attempted summary of suspend-blockers LKML thread, Rafael J. Wysocki, (Tue Aug 10, 7:11 pm)