From: James Bottomley <James.Bottomley@SteelEye.com>
To: ltuikov@yahoo.com
Cc: Jeff Garzik <jgarzik@pobox.com>,
Christoph Hellwig <hch@infradead.org>,
SCSI Mailing List <linux-scsi@vger.kernel.org>,
linuxraid@amcc.com
Subject: Re: [PATCH] 3ware: use scsi_scan_target()
Date: Thu, 06 Oct 2005 20:07:14 -0500 [thread overview]
Message-ID: <1128647235.4623.28.camel@mulgrave> (raw)
In-Reply-To: <20051005231912.79866.qmail@web31807.mail.mud.yahoo.com>
On Wed, 2005-10-05 at 16:19 -0700, Luben Tuikov wrote:
> I'd like to move sas_do_lu_discovery(struct domain_device *dev)
> into SCSI Core (as the comment therein says), for _new_ (non-legacy)
> devices, i.e. with newer FW.
Initially my reaction is not for the time being, for two reasons
1. The domain device as you have implemented it requires a lot of
infrastructure support. I'd like to see this refined in the transport
classes to hone it before considering pulling it into the mid-layer
2. sas_do_lu_discovery() duplicates a lot of existing functionality, but
also lacks a lot of quirk processing. I know the argument is that SAS
won't have any quirks, but I'd like to have this proven in the field
before I take it as read.
> It also handles devices who do not even respond
> to REPORT LUNS on either LU 0 or RL WLUN (like early prototype
> SES FW), in which case it would register LU 0 for them since
> this is where tasks are sent.
I'm sure you're aware that not responding on either LUN 0 or the report
luns WLUN is a violation of SAM ... however, if we really already have
broken SAS devices with this problem, then you're welcome to expand
scsi_scan_target() to cope.
WLUN support is really the only piece that scsi_scan_target() doesn't
currently possess and, as has been discussed before, that only really
matters if we get a target that's not going to respond to an INQUIRY on
LUN0 (I expect most of them, even if they have no LUN0 will respond with
PQ 3 to the inquiry and thus be caught by scsi_scan_target() anyway).
However, to add WLUN support to scsi_scan_target() looks pretty simple:
If the transport supports > 256 LUNs and the initial INQUIRY comes back
SCSI_SCAN_NO_RESPONSE then fire off a WLUN report lun scan anyway. By
all means, submit a patch to do this.
> P.S. REPORT LUNS is Mandatory as per SPC, so newer devices
> (SAS) support it. Furthermore if their LUs are sparse they
> (really) support REPORT LUNS.
Actually, it's optional per SPC; it's mandatory in SPC-2 but *only* if
your device is multi-LUN; and it finally became mandatory for everything
in SPC-3 (or I should say "becomes" since SPC-3 isn't ratified yet).
James
next prev parent reply other threads:[~2005-10-07 14:47 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-04 0:57 [PATCH] 3ware: use scsi_scan_target() Jeff Garzik
2005-10-05 16:28 ` Christoph Hellwig
2005-10-05 19:01 ` Luben Tuikov
2005-10-05 19:20 ` adam radford
2005-10-05 19:24 ` Jeff Garzik
2005-10-05 19:34 ` Jeff Garzik
2005-10-05 23:19 ` Luben Tuikov
2005-10-07 1:07 ` James Bottomley [this message]
2005-10-07 21:36 ` Luben Tuikov
2005-10-08 14:30 ` James Bottomley
2005-10-09 16:25 ` Luben Tuikov
2005-10-10 5:05 ` Mike Anderson
2005-10-14 16:19 ` Luben Tuikov
-- strict thread matches above, loose matches on Subject: below --
2005-10-06 13:13 James.Smart
2005-10-06 18:09 ` Luben Tuikov
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=1128647235.4623.28.camel@mulgrave \
--to=james.bottomley@steeleye.com \
--cc=hch@infradead.org \
--cc=jgarzik@pobox.com \
--cc=linux-scsi@vger.kernel.org \
--cc=linuxraid@amcc.com \
--cc=ltuikov@yahoo.com \
/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).