xref: /freebsd/share/man/man4/aac.4 (revision f9218d3d4fd34f082473b3a021c6d4d109fb47cf)
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_DEBUG=N
34.Cd device pci
35.Cd device aac
36.Cd device aacp
37.Sh DESCRIPTION
38The
39.Nm
40driver provides support for the Adaptec AAC family of SCSI Ultra2, Ultra160,
41and Ultra320 RAID controllers.
42Supported controllers include:
43.Bl -bullet
44.It
45AAC-364
46.It
47Adaptec SCSI RAID 2120S
48.It
49Adaptec SCSI RAID 2200S
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 command-line interface 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.
84If the kernel is compiled with the
85.Dv COMPAT_LINUX
86option, or the
87.Pa aac_linux.ko
88and
89.Pa linux.ko
90modules are loaded, the
91Linux-compatible
92.Xr ioctl 2
93interface for the management device will be enabled and will allow
94Linux-based management applications to control the card.
95.Pp
96The
97.Nm aacp
98device enables the SCSI pass-thru interface and allows devices connected
99to the card such as cdroms to be available via the CAM
100.Xr scsi 4
101subsystem.  Note that not all cards allow this interface to be enabled.
102.Ss Tuning
103The read-only sysctl
104.Va hw.aac.iosize_max
105defaults to 65536 and may be set at boot time to another value via
106.Xr loader 8 .
107This value determines the maximum data transfer size allowed
108to/from an array.
109Setting it higher will result in better performance,
110especially for large sequential access patterns.
111.Em Beware :
112internal limitations
113of the card limit this value to 64K for arrays with many members.
114While it may be safe to raise this value, this is done
115.Em at the operator's own risk .
116Note also that
117performance peaks at a value of 96K,
118and drops off dramatically at 128K,
119due to other limitations of the card.
120.Sh FILES
121.Bl -tag -width /boot/kernel/aac.ko -compact
122.It Pa /dev/aac?
123aac management interface
124.It Pa /dev/aacd?
125disk/container interface
126.It Pa /boot/kernel/aac.ko
127aac loadable module
128.El
129.Sh DIAGNOSTICS
130Compiling with
131.Dv AAC_DEBUG
132set to a number between 0 and 3
133will enable increasingly verbose debug messages.
134.Pp
135The adapter can send status and alert messages asynchronously
136to the driver.
137These messages are printed on the system console,
138and are also queued for retrieval by a management application.
139.Sh SEE ALSO
140.Xr kld 4 ,
141.Xr linux 4 ,
142.Xr scsi 4 ,
143.Xr kldload 8 ,
144.Xr loader 8 ,
145.Xr sysctl 8
146.Sh HISTORY
147The
148.Nm
149driver first appeared in
150.Fx 4.3 .
151.Sh AUTHORS
152.An Mike Smith
153.Aq msmith@FreeBSD.org
154.An Scott Long
155.Aq scottl@FreeBSD.org
156.Sh BUGS
157This driver is not compatible with Dell controllers that have version 1.x
158firmware.
159The firmware version is the same as the kernel version printed in the BIOS
160POST and driver attach messages.
161.Pp
162The controller is not actually paused on suspend/resume.
163.Pp
164