Date: Wed, 12 Sep 2012 19:30:04 -0600 From: Tim Ricker <tim.ricker@gmail.com> To: freebsd-scsi@freebsd.org Subject: smp_utils: command line utilities for SAS expanders Message-ID: <CAJZ8A55mYOVFwnuPf8WbNscTbOuFopv0r9kRQ8B0Uvf4uE%2BB7g@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Ken, Will you show output of =93./smp_read_sgpio /dev/da5=94 ? 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 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJZ8A55mYOVFwnuPf8WbNscTbOuFopv0r9kRQ8B0Uvf4uE%2BB7g>