xref: /freebsd/share/man/man4/mvs.4 (revision f3c5273d315a64826d2149ac453ff8c4583ddbe8)
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 March 23, 2015
28.Dt MVS 4
29.Os
30.Sh NAME
31.Nm mvs
32.Nd Marvell Serial ATA Host Controller driver
33.Sh SYNOPSIS
34To compile this driver into the kernel,
35place the following lines in your
36kernel configuration file:
37.Bd -ragged -offset indent
38.Cd "device pci"
39.Cd "device scbus"
40.Cd "device mvs"
41.Ed
42.Pp
43Alternatively, to load the driver as a
44module at boot time, place the following line in
45.Xr loader.conf 5 :
46.Bd -literal -offset indent
47mvs_load="YES"
48.Ed
49.Pp
50The following tunables are settable from the
51.Xr loader 8 :
52.Bl -ohang
53.It Va hint.mvs. Ns Ar X Ns Va .msi
54controls Message Signaled Interrupts (MSI) usage by the specified controller.
55.It Va hint.mvs. Ns Ar X Ns Va .ccc
56controls Command Completion Coalescing (CCC) usage by the specified controller.
57Non-zero value enables CCC and defines maximum time (in us), request can wait
58for interrupt.
59CCC reduces number of context switches on systems with many parallel requests,
60but it can decrease disk performance on some workloads due to additional
61command latency.
62.It Va hint.mvs. Ns Ar X Ns Va .cccc
63defines number of completed commands for CCC, which trigger interrupt without
64waiting for specified coalescing timeout.
65.It Va hint.mvsch. Ns Ar X Ns Va .pm_level
66controls SATA interface Power Management for the specified channel,
67allowing some power to be saved at the cost of additional command
68latency.
69Possible values:
70.Pp
71.Bl -tag -width 4n -offset indent -compact
72.It 0
73interface Power Management is disabled (default);
74.It 1
75device is allowed to initiate PM state change, host is passive;
76.It 4
77driver initiates PARTIAL PM state transition 1ms after port becomes idle;
78.It 5
79driver initiates SLUMBER PM state transition 125ms after port becomes idle.
80.El
81.Pp
82Note that interface Power Management is not compatible with
83device presence detection.
84A manual bus reset is needed on device hot-plug.
85.It Va hint.mvsch. Ns Ar X Ns Va .sata_rev
86setting to nonzero value limits maximum SATA revision (speed).
87Values 1, 2 and 3 are respectively 1.5, 3 and 6Gbps.
88.El
89.Sh DESCRIPTION
90This driver provides the
91.Xr CAM 4
92subsystem with native access to the
93.Tn SATA
94ports of several generations (Gen-I/II/IIe) of Marvell SATA controllers.
95Each SATA port found is represented to CAM as a separate bus with one
96target, or, if HBA supports Port Multipliers (Gen-II/IIe), 16 targets.
97Most of the bus-management details are handled by the SATA-specific
98transport of CAM.
99Connected ATA disks are handled by the ATA protocol disk peripheral driver
100.Xr ada 4 .
101ATAPI devices are handled by the SCSI protocol peripheral drivers
102.Xr cd 4 ,
103.Xr da 4 ,
104.Xr sa 4 ,
105etc.
106.Pp
107Driver features include support for Serial ATA and ATAPI devices,
108Port Multipliers (including FIS-based switching, when supported),
109hardware command queues (up to 31 command per port),
110Native Command Queuing, SATA interface Power Management, device hot-plug
111and Message Signaled Interrupts.
112.Sh HARDWARE
113The
114.Nm
115driver supports the following controllers:
116.Pp
117Gen-I (SATA 1.5Gbps):
118.Bl -bullet -compact -offset "xxxxxx"
119.It
12088SX5040
121.It
12288SX5041
123.It
12488SX5080
125.It
12688SX5081
127.El
128.Pp
129Gen-II (SATA 3Gbps, NCQ, PMP):
130.Bl -bullet -compact -offset "xxxxxx"
131.It
13288SX6040
133.It
13488SX6041 (including Adaptec 1420SA)
135.It
13688SX6080
137.It
13888SX6081
139.El
140.Pp
141Gen-IIe (SATA 3Gbps, NCQ, PMP with FBS):
142.Bl -bullet -compact -offset "xxxxxx"
143.It
14488SX6042
145.It
14688SX7042 (including Adaptec 1430SA)
147.It
14888F5182 SoC
149.It
15088F6281 SoC
151.It
152MV78100 SoC
153.El
154.Pp
155Note, that this hardware supports command queueing and FIS-based switching
156only for ATA DMA commands.
157ATAPI and non-DMA ATA commands executed one by one for each port.
158.Sh SEE ALSO
159.Xr ada 4 ,
160.Xr ata 4 ,
161.Xr cam 4 ,
162.Xr cd 4 ,
163.Xr da 4 ,
164.Xr sa 4
165.Sh HISTORY
166The
167.Nm
168driver first appeared in
169.Fx 8.1 .
170.Sh AUTHORS
171.An Alexander Motin Aq Mt mav@FreeBSD.org
172