From owner-freebsd-scsi@FreeBSD.ORG Tue Sep 25 01:01:35 2012 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E197106564A for ; Tue, 25 Sep 2012 01:01:35 +0000 (UTC) (envelope-from jim.harris@gmail.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1303D8FC12 for ; Tue, 25 Sep 2012 01:01:34 +0000 (UTC) Received: by vcbfw7 with SMTP id fw7so9005024vcb.13 for ; Mon, 24 Sep 2012 18:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=X64qbpR1XJMPg+aoUN0nqZuNx7qjrtkOtPg5oRpD/Vw=; b=I6mCnzfONZuCu20g7BBH8HwxYBDyh2YWrbc5fAA4N/E9ctqebnhQHSWvNa10yvdNBw Zx0I37JzKVHCwweKBM/1MBjBNCvPb/r6IxMbRIXDM1eBrSFmXJ51oeIezoQrsUbrDTpm tW5ASLkMmm8ZvWzg4tUrCy7XRCbjw+SpfqZrJCounbDcLuzrLOKdvFyWHec0g0XNJIdc JG/IqrG4rDhUzMdiAvYsooaI1b/+Wp9Qm/PwkKv5OLhoKvZqzvB9RA7xHQq9pc8WMw3t BX7GM7KXfu+0nT/oIm0xk71ikS1ALlk59uyPILx28AQj3ZR6ucWMYm0a7eoxl3/zvSQp PXMQ== MIME-Version: 1.0 Received: by 10.220.154.2 with SMTP id m2mr8430511vcw.18.1348534894143; Mon, 24 Sep 2012 18:01:34 -0700 (PDT) Sender: jim.harris@gmail.com Received: by 10.59.10.98 with HTTP; Mon, 24 Sep 2012 18:01:34 -0700 (PDT) In-Reply-To: <20120923140816.144270@gmx.net> References: <20120923140816.144270@gmx.net> Date: Mon, 24 Sep 2012 18:01:34 -0700 X-Google-Sender-Auth: _JUey3_iAnvV7jjwPYe9lP6qPB4 Message-ID: From: Jim Harris To: Paul Maulberger Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-scsi@freebsd.org Subject: Re: Intel C600 SAS Controller + locate LED (SGPIO) 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: Tue, 25 Sep 2012 01:01:35 -0000 On Sun, Sep 23, 2012 at 7:08 AM, Paul Maulberger w= rote: > Hi Folks, > > I like to manipulate the eight locate LED's of my internal enclosure. The= following hardware is used: > > Mainboard: Supermicro X9DRi-F > http://www.supermicro.com/products/motherboard/xeon/c600/x9dri-f.cfm > > Chassis: SC825TQ-R740LPB > http://www.supermicro.com/products/chassis/2U/825/SC825TQ-R740LP.cfm > > Cable from Intel C602 SAS controller to backplane: > SFF-8087 to 4xSATA cable with 8-pin SGPIO connector > > The backplane of the chassis has the MagaRAC MG9072 chip from AMI and is = configured for SGPIO. > > I'm using FreeBSD 9.1 RC1. > > FreeBSD has a led driver to manipulate LED's: > http://www.freebsd.org/cgi/man.cgi?query=3Dled > > # ls -al /dev/led > total 1 > dr-xr-xr-x 2 root wheel 512 Sep 23 09:42 . > dr-xr-xr-x 10 root wheel 512 Sep 23 09:42 .. > crw------- 1 root wheel 0, 40 Sep 23 09:42 ahcich0.fault > crw------- 1 root wheel 0, 39 Sep 23 09:42 ahcich0.locate > crw------- 1 root wheel 0, 42 Sep 23 09:42 ahcich1.fault > crw------- 1 root wheel 0, 41 Sep 23 09:42 ahcich1.locate > crw------- 1 root wheel 0, 44 Sep 23 09:42 ahcich2.fault > crw------- 1 root wheel 0, 43 Sep 23 09:42 ahcich2.locate > crw------- 1 root wheel 0, 46 Sep 23 09:42 ahcich3.fault > crw------- 1 root wheel 0, 45 Sep 23 09:42 ahcich3.locate > crw------- 1 root wheel 0, 48 Sep 23 09:42 ahcich4.fault > crw------- 1 root wheel 0, 47 Sep 23 09:42 ahcich4.locate > crw------- 1 root wheel 0, 50 Sep 23 09:42 ahcich5.fault > crw------- 1 root wheel 0, 49 Sep 23 09:42 ahcich5.locate > crw------- 1 root wheel 0, 37 Sep 23 09:42 igb0 > crw------- 1 root wheel 0, 38 Sep 23 09:42 igb1 > > Unfortunately there are no "C600" led devices. > > I found the functions 'scic_sgpio_*' in the file 'sys/dev/isci/scil/scic_= sgpio.h'. The function 'scic_sgpio_hardware_initialize' is called in the fi= le 'sys/dev/isci/scil/scic_sds_controller.c'. Although there is no call to = 'scic_sgpio_set_led_state' or 'scic_sgpio_update_led_state' in the whole so= urces (/usr/src). > > Can somebody give me a hint how to manipulate the LED's? There's no way to manipulate the LEDs on the system as you have it. LED support is not in the current isci driver. But can you try this patch? http://people.freebsd.org/~jimharris/isci_led.patch The LEDs will show up as /dev/led/isci.busX.portY. On C60x SKUs with 8 isci ports (which I think yours has), the isci driver will create 2 buses of 4 ports each (to match the underlying silicon implementation), hence the need to use bus and port numbers in the name, rather than just port. Regards, -Jim > Regards > Paul > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org"