xref: /freebsd/share/man/man4/mvs.4 (revision cdc58367265a2bd6e8f913db2bdc591699ee229f)
1dd48af36SAlexander Motin.\" Copyright (c) 2009 Alexander Motin <mav@FreeBSD.org>
2dd48af36SAlexander Motin.\" All rights reserved.
3dd48af36SAlexander Motin.\"
4dd48af36SAlexander Motin.\" Redistribution and use in source and binary forms, with or without
5dd48af36SAlexander Motin.\" modification, are permitted provided that the following conditions
6dd48af36SAlexander Motin.\" are met:
7dd48af36SAlexander Motin.\" 1. Redistributions of source code must retain the above copyright
8dd48af36SAlexander Motin.\"    notice, this list of conditions and the following disclaimer.
9dd48af36SAlexander Motin.\" 2. Redistributions in binary form must reproduce the above copyright
10dd48af36SAlexander Motin.\"    notice, this list of conditions and the following disclaimer in the
11dd48af36SAlexander Motin.\"    documentation and/or other materials provided with the distribution.
12dd48af36SAlexander Motin.\"
13522a3b5fSAlexander Motin.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14522a3b5fSAlexander Motin.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15522a3b5fSAlexander Motin.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16522a3b5fSAlexander Motin.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17522a3b5fSAlexander Motin.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18522a3b5fSAlexander Motin.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19522a3b5fSAlexander Motin.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20522a3b5fSAlexander Motin.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21522a3b5fSAlexander Motin.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22522a3b5fSAlexander Motin.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23522a3b5fSAlexander Motin.\" SUCH DAMAGE.
24dd48af36SAlexander Motin.\"
25dd48af36SAlexander Motin.\" $FreeBSD$
26dd48af36SAlexander Motin.\"
27*cdc58367SAlexander Motin.Dd March 23, 2015
28dd48af36SAlexander Motin.Dt MVS 4
29dd48af36SAlexander Motin.Os
30dd48af36SAlexander Motin.Sh NAME
31dd48af36SAlexander Motin.Nm mvs
32dd48af36SAlexander Motin.Nd Marvell Serial ATA Host Controller driver
33dd48af36SAlexander Motin.Sh SYNOPSIS
34dd48af36SAlexander MotinTo compile this driver into the kernel,
35dd48af36SAlexander Motinplace the following lines in your
36dd48af36SAlexander Motinkernel configuration file:
37dd48af36SAlexander Motin.Bd -ragged -offset indent
38dd48af36SAlexander Motin.Cd "device pci"
39dd48af36SAlexander Motin.Cd "device scbus"
40dd48af36SAlexander Motin.Cd "device mvs"
41dd48af36SAlexander Motin.Ed
42dd48af36SAlexander Motin.Pp
43dd48af36SAlexander MotinAlternatively, to load the driver as a
44dd48af36SAlexander Motinmodule at boot time, place the following line in
45dd48af36SAlexander Motin.Xr loader.conf 5 :
46dd48af36SAlexander Motin.Bd -literal -offset indent
47dd48af36SAlexander Motinmvs_load="YES"
48dd48af36SAlexander Motin.Ed
49dd48af36SAlexander Motin.Pp
50dd48af36SAlexander MotinThe following tunables are settable from the
51dd48af36SAlexander Motin.Xr loader 8 :
52dd48af36SAlexander Motin.Bl -ohang
53dd48af36SAlexander Motin.It Va hint.mvs. Ns Ar X Ns Va .msi
54dd48af36SAlexander Motincontrols Message Signaled Interrupts (MSI) usage by the specified controller.
55dd48af36SAlexander Motin.It Va hint.mvs. Ns Ar X Ns Va .ccc
56dd48af36SAlexander Motincontrols Command Completion Coalescing (CCC) usage by the specified controller.
57dd48af36SAlexander MotinNon-zero value enables CCC and defines maximum time (in us), request can wait
58dd48af36SAlexander Motinfor interrupt.
59dd48af36SAlexander MotinCCC reduces number of context switches on systems with many parallel requests,
60dd48af36SAlexander Motinbut it can decrease disk performance on some workloads due to additional
61dd48af36SAlexander Motincommand latency.
62dd48af36SAlexander Motin.It Va hint.mvs. Ns Ar X Ns Va .cccc
63dd48af36SAlexander Motindefines number of completed commands for CCC, which trigger interrupt without
64dd48af36SAlexander Motinwaiting for specified coalescing timeout.
65b6bc5f51SAlexander Motin.It Va hint.mvsch. Ns Ar X Ns Va .pm_level
66dd48af36SAlexander Motincontrols SATA interface Power Management for the specified channel,
67dd48af36SAlexander Motinallowing some power to be saved at the cost of additional command
68dd48af36SAlexander Motinlatency.
69dd48af36SAlexander MotinPossible values:
707e3de069SJoel Dahl.Pp
717e3de069SJoel Dahl.Bl -tag -width 4n -offset indent -compact
72dd48af36SAlexander Motin.It 0
73dd48af36SAlexander Motininterface Power Management is disabled (default);
74dd48af36SAlexander Motin.It 1
75dd48af36SAlexander Motindevice is allowed to initiate PM state change, host is passive;
76dd48af36SAlexander Motin.It 4
77dd48af36SAlexander Motindriver initiates PARTIAL PM state transition 1ms after port becomes idle;
78dd48af36SAlexander Motin.It 5
79dd48af36SAlexander Motindriver initiates SLUMBER PM state transition 125ms after port becomes idle.
80dd48af36SAlexander Motin.El
81dd48af36SAlexander Motin.Pp
82dd48af36SAlexander MotinNote that interface Power Management is not compatible with
83dd48af36SAlexander Motindevice presence detection.
84dd48af36SAlexander MotinA manual bus reset is needed on device hot-plug.
85b6bc5f51SAlexander Motin.It Va hint.mvsch. Ns Ar X Ns Va .sata_rev
86dd48af36SAlexander Motinsetting to nonzero value limits maximum SATA revision (speed).
87dd48af36SAlexander MotinValues 1, 2 and 3 are respectively 1.5, 3 and 6Gbps.
88dd48af36SAlexander Motin.El
89dd48af36SAlexander Motin.Sh DESCRIPTION
90dd48af36SAlexander MotinThis driver provides the
91dd48af36SAlexander Motin.Xr CAM 4
92dd48af36SAlexander Motinsubsystem with native access to the
93dd48af36SAlexander Motin.Tn SATA
94dd48af36SAlexander Motinports of several generations (Gen-I/II/IIe) of Marvell SATA controllers.
95dd48af36SAlexander MotinEach SATA port found is represented to CAM as a separate bus with one
96dd48af36SAlexander Motintarget, or, if HBA supports Port Multipliers (Gen-II/IIe), 16 targets.
97dd48af36SAlexander MotinMost of the bus-management details are handled by the SATA-specific
98dd48af36SAlexander Motintransport of CAM.
99dd48af36SAlexander MotinConnected ATA disks are handled by the ATA protocol disk peripheral driver
100dd48af36SAlexander Motin.Xr ada 4 .
101dd48af36SAlexander MotinATAPI devices are handled by the SCSI protocol peripheral drivers
102dd48af36SAlexander Motin.Xr cd 4 ,
103dd48af36SAlexander Motin.Xr da 4 ,
104dd48af36SAlexander Motin.Xr sa 4 ,
105dd48af36SAlexander Motinetc.
106dd48af36SAlexander Motin.Pp
107dd48af36SAlexander MotinDriver features include support for Serial ATA and ATAPI devices,
108dd48af36SAlexander MotinPort Multipliers (including FIS-based switching, when supported),
109dd48af36SAlexander Motinhardware command queues (up to 31 command per port),
110dd48af36SAlexander MotinNative Command Queuing, SATA interface Power Management, device hot-plug
111dd48af36SAlexander Motinand Message Signaled Interrupts.
112dd48af36SAlexander Motin.Sh HARDWARE
113dd48af36SAlexander MotinThe
114dd48af36SAlexander Motin.Nm
115dd48af36SAlexander Motindriver supports the following controllers:
116af02ba93SChristian Brueffer.Pp
1176efe0b88SChristian BruefferGen-I (SATA 1.5Gbps):
1186efe0b88SChristian Brueffer.Bl -bullet -compact -offset "xxxxxx"
119dd48af36SAlexander Motin.It
120dd48af36SAlexander Motin88SX5040
121dd48af36SAlexander Motin.It
122dd48af36SAlexander Motin88SX5041
123dd48af36SAlexander Motin.It
124dd48af36SAlexander Motin88SX5080
125dd48af36SAlexander Motin.It
126dd48af36SAlexander Motin88SX5081
127dd48af36SAlexander Motin.El
1286efe0b88SChristian Brueffer.Pp
1296efe0b88SChristian BruefferGen-II (SATA 3Gbps, NCQ, PMP):
1306efe0b88SChristian Brueffer.Bl -bullet -compact -offset "xxxxxx"
131dd48af36SAlexander Motin.It
132dd48af36SAlexander Motin88SX6040
133dd48af36SAlexander Motin.It
134dd48af36SAlexander Motin88SX6041 (including Adaptec 1420SA)
135dd48af36SAlexander Motin.It
136dd48af36SAlexander Motin88SX6080
137dd48af36SAlexander Motin.It
138dd48af36SAlexander Motin88SX6081
139dd48af36SAlexander Motin.El
1406efe0b88SChristian Brueffer.Pp
1416efe0b88SChristian BruefferGen-IIe (SATA 3Gbps, NCQ, PMP with FBS):
1426efe0b88SChristian Brueffer.Bl -bullet -compact -offset "xxxxxx"
143dd48af36SAlexander Motin.It
144dd48af36SAlexander Motin88SX6042
145dd48af36SAlexander Motin.It
146dd48af36SAlexander Motin88SX7042 (including Adaptec 1430SA)
147dd48af36SAlexander Motin.It
148dd48af36SAlexander Motin88F5182 SoC
149dd48af36SAlexander Motin.It
150dd48af36SAlexander Motin88F6281 SoC
151dd48af36SAlexander Motin.It
152dd48af36SAlexander MotinMV78100 SoC
153dd48af36SAlexander Motin.El
154dd48af36SAlexander Motin.Pp
155af02ba93SChristian BruefferNote, that this hardware supports command queueing and FIS-based switching
156af02ba93SChristian Bruefferonly for ATA DMA commands.
157af02ba93SChristian BruefferATAPI and non-DMA ATA commands executed one by one for each port.
158dd48af36SAlexander Motin.Sh SEE ALSO
159dd48af36SAlexander Motin.Xr ada 4 ,
160dd48af36SAlexander Motin.Xr ata 4 ,
161dd48af36SAlexander Motin.Xr cam 4 ,
162dd48af36SAlexander Motin.Xr cd 4 ,
163dd48af36SAlexander Motin.Xr da 4 ,
164dd48af36SAlexander Motin.Xr sa 4
165dd48af36SAlexander Motin.Sh HISTORY
166dd48af36SAlexander MotinThe
167dd48af36SAlexander Motin.Nm
168dd48af36SAlexander Motindriver first appeared in
169f87d5cdcSAlexander Motin.Fx 8.1 .
170dd48af36SAlexander Motin.Sh AUTHORS
1716c899950SBaptiste Daroussin.An Alexander Motin Aq Mt mav@FreeBSD.org
172