From owner-freebsd-scsi@FreeBSD.ORG Thu Sep 13 01:30:04 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 CF5EA106566B for ; Thu, 13 Sep 2012 01:30:04 +0000 (UTC) (envelope-from tim.ricker@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id A0C908FC08 for ; Thu, 13 Sep 2012 01:30:04 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so3461643pbb.13 for ; Wed, 12 Sep 2012 18:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=BE4yZh9f0T78eCoaJ7oPmoJURchI8fOh1cA7LjRh8IE=; b=nf+itI1gLi8gRMJDz1T5gjh+xrahHkrS2yQ2EbPZnw0axFwv9A/6BHMvVM34eHeZCw 6fgk6+Jb0fnhWeyfX/H/4Rqw6K3J+tMeiYX9mk4SnPTNS7eQvmbXreDqLTe6QK94AJ4P uOCikYahHJv93TISr6H2rxW4S6vGyoCaYPCVLZMeKuMgPCj6uMEWpnG4RtnmV+uCegE1 BfIhvkto6o7j7iuqa73b2Yw8m7V0NsDDqsZ+EJgF0QJySxwCS+OfUJSuoDfoSzYf2mor bwE9KKavtkjAzPEIh9R2RP3cekgOrPANnROn/g1DrWCbrKybNmaUwRcUAS+KmKiI23Rs iugQ== MIME-Version: 1.0 Received: by 10.68.190.8 with SMTP id gm8mr1937606pbc.74.1347499804188; Wed, 12 Sep 2012 18:30:04 -0700 (PDT) Received: by 10.68.36.4 with HTTP; Wed, 12 Sep 2012 18:30:04 -0700 (PDT) Date: Wed, 12 Sep 2012 19:30:04 -0600 Message-ID: From: Tim Ricker To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: smp_utils: command line utilities for SAS expanders X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2012 01:30:04 -0000 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 (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 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.