public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org>
To: Pierre Ossman <drzeus-list-p3sGCRWkH8CeZLLa646FqQ@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: PCI power state mapping
Date: Mon, 16 Aug 2004 11:04:36 +0200	[thread overview]
Message-ID: <20040816090436.GA2064@openzaurus.ucw.cz> (raw)
In-Reply-To: <410528F5.1060104-p3sGCRWkH8CeZLLa646FqQ@public.gmane.org>

Hi!

> As far as I know the kernel has three different power modes. The ACPI 
> ones (S0-S5), the linux ones (PM_SUSPEND_*) and the PCI ones (D0-D3). 
> Mapping between the first two is done by the ACPI routines. But 
> mapping between kernel power states and PCI is not done at all. The 
> PM-enumerations are propagated all the way down to 
> pci_set_power_state(). I.e. the function expects PCI states but gets 

I have patch that converts all this to enums, and introduces
to_pci_state() function. That should solve part of confusion.


> Now for the problem. Most PCI devices do not support state D1 and D2 
> (which would be called when entering PM_SUSPEND_STANDBY or 
> PM_SUSPEND_MEM). This causes the pci_set_power_state() to fail and 
> the suspend to be aborted. I haven't found any good documentation 
> about the PCI power states but from what I can gather D0 is full 
> power, D1-D2 are used during normal operation to conserve some power 
> (when the device is idle I guess) and D3 when it enters some form of 
> suspend. So PM_SUSPEND_MEM should probably put the devices in D3, not 
> D2. Microsoft seem to increase the state until it finds on the device 
> supports:

Okay, to_pci_state will have to be fixed.

> Windows has something called system-to-device (SxD) mapping which 
> seems to handle most of this. I can't find the equivalent in linux 
> ACPI implementation. To me, this looks like a rather crucial part of 
> the system.

Someone will need to write that one...
-- 
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

  parent reply	other threads:[~2004-08-16  9:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-26 15:53 PCI power state mapping Pierre Ossman
     [not found] ` <410528F5.1060104-p3sGCRWkH8CeZLLa646FqQ@public.gmane.org>
2004-08-16  9:04   ` Pavel Machek [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-07-27  7:10 Li, Shaohua
     [not found] ` <B44D37711ED29844BEA67908EAF36F036BCB8C-4yWAQGcml65pB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-07-27 18:18   ` Pierre Ossman
     [not found]     ` <41069C59.5020603-p3sGCRWkH8CeZLLa646FqQ@public.gmane.org>
2004-07-29  8:41       ` Pavel Machek
     [not found]         ` <20040729084154.GH21889-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org>
2004-07-29 10:47           ` Pierre Ossman
     [not found]             ` <4108D5BC.8040302-p3sGCRWkH8CeZLLa646FqQ@public.gmane.org>
2004-07-29 10:52               ` Pavel Machek
     [not found]                 ` <20040729105251.GB9718-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-07-29 11:15                   ` Pierre Ossman
     [not found]                     ` <4108DC59.4050409-p3sGCRWkH8CeZLLa646FqQ@public.gmane.org>
2004-07-29 11:23                       ` Pavel Machek
     [not found]                         ` <20040729112359.GD9718-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-07-29 11:45                           ` Pierre Ossman
     [not found]                             ` <4108E365.30204-p3sGCRWkH8CeZLLa646FqQ@public.gmane.org>
2004-07-29 12:26                               ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040816090436.GA2064@openzaurus.ucw.cz \
    --to=pavel-+zi9xunit7i@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=drzeus-list-p3sGCRWkH8CeZLLa646FqQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox