]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - share/man/man4/ahci.4
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / share / man / man4 / ahci.4
1 .\" Copyright (c) 2009 Alexander Motin <mav@FreeBSD.org>
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 .\"
27 .Dd June 18, 2012
28 .Dt AHCI 4
29 .Os
30 .Sh NAME
31 .Nm ahci
32 .Nd Serial ATA Advanced Host Controller Interface driver
33 .Sh SYNOPSIS
34 To compile this driver into the kernel,
35 place the following lines in your
36 kernel configuration file:
37 .Bd -ragged -offset indent
38 .Cd "device pci"
39 .Cd "device scbus"
40 .Cd "device ahci"
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 ahci_load="YES"
48 .Ed
49 .Pp
50 The following tunables are settable from the
51 .Xr loader 8 :
52 .Bl -ohang
53 .It Va hint.ahci. Ns Ar X Ns Va .msi
54 controls Message Signaled Interrupts (MSI) usage by the specified controller.
55 .Bl -tag -compact
56 .It 0
57 MSI disabled;
58 .It 1
59 single MSI vector used, if supported (default);
60 .It 2
61 multiple MSI vectors used, if supported;
62 .El
63 .It Va hint.ahci. Ns Ar X Ns Va .ccc
64 controls Command Completion Coalescing (CCC) usage by the specified controller.
65 Non-zero value enables CCC and defines maximum time (in ms), request can wait
66 for interrupt, if there are some more requests present on controller queue.
67 CCC reduces number of context switches on systems with many parallel requests,
68 but it can decrease disk performance on some workloads due to additional
69 command latency.
70 .It Va hint.ahcich. Ns Ar X Ns Va .pm_level
71 controls SATA interface Power Management for the specified channel,
72 allowing some power to be saved at the cost of additional command
73 latency.
74 Possible values:
75 .Bl -tag -compact
76 .It 0
77 interface Power Management is disabled (default);
78 .It 1
79 device is allowed to initiate PM state change, host is passive;
80 .It 2
81 host initiates PARTIAL PM state transition every time port becomes idle;
82 .It 3
83 host initiates SLUMBER PM state transition every time port becomes idle.
84 .It 4
85 driver initiates PARTIAL PM state transition 1ms after port becomes idle;
86 .It 5
87 driver initiates SLUMBER PM state transition 125ms after port becomes idle.
88 .El
89 Some controllers, such as ICH8, do not implement modes 2 and 3 with NCQ used.
90 Because of artificial entering latency, performance degradation in modes
91 4 and 5 is much smaller then in modes 2 and 3.
92 .Pp
93 Note that interface Power Management complicates device presence detection.
94 A manual bus reset/rescan may be needed after device hot-plug, unless hardware
95 implements Cold Presence Detection.
96 .It Va hint.ahcich. Ns Ar X Ns Va .sata_rev
97 setting to nonzero value limits maximum SATA revision (speed).
98 Values 1, 2 and 3 are respectively 1.5, 3 and 6Gbps.
99 .It Va hw.ahci.force
100 setting to nonzero value forces driver attach to some known AHCI-capable
101 chips even if they are configured for legacy IDE emulation.
102 Default is 1.
103 .El
104 .Sh DESCRIPTION
105 This driver provides the
106 .Xr CAM 4
107 subsystem with native access to the
108 .Tn SATA
109 ports of AHCI-compatible controllers.
110 Each SATA port found is represented to CAM as a separate bus with one
111 target, or, if HBA supports Port Multipliers, 16 targets.
112 Most of the bus-management details are handled by the SATA-specific
113 transport of CAM.
114 Connected ATA disks are handled by the ATA protocol disk peripheral driver
115 .Xr ada 4 .
116 ATAPI devices are handled by the SCSI protocol peripheral drivers
117 .Xr cd 4 ,
118 .Xr da 4 ,
119 .Xr sa 4 ,
120 etc.
121 .Pp
122 Driver features include support for Serial ATA and ATAPI devices,
123 Port Multipliers (including FIS-based switching, when supported),
124 hardware command queues (up to 32 commands per port),
125 Native Command Queuing, SATA interface Power Management, device hot-plug
126 and Message Signaled Interrupts.
127 .Pp
128 Driver supports "LED" enclosure management messages, defined by the AHCI.
129 When supported by hardware, it allows to control per-port activity, locate
130 and fault LEDs via the
131 .Xr led 4
132 API for localization and status reporting purposes.
133 Supporting AHCI controllers may transmit that information to the backplane
134 controllers via SGPIO interface. Backplane controllers interpret received
135 statuses in some way (IBPI standard) to report them using present indicators.
136 .Pp
137 AHCI hardware is also supported by ataahci driver from
138 .Xr ata 4
139 subsystem.
140 If both drivers are loaded at the same time, this one will be
141 given precedence as the more functional of the two.
142 .Sh HARDWARE
143 The
144 .Nm
145 driver supports AHCI compatible controllers having PCI class 1 (mass storage),
146 subclass 6 (SATA) and programming interface 1 (AHCI).
147 .Pp
148 Also, in cooperation with atamarvell and atajmicron drivers of ata(4),
149 it supports AHCI part of legacy-PATA + AHCI-SATA combined controllers,
150 such as JMicron JMB36x and Marvell 88SE61xx.
151 .Sh FILES
152 .Bl -tag -width /dev/led/ahcich*.locate
153 .It Pa /dev/led/ahcich*.act
154 activity LED device nodes
155 .It Pa /dev/led/ahcich*.fault
156 fault LED device nodes
157 .It Pa /dev/led/ahcich*.locate
158 locate LED device nodes
159 .El
160 .Sh SEE ALSO
161 .Xr ada 4 ,
162 .Xr ata 4 ,
163 .Xr cam 4 ,
164 .Xr cd 4 ,
165 .Xr da 4 ,
166 .Xr sa 4
167 .Sh HISTORY
168 The
169 .Nm
170 driver first appeared in
171 .Fx 8.0 .
172 .Sh AUTHORS
173 .An Alexander Motin Aq mav@FreeBSD.org .