Re: Attempted summary of suspend-blockers LKML thread

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arve Hjønnevåg
Date: Monday, August 9, 2010 - 9:28 pm

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

For debugging purposes right? I'm not sure automatically counting
wakeup events from pm_stay_awake and pm_wakeup_event is the best way
to do this. To avoid race conditions these calls have to be made for
every event that could also be a wakeup event, which means the actual
wakeup event easily gets lost in the noise. This is why I had a
separate wakeup count that only increments on the fist call to
wake_lock after each suspend, but this did not work that well either.


Only if the drivers do not have bugs. A driver calling pm_say_awake
without a matching pm_relax call will prevent any race free suspend
from succeeding.


It is not just debug information. Drivers that mix wake_lock_timeout
and wake_unlock do not map to the current api.


How do you prefer to handle your pci wakeup events? Add a handle to
every device or pci device? Or use a global handle to avoid the race
and report wakeup events for debugging separately?

-- 
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)