public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Shutting down PCI devices on suspend
@ 2004-12-11 15:37 Matthew Garrett
  2004-12-11 19:50 ` Nate Lawson
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Matthew Garrett @ 2004-12-11 15:37 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

The default PCI suspend/resume calls (used if the driver doesn't
implement them itself) don't alter the device power state. This seems to
cause problems on some Thinkpads - going into S3 doesn't seem to result
in the on-board Radeon being put into D3, and as a result the battery is
drained at a higher rate than it should be. Who should be responsible
for making sure that devices are properly put to sleep:

1) The drivers (not immensely helpful in the case where we don't
necessarily have drivers registered for every device)
2) The kernel
3) The hardware itself?

I seem to remember someone mentioning something about Linux not checking
for hints from the hardware as to what state devices should be put in,
but I know little about this.
-- 
Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: Shutting down PCI devices on suspend
@ 2004-12-13  1:59 Li, Shaohua
       [not found] ` <16A54BF5D6E14E4D916CE26C9AD30575C12271-4yWAQGcml66iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 19+ messages in thread
From: Li, Shaohua @ 2004-12-13  1:59 UTC (permalink / raw)
  To: Adam Belay, Pavel Machek
  Cc: Matthew Garrett, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

>Yes, layering has small losses in flexability, but the advantage of
>ensuring
>uniform behavior and capabilities is very important.  With layering,
code
>repitition is minimal and everything in the kernel is all around more
>simplistic and easy to maintain.  I think we can have a higher average
>quality
>of functionality and stability with this approach.  Also less work will
be
>required when developing new drivers or adding new functionality.  For
>example, a developer could update class level code without breaking or
>needing
>to change driver and bus level code.
>
>Basically each component in the stack should not know or care about
what
>the
>components above or below it are going to do.  Each should be
autonomous
>and
>only concerned with completing its own well defined goal along the
chain of
>the process.  This can apply to most problems, including power
management.
I like the layering device model very much. We really need a unified
model to link the physical devices with ACPI devices. I have some
attempts before (see
http://www.gossamer-threads.com/lists/linux/kernel/490570?#490570), but
it isn't clear. Pat suggested me using some helpers for this issue, but
it would be better if the device model can unified handle it.

>Firmware like ACPI will tell us what wake-on-lan capabilities we have.
The
>bus layer also handles much of the physical aspects.  The user will say
>that
>he or she wants the logical device "eth1", as an example, to wake up
the
>computer if any traffic is incoming.  So really all of the layers play
some
>role in wake-on-lan, right?  Is a device useful for wake-on-lan without
a
>corresponding logical ethernet device?
>
>Furthermore, it can be more complicated than just keeping it powered
on.  A
>device might need a seperate power domain to be used for wake-on-lan
than
>normal operation.  ACPI could help with this.
ACPI could help more. Many ACPI devices have specific methods, such as
Floppy, SATA, USB. We just ignored them now. It's more important for
ACPI 3.0. In ACPI 3.0, every device could have a _OSC method, and the
drivers must indicate their capability. 

Thanks,
Shaohua


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2004-12-13 11:11 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-11 15:37 Shutting down PCI devices on suspend Matthew Garrett
2004-12-11 19:50 ` Nate Lawson
     [not found]   ` <41BB4F70.9060606-Y6VGUYTwhu0@public.gmane.org>
2004-12-11 22:41     ` Matthew Garrett
2004-12-11 23:20       ` Nate Lawson
     [not found]         ` <41BB80C6.1020404-Y6VGUYTwhu0@public.gmane.org>
2004-12-12  1:44           ` Arjen Verweij
2004-12-11 21:31 ` Arjen Verweij
2004-12-12 16:44 ` Pavel Machek
     [not found]   ` <20041212164422.GD6286-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-12-12 17:01     ` Matthew Garrett
2004-12-12 17:15       ` Pavel Machek
     [not found]         ` <20041212171521.GC6272-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-12-12 19:29           ` Adam Belay
     [not found]             ` <20041212192913.GB2661-IBH0VoN/3vPQT0dZR+AlfA@public.gmane.org>
2004-12-12 20:18               ` Pavel Machek
     [not found]                 ` <20041212201810.GE6272-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-12-12 22:36                   ` Adam Belay
     [not found]                     ` <20041212223655.GC2661-IBH0VoN/3vPQT0dZR+AlfA@public.gmane.org>
2004-12-12 23:01                       ` Pavel Machek
     [not found]                         ` <20041212230157.GH6272-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-12-13  0:11                           ` Adam Belay
     [not found]                             ` <20041213001125.GD2661-IBH0VoN/3vPQT0dZR+AlfA@public.gmane.org>
2004-12-13 11:09                               ` Pavel Machek
2004-12-12 23:23           ` Matthew Garrett
2004-12-13 10:52             ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2004-12-13  1:59 Li, Shaohua
     [not found] ` <16A54BF5D6E14E4D916CE26C9AD30575C12271-4yWAQGcml66iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-12-13 11:11   ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox