From owner-freebsd-scsi@FreeBSD.ORG Fri Jan 26 00:54:05 2007 Return-Path: X-Original-To: freebsd-scsi@freebsd.org 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 08D5416A401 for ; Fri, 26 Jan 2007 00:54:05 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Received: from mail.ambrisko.com (mail.ambrisko.com [64.174.51.43]) by mx1.freebsd.org (Postfix) with ESMTP id D946913C448 for ; Fri, 26 Jan 2007 00:54:04 +0000 (UTC) (envelope-from ambrisko@ambrisko.com) Received: from server2.ambrisko.com (HELO www.ambrisko.com) ([192.168.1.2]) by mail.ambrisko.com with ESMTP; 25 Jan 2007 16:22:02 -0800 Received: from ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.13.1/8.12.11) with ESMTP id l0Q0PICb071209; Thu, 25 Jan 2007 16:25:18 -0800 (PST) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.13.1/8.13.1/Submit) id l0Q0PD0M071203; Thu, 25 Jan 2007 16:25:13 -0800 (PST) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200701260025.l0Q0PD0M071203@ambrisko.com> In-Reply-To: <046601c73f04$1a8a5180$8adb7bd1@icarz.com> To: Ken Menzel Date: Thu, 25 Jan 2007 16:25:13 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Cc: freebsd-scsi@freebsd.org Subject: Re: mfistat utility for LSI SAS controller 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: Fri, 26 Jan 2007 00:54:05 -0000 Ken Menzel writes: | Would anyone be working on an mfistat utility similar to the amrstat | utility for LSI Megaraid SAS controllers? If not does anyone have | advice on how a competent C programmer might go about creating one? There have been things done but can't be public due to NDA's. However, I'd suggest looking at the structures and code in /sys/dev/mfi for some hints. Not all of the DCMD's are there to do everything and which structures they need to use. So to do everything is going to be hard. The Linux MegaCli does some things but I found some feature don't work like creating and deleting a RAID. There is also an issue that the FreeBSD driver doesn't have support handle this nicely yet. There are some ideas on how to do this and it isn't very difficult. In theory with the Linux 2.6 emulation work we might be able to run more of the Linux tools. There are some loose end WRT signal notification of AEN's to the user-land that the Linux driver provides. Doug A.