On Saturday 25 September 2004 8:45 pm, Alan Stern wrote:
> On Sun, 26 Sep 2004, Pavel Machek wrote:
> 
> > What is PME#?
> 
> It's a special signal used by PCI power management.  A device may generate
> this signal even when it is in a low-power or power-off state (unlike
> normal IRQs, which can only be generated in D0).  The signal is generally 
> used to wake up the system -- for instance, the ACPI firmware might turn 
> on the system power.  Think of Wake-On-Ring or Wake-On-LAN.

And this is NOT a "members only" download, at least recently:

http://www.pcisig.com/specifications/conventional/pci_bus_power_management_interface/

> I don't believe there's any way for PME# to be at all device-specific.  

At the hardware level, it's one more shared interrupt.  But if you use
"lspci -vv" you can see the PM info from config space:

        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 0 (750ns min, 250ns max)
        Interrupt: pin C routed to IRQ 10
        Region 0: Memory at e8004000 (32-bit, non-prefetchable)
        Capabilities: [80] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA 
PME(D0+,D1+,D2+,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

And that last line tells whether this particular PCI device is raising
the PME# just now.  It'd be easy for Linux to scan those bits and
use them to decide which devices to resume() ... but whatever
gets triggered by PME# doesn't seem to pass it on to Linux yet,
unless maybe it's as part of system resume.

- Dave


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to