From owner-freebsd-scsi@FreeBSD.ORG Sun Sep 23 14:08:20 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 261C71065670 for ; Sun, 23 Sep 2012 14:08:20 +0000 (UTC) (envelope-from Paul.Maulberger@gmx.de) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mx1.freebsd.org (Postfix) with SMTP id 8C3DA8FC0C for ; Sun, 23 Sep 2012 14:08:19 +0000 (UTC) Received: (qmail 25909 invoked by uid 0); 23 Sep 2012 14:08:18 -0000 Received: from 31.17.21.234 by www008.gmx.net with HTTP; Sun, 23 Sep 2012 16:08:16 +0200 (CEST) Content-Type: text/plain; charset="utf-8" Date: Sun, 23 Sep 2012 16:08:16 +0200 From: "Paul Maulberger" Message-ID: <20120923140816.144270@gmx.net> MIME-Version: 1.0 To: freebsd-scsi@freebsd.org X-Authenticated: #143783428 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX19MPONJ771M8MYKV7dOrRyauP6B2WsNfO38tpuDPW 3iVN21BiOWUFwrQETBmm4Lo6Q2KkMaMFxlVQ== Content-Transfer-Encoding: 8bit X-GMX-UID: h3ItcD9ZeSEqUGWV+nwhCpB+IGRvb4AW Subject: 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: Sun, 23 Sep 2012 14:08:20 -0000 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=led # 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 file '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 sources (/usr/src). Can somebody give me a hint how to manipulate the LED's? Regards Paul