smp_utils: command line utilities for SAS expanders
Kenneth D. Merry
ken at freebsd.org
Thu Sep 8 22:30:55 UTC 2011
On Thu, Sep 08, 2011 at 11:50:19 -0400, Douglas Gilbert wrote:
> On 11-09-08 10:49 AM, Kenneth D. Merry wrote:
> >On Wed, Sep 07, 2011 at 11:19:59 -0700, Matthew Jacob wrote:
> >>
> >>>It'll get fixed when we add SMP probe code into CAM.
> >>
> >>ETA?
> >
> >Last year I would have said this year. Right now I'm not sure.
> >
> >It'll probably happen along with the multipathing work we're planning to do
> >for CAM, since our initial goal will be handling multiple paths in a SAS
> >topology.
> >
> >Our management is currently figuring out our priorties for the next set of
> >features they want. Once they figure that out I may have a better idea of
> >when it'll happen. I'm pretty sure multipathing won't be the next feature
> >we do, so my guess is that we wouldn't start on it until next year.
> >
> >If there are other folks who are interested in helping out so that the
> >multipathing work happens sooner, that might influence our time frame for
> >working on it to some extent.
> >
> >One short-term note -- I'm working on support for descriptor sense right
> >now. Seagate's new 3TB SAS drives return descriptor sense by default.
>
> If you are working on sense data then you might find the
> sg_decode_sense utility in the sg3_utils package useful.
> [BTW I have ported most of my packages to FreeBSD:
> sg3_utils, sdparm, smp_utils and ddpt.] Also the
> sg_lib_data.c file in the sg3_utils' lib directory contains
> an up to date list (in C) of asc/ascq strings.
Thanks!
> And then there is this nasty slipped into SAM-5 (sam5r07.pdf
> section 5.3.1): "Sense data may be delivered in the buffer
> defined by the Sense Data argument of the Execute Command
> procedure call (see 5.1) for ANY status code."
> The only example of this so far seems to be referrals (see
> sbc3r27.pdf section 4.26.4). Now a successful SCSI READ may
> return status=GOOD with sense data that contains
> sense_key=COMPLETED and the asc/ascq pair for "INSPECT
> REFERRALS SENSE DESCRIPTORS". I don't think Linux is even
> close to handling this new wrinkle.
That is very tricky. I guess it makes sense that they did that, but it
does change some long-held assumptions about when sense data is present.
FreeBSD won't look at the sense data either unless the status is CHECK
CONDITION. Although it wouldn't be too difficult to check in the
da(4) driver to see whether any sense data was reported, and collect any
referral information if necessary.
I'm guessing we'll wind up looking at the referrals at least when we do the
multipathing work. It'll be interesting to see what other ways they use
sense data later on.
Ken
--
Kenneth Merry
ken at FreeBSD.ORG
More information about the freebsd-scsi
mailing list