From: "Pasi Kärkkäinen" <pasik@iki.fi>
To: Rich <rercola@pha.jhu.edu>
Cc: Harri Olin <harri.olin@gmail.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: Odd behavior of a "SAS-2" backplane with SGPIO commands
Date: Sun, 19 Aug 2012 17:06:03 +0300 [thread overview]
Message-ID: <20120819140603.GS19851@reaktio.net> (raw)
In-Reply-To: <CAOeNLuoVQg+3KhjfEn2KMsUpfe3H2rjqkinhC-igMpZBJRBD3Q@mail.gmail.com>
On Sun, Aug 19, 2012 at 10:01:08AM -0400, Rich wrote:
> My short example would be something like the original message, but In
> brief, pages 27-28 of SFF-8485 [tables 24-27, in section 8.4.4 "GPIO
> transmit registers"] have what you want - I could reproduce the table
> here, but that'd be convoluted to do in text. :)
>
Yep :)
>
> With two LSI 9201-16i HBA attached, manipulating it via
> /dev/bsg/sas_hostN and smp_utils 0.97, SFF-8485 section 8.4.4 seems to
> think that changing this:
> 00 41 02 00 00 a0 a0 a0 a0 a0 a0 a0 a0 a0 a0 a0 a0
> 10 a0 a0 a0 a0 00 00 00 00 00 00 00 00 00 00 00 00
> 20 00 00 00 00
>
> By doing this:
> # smp_write_gpio -d a1,a0,a0,a0 -t 3 -i 0 -c /dev/bsg/sas_hostN
>
> Resulting in:
> 00 41 02 00 00 a1 a0 a0 a0 a0 a0 a0 a0 a0 a0 a0 a0
> 10 a0 a0 a0 a0 00 00 00 00 00 00 00 00 00 00 00 00
> 20 00 00 00 00
>
> Should enable a single drive's fault LED (drive m+3, by spec above).
>
Great, thanks a lot!
Also let us know when you hear back from Supermicro/LSI ..
-- Pasi
> - Rich
>
> On Sun, Aug 19, 2012 at 9:56 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote:
> > On Sun, Aug 19, 2012 at 09:47:17AM -0400, Rich wrote:
> >> I've got open discussions with both Supermicro and LSI at the moment,
> >> and have shipped one of them a backplane and HBA to demonstrate this
> >> since they couldn't replicate it easily in-house.
> >>
> >
> > Cool! Let's hope they'll be able to fix it..
> >
> >> I also wouldn't claim SGPIO is "disabled" on any of these cards - any
> >> of the RAID cards don't expose the virtual SMP port, but said blinking
> >> works fine through LSI's magic binary blob MegaCLI. And with the
> >> 9211-8i and other SAS2008 HBAs (9201-16i being the one I have a lot
> >> of), it works great on any expander I've tried, but on the passive
> >> backplanes in these, the behavior is as I described - blinking one LED
> >> per SAS port plugged from a given HBA into the backplane. [...which is
> >> even more fascinating the more you think about it, since that means
> >> that the behavior easily straddles multiple passive management chips,
> >> which looks more like an HBA-end problem...]
> >>
> >
> > Yep..
> >
> > btw do you have example commands/scripts/tools for SGPIO LED control?
> > I should be able to try this stuff in a couple of days..
> >
> > Otherwise I'll try reading the SFF-8485/SGPIO spec and play with smp_write_gpio/smp_read_gpio :)
> >
> > Thanks,
> >
> > -- Pasi
> >
> >
> >> - Rich
> >>
> >> On Sun, Aug 19, 2012 at 9:13 AM, Pasi Kärkkäinen <pasik@iki.fi> wrote:
> >> > On Sun, Aug 19, 2012 at 03:50:00PM +0300, Harri Olin wrote:
> >> >> On 19.8.2012 13:25, Pasi Kärkkäinen wrote:
> >> >> >>To be brief, the sas2ircu toolset works perfectly fine with IT mode
> >> >> >>HBAs - just not with passive backplanes AFAICS [e.g. the 846A, versus
> >> >> >>the 846EL2].
> >> >> >Ok. So with an expander backplane (846EL*) with SES, sas2ircu is able to control leds?
> >> >> >"LOCATE" command works? I haven't been able to try those commands with SES backplanes
> >> >> >because in these systems I've been trying to avoid expanders :)
> >> >>
> >> >> I think SGPIO control is disabled intentionally on LSI 9211-8i
> >> >> firmware, maybe others. When using expander, the expander controls
> >> >> LED's and SGPIO control lines from HBA are unused.
> >> >>
> >> >
> >> > Yep. The good news is that Rich has been able to control the SM passive backplane
> >> > (with AMI MG9072 SGPIO chip) LEDs using SPGIO thru LSI SAS2008 HBAs from Linux,
> >> > using smp_utils tools. Those tools directly send SGPIO commands using mptctl/mpt2ctl interface.
> >> >
> >> > The only problem Rich had is with 9211-8i HBAs.. 3 LEDs light up simultanously,
> >> > which sounds like a firmware/driver bug somewhere..
> >> >
> >> > With SAS2308 based HBAs it works properly with the same Supermicro passive backplane,
> >> > and he has been able to control invidual LEDS thru SGPIO using smp_utils,
> >> > If I understood the earlier discussion correctly.
> >> >
> >> >
> >> >> The thing is, on 9211-8i and 9240 and probably others, multilane
> >> >> connectors are wired backwards so that if you connect a normal
> >> >> ipass-ipass cable, backplane slots will appear in backwards order to
> >> >> the system. Firmware knows this and slot numbers will appear to be
> >> >> correct when checking serial numbers etc from bios or with sas2ircu,
> >> >> but I suspect this is related to SGPIO not working.
> >> >>
> >> >
> >> > Yeah, that's really annoying..
> >> >
> >> > I wonder if option "phyPolarity" (mentioned here: http://www.xtremesystems.org/forums/archive/index.php/t-271922.html)
> >> > affects that ?
> >> >
> >> > .. or the "Lane and polarity reversal" feature advertised for LSI SAS2308 based HBAs ?
> >> > http://www.servethehome.com/lsi-sas-2308-raid-controller-hba-information-listing/
> >> >
> >> >
> >> >> You can get the SGPIO working (using sas2ircu) with
> >> >> Supermicro-supplied SAS2008 firmware from
> >> >> ftp://ftp.supermicro.com/driver/SAS/LSI/2008/IT/Firmware/ but as
> >> >> Supermicro SAS2008 HBA's (AOC-USAS2-L8i) use correct lane order on
> >> >> multilane connector, SGPIO-controlled LOCATE LED will point to wrong
> >> >> slot if not used with Supermicro card. Note that Supermicro
> >> >> backplanes will not light the LED if no HDD is in slot.
> >> >>
> >> >
> >> > Yep..
> >> >
> >> >> Tested mainly with Supermicro 846A backplane I think.
> >> >>
> >> >> I think I still have a support request open with LSI but haven't
> >> >> heart back for a long time about this issue..
> >> >>
> >> >
> >> > Me too, they replied once asking what kind of SAS x4 cable I was using,
> >> > but no replies after that.. I've been pinging them quite a few times,
> >> > but it seems they've redirected me to /dev/null.
> >> >
> >> >> Also I haven't yet tested the new SAS2308 based cards, great if
> >> >> finally fixed but I kind of doubt it before I see it :)
> >> >>
> >> >
> >> > Hehe :)
> >> >
> >> > Thanks,
> >> >
> >> > -- Pasi
> >> >
--
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:[~2012-08-19 14:06 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-04 1:54 Odd behavior of a "SAS-2" backplane with SGPIO commands Rich
2012-08-18 23:52 ` Pasi Kärkkäinen
2012-08-19 0:10 ` Rich
2012-08-19 10:25 ` Pasi Kärkkäinen
2012-08-19 12:50 ` Harri Olin
2012-08-19 13:13 ` Pasi Kärkkäinen
2012-08-19 13:47 ` Rich
2012-08-19 13:56 ` Pasi Kärkkäinen
2012-08-19 14:01 ` Rich
2012-08-19 14:06 ` Pasi Kärkkäinen [this message]
2012-09-10 13:47 ` Pasi Kärkkäinen
2012-09-10 16:01 ` Emmanuel Florac
2012-09-10 16:04 ` Pasi Kärkkäinen
2012-09-10 16:07 ` Rich
2012-09-10 16:13 ` Pasi Kärkkäinen
2012-09-10 16:14 ` Rich
2012-09-10 16:25 ` Pasi Kärkkäinen
2012-10-21 12:46 ` Pasi Kärkkäinen
2012-11-01 15:55 ` Rich
2012-11-01 16:04 ` Pasi Kärkkäinen
2012-12-07 13:46 ` Pasi Kärkkäinen
[not found] ` <CAOeNLuroRgZUvFWYTx7yr5ERtEpjiOwQgcy4COCLsm7Z9wWaKw@mail.gmail.com>
2012-12-19 19:40 ` Pasi Kärkkäinen
[not found] ` <CAOeNLuqVPQTsBs1eoizHBcEVbGgLrQOQBxqkV38cGwyKS4UTNA@mail.gmail.com>
2012-12-19 19:41 ` Pasi Kärkkäinen
2013-04-23 0:19 ` Pasi Kärkkäinen
[not found] ` <CAOeNLuo+Pti7LfshpOuzDSwWzdtXw0Ouph7ZAoJ9i7CyaUXiAA@mail.gmail.com>
2013-04-23 0:39 ` Pasi Kärkkäinen
[not found] ` <CAOeNLuqnX9r-jrmq0kV1=kU3XOzFEttDQktcD5338BzaBX3KHg@mail.gmail.com>
2013-08-30 21:42 ` Rich
2013-09-01 17:13 ` Pasi Kärkkäinen
2013-09-02 14:44 ` Pasi Kärkkäinen
2013-10-03 19:11 ` Pasi Kärkkäinen
2013-10-03 20:07 ` Rich
2013-10-03 20:16 ` Pasi Kärkkäinen
2013-10-04 0:07 ` Douglas Gilbert
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=20120819140603.GS19851@reaktio.net \
--to=pasik@iki.fi \
--cc=harri.olin@gmail.com \
--cc=linux-scsi@vger.kernel.org \
--cc=rercola@pha.jhu.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.