smp_utils: command line utilities for SAS expanders
Douglas Gilbert
dgilbert at interlog.com
Thu Sep 13 13:04:29 UTC 2012
On 12-09-13 03:30 AM, Tim Ricker wrote:
> Ken,
>
> Will you show output of “./smp_read_sgpio /dev/da5” ?
> At least, an output that I can see the gpio read.
>
> First I wanted to see if I could get similar to what you gave on the
> mailing list. I did.
>
> $ sudo smp_discover ses5 -b
> phy 0:S:attached:[500605b003fb1210:07 i(SSP+STP+SMP)]
> phy 1:S:attached:[500605b003fb1210:06 i(SSP+STP+SMP)]
> phy 2:S:attached:[500605b003fb1210:05 i(SSP+STP+SMP)]
> phy 3:S:attached:[500605b003fb1210:04 i(SSP+STP+SMP)]
> phy 12:T:attached:[50030480015c85ec:00 t(SATA)]
> phy 13:T:attached:[50030480015c85ed:00 t(SATA)]
> phy 14:T:attached:[50030480015c85ee:00 t(SATA)]
> phy 15:T:attached:[50030480015c85ef:00 t(SATA)]
> phy 16:T:attached:[50030480015c85f0:00 t(SATA)]
> phy 17:T:attached:[50030480015c85f1:00 t(SATA)]
> phy 18:T:attached:[50030480015c85f2:00 t(SATA)]
> phy 19:T:attached:[50030480015c85f3:00 t(SATA)]
> phy 20:T:attached:[50030480015c85f4:00 t(SATA)]
> phy 21:T:attached:[50030480015c85f5:00 t(SATA)]
> phy 22:T:attached:[50030480015c85f6:00 t(SATA)]
> phy 23:T:attached:[50030480015c85f7:00 t(SATA)]
> phy 28:D:attached:[50030480015c85fd:00 V i(SSP+SMP) t(SSP)]
>
> Second, pick a device number.
>
> $ sudo camcontrol smpphylist ses5 -q
> 12 0x50030480015c85ec <ATA ST33000650NS 0004> (da114,pass120)
> 13 0x50030480015c85ed <ATA ST33000650NS 0004> (da115,pass121)
> 14 0x50030480015c85ee <ATA ST33000650NS 0004> (da116,pass122)
> 15 0x50030480015c85ef <ATA ST33000650NS 0004> (da117,pass123)
> 16 0x50030480015c85f0 <ATA ST33000650NS 0004> (da118,pass124)
> 17 0x50030480015c85f1 <ATA ST33000650NS 0004> (da119,pass125)
> 18 0x50030480015c85f2 <ATA ST33000650NS 0004> (da120,pass126)
> 19 0x50030480015c85f3 <ATA ST33000650NS 0004> (da121,pass127)
> 20 0x50030480015c85f4 <ATA ST33000650NS 0004> (da122,pass128)
> 21 0x50030480015c85f5 <ATA ST33000650NS 0004> (da123,pass129)
> 22 0x50030480015c85f6 <ATA ST33000650NS 0004> (da124,pass130)
> 23 0x50030480015c85f7 <ATA ST33000650NS 0004> (da125,pass131)
> 28 0x50030480015c85fd <LSI CORP SAS2X28 0717> (ses5,pass132)
>
> Next, I tried reading gpio.
>
> $ sudo smp_read_gpio da114 -vH
> Read GPIO register request: 40 02 00 00 01 00 00 00 00 00 00 00
> 00 41 02 01 00 00 00 00 00
> Exit status 1 indicates error detected
Tim,
I'm the author of smp_utils. Could you add a few more
'-v' options (e.g. '-vvvH' instead of '-vH' in the above
invocation) so we can see what error was detected.
Doug Gilbert
> And, for the fun of it.
>
> $ sudo smp_read_gpio ses5 -vH
> Read GPIO register request: 40 02 00 00 01 00 00 00 00 00 00 00
> 00 41 02 01 00 00 00 00 00
> Exit status 1 indicates error detected
>
> ~ Tim R.
More information about the freebsd-scsi
mailing list