From: David Brownell <david-b@pacbell.net>
To: linux-pm@lists.linux-foundation.org
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>,
"Joonwoo Park" <joonwpark81@gmail.com>,
Simon Arlott <simon@fire.lp0.eu>,
"Kok, Auke" <auke-jan.h.kok@intel.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Pavel Machek <pavel@ucw.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)
Date: Mon, 6 Aug 2007 13:54:35 -0700 [thread overview]
Message-ID: <200708061354.35648.david-b@pacbell.net> (raw)
In-Reply-To: <200708062048.37160.rjw@sisk.pl>
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
next prev parent reply other threads:[~2007-08-06 20:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-06 13:42 Joonwoo Park
2007-08-06 14:50 ` Rafael J. Wysocki
2007-08-06 15:50 ` Joonwoo Park
2007-08-06 17:18 ` Simon Arlott
2007-08-06 18:48 ` Rafael J. Wysocki
2007-08-06 20:54 ` David Brownell [this message]
2007-08-07 4:30 ` Joonwoo Park
2007-08-07 13:51 ` Rafael J. Wysocki
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=200708061354.35648.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=auke-jan.h.kok@intel.com \
--cc=joonwpark81@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=pavel@ucw.cz \
--cc=rjw@sisk.pl \
--cc=simon@fire.lp0.eu \
/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
all inboxes | Powered by JetHome®