kernel/twa: Sync a bit with FreeBSD.
[dragonfly.git] / share / man / man4 / twa.4
1 .\"
2 .\" Copyright (c) 2004 3ware, Inc.
3 .\" Copyright (c) 2000 BSDi
4 .\" All rights reserved.
5 .\"
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
8 .\" are met:
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\"    notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\"    notice, this list of conditions and the following disclaimer in the
13 .\"    documentation and/or other materials provided with the distribution.
14 .\"
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 .\"
26 .\" $FreeBSD: head/share/man/man4/twa.4 208027 2010-05-13 12:07:55Z uqs $
27 .\"
28 .Dd July 8, 2012
29 .Dt TWA 4
30 .Os
31 .Sh NAME
32 .Nm twa
33 .Nd 3ware 9000/9500/9550/9650 series SATA RAID controllers driver
34 .Sh SYNOPSIS
35 To compile this driver into the kernel,
36 place the following lines in your
37 kernel configuration file:
38 .Bd -ragged -offset indent
39 .Cd "device scbus"
40 .Cd "device twa"
41 .Ed
42 .Pp
43 Alternatively, to load the driver as a
44 module at boot time, place the following line in
45 .Xr loader.conf 5 :
46 .Bd -literal -offset indent
47 twa_load="YES"
48 .Ed
49 .Sh DESCRIPTION
50 The
51 .Nm
52 driver provides support for AMCC's 3ware 9000/9500/9550/9650 series
53 SATA controllers.
54 .Pp
55 These controllers are available in 4, 8, 12 or 16-port configurations,
56 and support the following RAID levels: 0, 1, 10, 5, 50.
57 The device nodes for the controllers are of the form
58 .Pa /dev/twa Ns Ar X ,
59 where
60 .Ar X
61 is the controller number.
62 The driver is implemented as a SCSI SIM
63 under CAM, and, as such, the logical units that it controls are accessible
64 via the device nodes,
65 .Pa /dev/da Ns Ar Y ,
66 where
67 .Ar Y
68 is the logical unit number.
69 .Sh LOADER TUNABLES
70 .Bl -tag -width indent
71 .It Va hw.twa.msi.enable
72 To use MSI (if supported), set this tunable to 1.
73 The default is 0.
74 .El
75 .Sh HARDWARE
76 The
77 .Nm
78 driver supports the following SATA RAID controllers:
79 .Pp
80 .Bl -bullet -compact
81 .It
82 AMCC's 3ware 9500S-4LP
83 .It
84 AMCC's 3ware 9500S-8
85 .It
86 AMCC's 3ware 9500S-8MI
87 .It
88 AMCC's 3ware 9500S-12
89 .It
90 AMCC's 3ware 9500S-12MI
91 .It
92 AMCC's 3ware 9500SX-4LP
93 .It
94 AMCC's 3ware 9500SX-8LP
95 .It
96 AMCC's 3ware 9500SX-12
97 .It
98 AMCC's 3ware 9500SX-12MI
99 .It
100 AMCC's 3ware 9500SX-16ML
101 .It
102 AMCC's 3ware 9550SX-4LP
103 .It
104 AMCC's 3ware 9550SX-8LP
105 .It
106 AMCC's 3ware 9550SX-12
107 .It
108 AMCC's 3ware 9550SX-12MI
109 .It
110 AMCC's 3ware 9550SX-16ML
111 .It
112 AMCC's 3ware 9650SE-2LP
113 .It
114 AMCC's 3ware 9650SE-4LPML
115 .It
116 AMCC's 3ware 9650SE-8LPML
117 .It
118 AMCC's 3ware 9650SE-12ML
119 .It
120 AMCC's 3ware 9650SE-16ML
121 .It
122 AMCC's 3ware 9650SE-24M8
123 .El
124 .Sh DIAGNOSTICS
125 Whenever the driver encounters a command failure, it prints out an error code in
126 the format:
127 .Qq Li "ERROR: (<error source>: <error code>):" ,
128 followed by a text description of the error.
129 There are other error messages and warnings that the
130 driver prints out, depending on the kinds of errors that it encounters.
131 If the driver is compiled with
132 .Dv TWA_DEBUG
133 defined, it prints out a whole bunch of debug
134 messages, the quantity of which varies depending on the value assigned to
135 .Dv TWA_DEBUG
136 (0 to 10).
137 .Sh SEE ALSO
138 .Xr da 4 ,
139 .Xr twe 4 ,
140 .Xr tws 4
141 .Sh AUTHORS
142 The
143 .Nm
144 driver and manpage were written by
145 .An Vinod Kashyap Aq Mt vkashyap@FreeBSD.org .