From owner-cvs-src@FreeBSD.ORG Fri Apr 16 16:00:02 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96E4516A4CE; Fri, 16 Apr 2004 16:00:02 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 937C143D48; Fri, 16 Apr 2004 16:00:02 -0700 (PDT) (envelope-from ps@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i3GN02Ge078146; Fri, 16 Apr 2004 16:00:02 -0700 (PDT) (envelope-from ps@repoman.freebsd.org) Received: (from ps@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i3GN02gg078145; Fri, 16 Apr 2004 16:00:02 -0700 (PDT) (envelope-from ps) Message-Id: <200404162300.i3GN02gg078145@repoman.freebsd.org> From: Paul Saab Date: Fri, 16 Apr 2004 16:00:02 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/ciss ciss.c cissreg.h cissvar.h src/share/man/man4 ciss.4 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2004 23:00:02 -0000 ps 2004/04/16 16:00:02 PDT FreeBSD src repository Modified files: sys/dev/ciss ciss.c cissreg.h cissvar.h share/man/man4 ciss.4 Log: Add support for the HP Modular Smart Array 20 & 500 storage arrays. Logical volumes on these devices show up as LUNs behind another controller (also known as proxy controller). In order to issue firmware commands for a volume on a proxy controller, they must be targeted at the address of the proxy controller it is attached to, not the Host/PCI controller. A proxy controller is defined as a device listed in the INQUIRY PHYSICAL LUNS command who's L2 and L3 SCSI addresses are zero. The corresponding address returned defines which "bus" the controller lives on and we use this to create a virtual CAM bus. A logical volume's addresses first byte defines the logical drive number. The second byte defines the bus that it is attached to which corresponds to the BUS of the proxy controller's found or the Host/PCI controller. Change event notification to be handled in its own kernel thread. This is needed since some events may require the driver to sleep on some operations and this cannot be done during interrupt context. With this change, it is now possible to create and destroy logical volumes from FreeBSD, but it requires a native application to construct the proper firmware commands which is not publicly available. Special thanks to John Cagle @ HP for providing remote access to all the hardware and beating on the storage engineers at HP to answer my questions. Revision Changes Path 1.6 +4 -0 src/share/man/man4/ciss.4 1.41 +435 -124 src/sys/dev/ciss/ciss.c 1.7 +9 -0 src/sys/dev/ciss/cissreg.h 1.7 +18 -14 src/sys/dev/ciss/cissvar.h