From: Hannes Reinecke <hare@suse.de>
To: Mike Christie <michaelc@cs.wisc.edu>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>, matthew@wil.cx
Subject: Re: does sym53c8xx_2 hardware support hotplug
Date: Thu, 24 Apr 2008 11:25:41 +0200 [thread overview]
Message-ID: <48105215.8040109@suse.de> (raw)
In-Reply-To: <480F979E.5060302@cs.wisc.edu>
Hi Mike,
Mike Christie wrote:
> Hi,
>
> Does the hardware sym53c8xx_2 works with support removing and adding
> devices?
>
Oh. Hmm. That is tricky and complicated.
> When using sym53c8xx_2 if we find storage, remove the device using the
> sysfs/proc interface, then physically remove the device, everything goes
> well. However, if we physically plug the disk back in and try to readd
> it through the sysfs/proc scanning interfaces, it looks like
> scsi_scan.c's inquiry will time out. This causes the sym error handler
> to run, which works great and we end up doing a BUS RESET (BDR failed so
> we got escalated), and after that the inqiury is retried and we find the
> device and it works fine.
>
Yes.
> Is the inquiry timing out expected? Does the hardware even support
> hotplug? Or does it support it partially support it (support it with
> some help), and we are we supposed to be manually resetting the bus,
> with something like a sg_reset, after we have physically plug the disk
> back in?
>
Hi, join the club.
As the saying goes: Radio Yerewan answers: in principle, yes.
The whole matter of SCSI parallel hotplugging depends strongly on
the backplane. For fun reading have a look at
SPI-3 Annex D: Removal and insertion of SCSI devices.
It basically leaves it open to the vendor of the backplane how
much intelligence he wants to put in there.
But yes, sending a SCSI reset is listed there. It actually states
that the RST line should be asserted continuously by the initiator
during the hotplugging process.
HTH.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (AG Nürnberg)
--
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
prev parent reply other threads:[~2008-04-24 9:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-23 20:10 does sym53c8xx_2 hardware support hotplug Mike Christie
2008-04-24 9:25 ` Hannes Reinecke [this message]
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=48105215.8040109@suse.de \
--to=hare@suse.de \
--cc=linux-scsi@vger.kernel.org \
--cc=matthew@wil.cx \
--cc=michaelc@cs.wisc.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 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).