From: Bob Frey <bfrey@turbolinux.com.cn>
To: linux-hotplug@vger.kernel.org
Subject: Re: SCSI Patches - mostly on/off-line stuff
Date: Fri, 19 Jan 2001 02:10:01 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-97986979512093@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-97925037703688@msgid-missing>
On Thu, Jan 18, 2001 at 12:03:24PM -0500, Venkatesh Ramamurthy wrote:
> [Venkat] I agree that bus rescan is a better way. If the SCSI
> devices are connected though a SAF_TE processor then we can poll the SCSI
> Bus frequently, as the SAF_TE knows about addition and detection.
Polling is not practical, because for some bus changes the kernel must
know immediately of the change and start using a new bus configuration -
for example in 1394 if the root device bus location has changed. Also the
user expects to see a 1394 device appear immediately after it is attached.
So the rescan for 1394 must be event driven.
To help answer Eric's question about types of events that need to be
handled, for 1394 all device (node) IDs may change after a bus reset
which automatically occurs every time a device is added or removed and
for all 1394 host adapters generates an interrupt. Compare to parallel SCSI
where there is no automatic notification (or detection) of a device being
removed and the SCSI host adapter may optionally interrupt for a bus reset.
For 1394 an OS must reference device GUIDs to determine a mapping from old
device ids (pre-bus reset) to new (post-bus reset) device ids. So event
driven rescanning is definitely needed for 1394. 1394 also has a
generation count which if passed to upper software layers and always
included in requests to the lower layer can be used by the lower layer
to validate requests. For other busses this generation count would have
to be manufactured (e.g. maybe for parallel SCSI increment a counter after
a bus reset).
So I think rescanning should occur in the kernel automatically after every
bus reset for every different kind of peripheral bus. Every peripheral bus,
even parallel SCSI, I think has a bus reset: parallel SCSI, FC, 1394 - yes,
ATA - ?, others - ?
--
Bob Frey
bfrey@turbolinux.com.cn
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2001-01-19 2:10 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-11 21:56 SCSI Patches - mostly on/off-line stuff Douglas Gilbert
2001-01-11 22:43 ` Oliver.Neukum
2001-01-17 20:32 ` David Brownell
2001-01-18 0:08 ` Douglas Gilbert
2001-01-18 9:03 ` Oliver Neukum
2001-01-18 9:25 ` Miles Lane
2001-01-18 15:37 ` Eric Youngdale
2001-01-18 16:20 ` Venkatesh Ramamurthy
2001-01-18 16:49 ` Prasenjit Sarkar
2001-01-18 16:50 ` Venkatesh Ramamurthy
2001-01-18 17:03 ` Venkatesh Ramamurthy
2001-01-18 18:14 ` David Brownell
2001-01-18 19:12 ` Oliver Neukum
2001-01-18 19:20 ` Prasenjit Sarkar
2001-01-18 19:45 ` Miles Lane
2001-01-18 21:08 ` Douglas Gilbert
2001-01-18 21:41 ` Miles Lane
2001-01-18 22:07 ` David Brownell
2001-01-18 22:15 ` David Brownell
2001-01-18 22:45 ` Oliver Neukum
2001-01-18 23:10 ` Oliver Neukum
2001-01-18 23:25 ` Miles Lane
2001-01-18 23:37 ` Oliver Neukum
2001-01-19 2:08 ` David Brownell
2001-01-19 2:10 ` Bob Frey [this message]
2001-01-19 2:16 ` Venkatesh Ramamurthy
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=marc-linux-hotplug-97986979512093@msgid-missing \
--to=bfrey@turbolinux.com.cn \
--cc=linux-hotplug@vger.kernel.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).