Re: RFC: PNP: do not stop/start devices in suspend/resume path

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Shaohua Li <shaohua.li@...>
Cc: Jiri Slaby <jirislaby@...>, Andrew Morton <akpm@...>, <matthew@...>, Linux Kernel Mailing List <linux-kernel@...>, <linux-pm@...>, <drzeus@...>, <linux-acpi@...>, Adam Belay <ambx1@...>, Matthieu Castet <castet.matthieu@...>, Len Brown <lenb@...>
Date: Monday, December 10, 2007 - 7:26 pm

On Friday 07 December 2007 12:13:35 am Shaohua Li wrote:

The patch I currently have in -mm (http://lkml.org/lkml/2007/10/29/412)
merely requests resources in pnp_start_dev() and releases them in
pnp_stop_dev().  So if we remove pnp_stop_dev() but keep pnp_start_dev(),
I have to fix that patch to deal with things that may already be
reserved.

But I don't see any mention in the spec of running _SRS in the
sleep/wakup path, so I'm not convinced it's really necessary.
Section 7.4 mentions _TTS, _PTS, _GTS, etc., but not _SRS.

For devices, it looks like the intent is that BIOS should generate
notifications that cause OSPM to re-enumerate devices that might
have changed.  I'm pretty sure Linux is missing some of that code,
though, so I could believe that _SRS might help paper over that
deficiency.

What I'd really like to do is figure out how Windows uses _SRS and
do the same thing.

Bjorn
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
WARNING: at kernel/resource.c:189 __release_resource, Jiri Slaby, (Thu Nov 22, 5:41 pm)
Re: WARNING: at kernel/resource.c:189 __release_resource, Andrew Morton, (Tue Nov 27, 2:05 am)
Re: WARNING: at kernel/resource.c:189 __release_resource, Bjorn Helgaas, (Thu Nov 29, 7:40 pm)
Re: WARNING: at kernel/resource.c:189 __release_resource, Andrew Morton, (Thu Nov 29, 8:42 pm)
Re: WARNING: at kernel/resource.c:189 __release_resource, Bjorn Helgaas, (Fri Nov 30, 5:08 pm)
Re: WARNING: at kernel/resource.c:189 __release_resource, Bjorn Helgaas, (Fri Nov 30, 6:58 pm)
Re: RFC: PNP: do not stop/start devices in suspend/resume path, Bjorn Helgaas, (Mon Dec 10, 7:26 pm)
PNP: do not stop/start devices in suspend/resume path, Bjorn Helgaas, (Thu Dec 6, 7:25 pm)
Re: PNP: do not stop/start devices in suspend/resume path, Pierre Ossman, (Thu Dec 13, 4:26 am)
Re: PNP: do not stop/start devices in suspend/resume path, Andrew Morton, (Wed Dec 12, 4:16 am)
Re: PNP: do not stop/start devices in suspend/resume path, Bjorn Helgaas, (Wed Dec 12, 12:29 pm)
Re: WARNING: at kernel/resource.c:189 __release_resource, Matthew Wilcox, (Tue Nov 27, 8:38 am)