From: ld puri <neoequal@gmail.com>
To: linux-ide@vger.kernel.org, linux-newbie@vger.kernel.org,
linux-pci@vger.kernl.org
Subject: State of outstanding command executing driver code during suspend()/resume().
Date: Tue, 7 Sep 2010 10:30:28 -0600 [thread overview]
Message-ID: <AANLkTi=GiP+QZ-ZYvOLsq+J2Fi9E42R8ziOKgEDkeyoc@mail.gmail.com> (raw)
Hi All,
While browsing through current Linux Power management implementation
wrt AHCI drivers, I stumbled upon following doubts.
I assume whenever system wide suspend (STR/hibernate) occurs, all the
process is freeze by the Kernel's PM subsystem and it ensures there
are no additional command can be issued to AHCI driver. But it can be
very much possible some commands are being executed within the AHCI
driver.
If my understanding is correct suspend() will be called anytime for
the AHCI driver. In other words, the invocation
ahci_pci_device_suspend() from PCI subsystem won't wait for ahci
driver to complete its outstanding command.
The invocation of suspend(), resume() & remove() call backs from PCI
subsystem are not synchronized with that driver's IO path is this
correct ?
Does these outstanding command currently executed by driver will be lost ?
Moreover in resume() routine of AHCI driver, the controller is
reinitialized (ahci_init_controller), then how system can restart the
commands that are stopped during previous suspend() call.
Thanks
Das
reply other threads:[~2010-09-07 16:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='AANLkTi=GiP+QZ-ZYvOLsq+J2Fi9E42R8ziOKgEDkeyoc@mail.gmail.com' \
--to=neoequal@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-newbie@vger.kernel.org \
--cc=linux-pci@vger.kernl.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;
as well as URLs for NNTP newsgroup(s).