From owner-freebsd-scsi@FreeBSD.ORG Thu Sep 13 13:04:29 2012 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A759E1065670 for ; Thu, 13 Sep 2012 13:04:29 +0000 (UTC) (envelope-from dgilbert@interlog.com) Received: from smtp.infotech.no (smtp.infotech.no [82.134.31.41]) by mx1.freebsd.org (Postfix) with ESMTP id 32C128FC0C for ; Thu, 13 Sep 2012 13:04:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.infotech.no (Postfix) with ESMTP id E5CD12041B0; Thu, 13 Sep 2012 14:55:27 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.6 (20110518) (Debian) at infotech.no Received: from smtp.infotech.no ([127.0.0.1]) by localhost (smtp.infotech.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zEip1YxTPTWY; Thu, 13 Sep 2012 14:55:27 +0200 (CEST) Received: from [82.134.31.171] (unknown [82.134.31.171]) by smtp.infotech.no (Postfix) with ESMTPA id 9E57020416A; Thu, 13 Sep 2012 14:55:27 +0200 (CEST) Message-ID: <5051D7BF.3090809@interlog.com> Date: Thu, 13 Sep 2012 14:55:27 +0200 From: Douglas Gilbert User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Tim Ricker References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-scsi@freebsd.org Subject: Re: smp_utils: command line utilities for SAS expanders X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dgilbert@interlog.com List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2012 13:04:29 -0000 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 (da114,pass120) > 13 0x50030480015c85ed (da115,pass121) > 14 0x50030480015c85ee (da116,pass122) > 15 0x50030480015c85ef (da117,pass123) > 16 0x50030480015c85f0 (da118,pass124) > 17 0x50030480015c85f1 (da119,pass125) > 18 0x50030480015c85f2 (da120,pass126) > 19 0x50030480015c85f3 (da121,pass127) > 20 0x50030480015c85f4 (da122,pass128) > 21 0x50030480015c85f5 (da123,pass129) > 22 0x50030480015c85f6 (da124,pass130) > 23 0x50030480015c85f7 (da125,pass131) > 28 0x50030480015c85fd (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.