[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200708061354.35648.david-b@pacbell.net>
Date: Mon, 6 Aug 2007 13:54:35 -0700
From: David Brownell <david-b@...bell.net>
To: linux-pm@...ts.linux-foundation.org
Cc: "Rafael J. Wysocki" <rjw@...k.pl>,
"Joonwoo Park" <joonwpark81@...il.com>,
Simon Arlott <simon@...e.lp0.eu>,
"Kok, Auke" <auke-jan.h.kok@...el.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Pavel Machek <pavel@....cz>
Subject: Re: [linux-pm] Re: [PATCH] kexec: fix pci device initialization fail after kexec (2.6.23-rc2). (Related to e1000 doesn't resume properly from standby)
On Monday 06 August 2007, Rafael J. Wysocki wrote:
> Section 5.4.1 of PCI PM 1.1. spec is about D3_hot. Specifically, it says
> that if a device in D3_hot is programmed to D0, it performs the equivalent of
> a warm reset. IOW, this is supposed to happen if the current state is D3_hot
> and the targed state is D0, which is covered by the code snippet above.
Actually, it's *allowed* to do a warm reset. Not required.
And not all PCI devices will do such a reset. Some of them
will return to D0_initialized ... not D0_uninitialized (where
uninitialized means "did the reset").
It's D3_cold where a (powerup) reset is *required*.
A common example would be a USB host controller. If one of
those did a warm reset it'd trash all the connection state
which was carefully retained during sleep ... and there'd be
no point to supporting D3_hot rather than D3_cold.
As a rule of thumb, it's probably safe to assume that if
a device can generate wakeup events, it probably doesn't
trash all of its state when it resumes from D3_hot.
Of course, if it can generate wakeup events from D3_cold,
the difference between Vaux and Vcc power wells comes into
play. The Vaux powered bits will retain state, while the
stuff powered by Vcc gets a powerup reset.
If it can't generate wakeup events, a PCI device has no
particular need to retain state after D3. Implementors
can choose whichever is most convenient.
- Dave
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists