1.\" Copyright (c) 2000 Scott Long 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. 9.\" 2. Redistributions in binary form must reproduce the above copyright 10.\" notice, this list of conditions and the following disclaimer in the 11.\" documentation and/or other materials provided with the distribution. 12.\" 13.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" 25.\" $FreeBSD$ 26.Dd February 22, 2001 27.Dt AAC 4 28.Os 29.Sh NAME 30.Nm aac 31.Nd Adaptec AdvancedRAID Controller driver 32.Sh SYNOPSIS 33.Cd options AAC_COMPAT_LINUX 34.Cd options AAC_DEBUG=N 35.Cd device pci 36.Cd device aac 37.Sh DESCRIPTION 38The 39.Nm 40driver provides support for the Adaptec AAC family SCSI Ultra2 and Ultra160 41RAID controllers. 42These controllers support RAID 0, 1, 5, 10, and volume sets. 43They have four channels in the add-in version 44or 1-2 channels in the motherboard integrated version, 45and are most often found relabeled by Dell or Hewlett-Packard. 46Supported controllers include: 47.Bl -bullet 48.It 49AAC-364 50.It 51Adaptec SCSI RAID 5400S 52.It 53HP NetRAID 4M 54.It 55Dell PERC 2/Si 56.It 57Dell PERC 2/QC 58.It 59Dell PERC 3/Si 60.It 61Dell PERC 3/Di 62.Pp 63.El 64Access to RAID containers is available via the 65.Pa /dev/aacd? 66device nodes. 67Individual drives cannot be accessed 68unless they are part of a container or volume set, 69and non-fixed disks cannot be accessed. 70Containers can be configured by using 71either the on-board BIOS utility of the card, 72or a Linux-based management application. 73.Pp 74The 75.Pa /dev/aac? 76device nodes provide access to the management interface of the controller. 77One node exists per installed card. 78The aliases 79.Pa /dev/afa? 80and 81.Pa /dev/hpn? 82exist for the Dell and HP flavors, respectively, and are required for 83the CLI management utility available from these vendors to work. 84Compiling the driver with the 85.Dv AAC_COMPAT_LINUX 86option enables the Linux-compatible 87.Xr ioctl 2 88interface for the management device. 89.Ss Tuning 90The read-only sysctl 91.Va hw.aac.iosize_max 92defaults to 65536 and may be set at boot time to another value via 93.Xr loader 8 . 94This value determines the maximum data transfer size allowed 95to/from an array. 96Setting it higher will result in better performance, 97especially for large sequential access patterns. 98.Em Beware : 99internal limitations 100of the card limit this value to 64K for arrays with many members. 101While it may be safe to raise this value, this is done 102.Em at the operator's own risk . 103Note also that 104performance peaks at a value of 96K, 105and drops off dramatically at 128K, 106due to other limitations of the card. 107.Sh FILES 108.Bl -tag -width /boot/kernel/aac.ko -compact 109.It Pa /dev/aac? 110aac management interface 111.It Pa /dev/aacd? 112disk/container interface 113.It Pa /boot/kernel/aac.ko 114aac loadable module 115.El 116.Sh DIAGNOSTICS 117Compiling with 118.Dv AAC_DEBUG 119set to a number between 0 and 3 120will enable increasingly verbose debug messages. 121.Pp 122The adapter can send status and alert messages asynchronously 123to the driver. 124These messages are printed on the system console, 125and are also queued for retrieval by a management application. 126.Sh SEE ALSO 127.Xr kld 4 , 128.Xr linux 4 , 129.Xr kldload 8 , 130.Xr loader 8 , 131.Xr sysctl 8 132.Sh HISTORY 133The 134.Nm 135driver first appeared in 136.Fx 4.3 . 137.Sh AUTHORS 138.An Mike Smith 139.Aq msmith@FreeBSD.org 140.An Scott Long 141.Aq scottl@FreeBSD.org 142.Sh BUGS 143This driver is not compatible with controllers that have version 1.x firmware. 144The firmware version is the same as the kernel version printed in the BIOS 145POST and driver attach messages. 146.Pp 147This driver will not work on systems with more than 4GB of memory. 148.Pp 149The controller is not actually paused on suspend/resume. 150.Pp 151Unloading driver is not supported at this time. 152.Pp 153