From: Nathan Bryant <nbryant@optonline.net>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: SCSI development list <linux-scsi@vger.kernel.org>
Subject: Re: Suspending SCSI devices and buses
Date: Wed, 18 Aug 2004 16:49:40 -0400 [thread overview]
Message-ID: <4123C0E4.6010906@optonline.net> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0408181632410.1138-100000@ida.rowland.org>
Alan Stern wrote:
> How does a host driver tell the SCSI core that an adapter is being
> suspended (and hence the core needs to suspend all the devices attached to
> that adapter)? Ditto for resume.
For devices, this should be handled by the applicable scsi_driver -
sd.c, etc. I posted a patch for this to the mailing list a week or two
ago, check the list archives.
>
> There doesn't appear to be any way to do it. The scsi_bus_type and
> various driver structures don't contain a "suspend" entry.
Correct, the midlayer doesn't quite support this yet, but my patch
should do the most important bits if somebody would be kind enough to
merge it... As a quick summary, first we need to quiesce the child
devices and synchronize their caches, then the LLD just needs to handle
flushing any remaining in-flight DMA transactions.
I also have an example patch to do this for the aic7xxx LLD. Which you
can also grab from the list archives.
Nathan
>
> Alan Stern
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2004-08-18 20:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-18 20:36 Suspending SCSI devices and buses Alan Stern
2004-08-18 20:42 ` Christoph Hellwig
2004-08-18 20:49 ` Nathan Bryant [this message]
2004-08-19 21:05 ` Alan Stern
2004-08-19 21:20 ` Nathan Bryant
2004-08-20 12:30 ` Nathan Bryant
2004-08-20 13:35 ` Luben Tuikov
2004-08-20 14:33 ` Nathan Bryant
2004-08-20 15:08 ` Alan Stern
2004-08-20 15:53 ` Nathan Bryant
2004-08-20 16:43 ` Alan Stern
-- strict thread matches above, loose matches on Subject: below --
2004-08-20 20:49 Pat LaVarre
2004-08-20 21:38 ` Nathan Bryant
2004-08-20 22:06 ` Pat LaVarre
2004-08-20 22:32 ` Nathan Bryant
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=4123C0E4.6010906@optonline.net \
--to=nbryant@optonline.net \
--cc=linux-scsi@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.