2014-05-02 20:25:09 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2010 Spectra Logic Corporation
|
|
|
|
.\" Copyright (c) 2014 LSI Corp
|
2016-05-09 16:42:46 +00:00
|
|
|
.\" Copyright (c) 2016 Avago Technologies
|
|
|
|
.\" Copyright (c) 2016 Broadcom Ltd.
|
2014-05-02 20:25:09 +00:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions, and the following disclaimer,
|
|
|
|
.\" without modification.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce at minimum a disclaimer
|
|
|
|
.\" substantially similar to the "NO WARRANTY" disclaimer below
|
|
|
|
.\" ("Disclaimer") and any redistribution must be conditioned upon
|
|
|
|
.\" including a substantially similar Disclaimer requirement for further
|
|
|
|
.\" binary redistribution.
|
|
|
|
.\"
|
|
|
|
.\" NO WARRANTY
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
.\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
|
|
|
|
.\" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
.\" HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
|
|
.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
|
|
|
.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGES.
|
2016-06-08 10:26:17 +00:00
|
|
|
.\"
|
2014-05-02 20:25:09 +00:00
|
|
|
.\" mpr driver man page.
|
|
|
|
.\"
|
|
|
|
.\" Author: Ken Merry <ken@FreeBSD.org>
|
2016-05-09 16:42:46 +00:00
|
|
|
.\" Author: Stephen McConnell <slm@FreeBSD.org>
|
2014-05-02 20:25:09 +00:00
|
|
|
.\"
|
|
|
|
.\" $Id$
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2016-05-09 16:42:46 +00:00
|
|
|
.Dd April 29, 2016
|
2014-05-02 20:25:09 +00:00
|
|
|
.Dt MPR 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm mpr
|
|
|
|
.Nd "LSI Fusion-MPT 3 IT/IR 12Gb/s Serial Attached SCSI/SATA driver"
|
|
|
|
.Sh SYNOPSIS
|
2016-05-09 16:42:46 +00:00
|
|
|
To compile this driver into the kernel, place these lines in the kernel
|
|
|
|
configuration file:
|
2014-05-02 20:25:09 +00:00
|
|
|
.Bd -ragged -offset indent
|
|
|
|
.Cd "device pci"
|
|
|
|
.Cd "device scbus"
|
|
|
|
.Cd "device mpr"
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2016-05-09 16:42:46 +00:00
|
|
|
The driver can be loaded as a module at boot time by placing this line in
|
2014-05-02 20:25:09 +00:00
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
mpr_load="YES"
|
|
|
|
.Ed
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
2014-12-21 10:04:26 +00:00
|
|
|
.Nm
|
2016-05-09 16:42:46 +00:00
|
|
|
driver provides support for Broadcom Ltd./Avago Tech (LSI)
|
|
|
|
Fusion-MPT 3 IT/IR
|
2014-05-02 20:25:09 +00:00
|
|
|
.Tn SAS
|
|
|
|
controllers.
|
|
|
|
.Sh HARDWARE
|
2016-05-09 16:42:46 +00:00
|
|
|
These controllers are supported by the
|
2014-05-02 20:25:09 +00:00
|
|
|
.Nm
|
2014-05-03 11:15:28 +00:00
|
|
|
driver:
|
2014-05-02 20:25:09 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -bullet -compact
|
|
|
|
.It
|
2016-05-09 16:42:46 +00:00
|
|
|
Broadcom Ltd./Avago Tech (LSI) SAS 3004 (4 Port SAS)
|
2014-05-02 20:25:09 +00:00
|
|
|
.It
|
2016-05-09 16:42:46 +00:00
|
|
|
Broadcom Ltd./Avago Tech (LSI) SAS 3008 (8 Port SAS)
|
2014-05-02 20:25:09 +00:00
|
|
|
.It
|
2016-05-09 16:42:46 +00:00
|
|
|
Broadcom Ltd./Avago Tech (LSI) SAS 3108 (8 Port SAS)
|
|
|
|
.It
|
|
|
|
Broadcom Ltd./Avago Tech (LSI) SAS 3216 (16 Port SAS)
|
|
|
|
.It
|
|
|
|
Broadcom Ltd./Avago Tech (LSI) SAS 3224 (24 Port SAS)
|
2014-05-02 20:25:09 +00:00
|
|
|
.El
|
|
|
|
.Sh CONFIGURATION
|
2016-05-09 16:42:46 +00:00
|
|
|
.Pp
|
|
|
|
In all tunable descriptions below, X represents the adapter number.
|
|
|
|
.Pp
|
2014-05-02 20:25:09 +00:00
|
|
|
To disable MSI interrupts for all
|
|
|
|
.Nm
|
2016-05-09 16:42:46 +00:00
|
|
|
driver instances, set this tunable value in
|
2014-05-02 20:25:09 +00:00
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
hw.mpr.disable_msi=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
To disable MSI interrupts for a specific
|
|
|
|
.Nm
|
2016-05-09 16:42:46 +00:00
|
|
|
driver instance, set this tunable value in
|
2014-05-02 20:25:09 +00:00
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
dev.mpr.X.disable_msi=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
To disable MSI-X interrupts for all
|
|
|
|
.Nm
|
2016-05-09 16:42:46 +00:00
|
|
|
driver instances, set this tunable value in
|
2014-05-02 20:25:09 +00:00
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
hw.mpr.disable_msix=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
To disable MSI-X interrupts for a specific
|
|
|
|
.Nm
|
2016-05-09 16:42:46 +00:00
|
|
|
driver instance, set this tunable value in
|
2014-05-02 20:25:09 +00:00
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
dev.mpr.X.disable_msix=1
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
To set the maximum number of DMA chains allocated for all adapters, set
|
2016-05-09 16:42:46 +00:00
|
|
|
this tunable in
|
2014-05-02 20:25:09 +00:00
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
hw.mpr.max_chains=NNNN
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
To set the maximum number of DMA chains allocated for a specific adapter,
|
2016-05-09 16:42:46 +00:00
|
|
|
set this tunable in
|
2014-05-02 20:25:09 +00:00
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
dev.mpr.X.max_chains=NNNN
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2016-05-09 16:42:46 +00:00
|
|
|
The default max_chains value is 2048.
|
2014-05-02 20:25:09 +00:00
|
|
|
.Pp
|
2016-05-09 16:42:46 +00:00
|
|
|
The current number of free chain frames is stored in the
|
2014-05-02 20:25:09 +00:00
|
|
|
dev.mpr.X.chain_free
|
|
|
|
.Xr sysctl 8
|
|
|
|
variable.
|
|
|
|
.Pp
|
2016-05-09 16:42:46 +00:00
|
|
|
The lowest number of free chain frames seen since boot is stored in the
|
2014-05-02 20:25:09 +00:00
|
|
|
dev.mpr.X.chain_free_lowwater
|
|
|
|
.Xr sysctl 8
|
|
|
|
variable.
|
|
|
|
.Pp
|
2016-05-09 16:42:46 +00:00
|
|
|
The number of times that chain frame allocations have failed since boot is
|
|
|
|
stored in the
|
|
|
|
dev.mpr.X.chain_alloc_fail
|
|
|
|
.Xr sysctl 8
|
|
|
|
variable.
|
|
|
|
This can be used to determine whether the max_chains tunable should be
|
|
|
|
increased to help performance.
|
|
|
|
.Pp
|
2014-05-02 20:25:09 +00:00
|
|
|
The current number of active I/O commands is shown in the
|
|
|
|
dev.mpr.X.io_cmds_active
|
|
|
|
.Xr sysctl 8
|
|
|
|
variable.
|
|
|
|
.Pp
|
2016-05-09 16:42:46 +00:00
|
|
|
The highest number of active I/O commands seen since boot is stored in the
|
2014-05-02 20:25:09 +00:00
|
|
|
dev.mpr.X.io_cmds_highwater
|
|
|
|
.Xr sysctl 8
|
|
|
|
variable.
|
|
|
|
.Pp
|
|
|
|
Devices can be excluded from
|
|
|
|
.Nm
|
2016-05-09 16:42:46 +00:00
|
|
|
control for all adapters by setting this tunable in
|
2014-05-02 20:25:09 +00:00
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
hw.mpr.exclude_ids=Y
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2016-05-09 16:42:46 +00:00
|
|
|
Y represents the target ID of the device.
|
|
|
|
If more than one device is to be excluded, target IDs are separated by commas.
|
2014-05-02 20:25:09 +00:00
|
|
|
.Pp
|
|
|
|
Devices can be excluded from
|
|
|
|
.Nm
|
2016-05-09 16:42:46 +00:00
|
|
|
control for a specific adapter by setting this tunable in
|
2014-05-02 20:25:09 +00:00
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
dev.mpr.X.exclude_ids=Y
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2016-05-09 16:42:46 +00:00
|
|
|
Y represents the target ID of the device.
|
|
|
|
If more than one device is to be excluded, target IDs are separated by commas.
|
|
|
|
.Pp
|
|
|
|
The adapter can issue the
|
|
|
|
.Sy StartStopUnit
|
|
|
|
SCSI command to SATA direct-access devices during shutdown.
|
|
|
|
This allows the device to quiesce powering down.
|
|
|
|
To control this feature for all adapters, set the
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
hw.mpr.enable_ssu
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
tunable in
|
|
|
|
.Xr loader.conf 5
|
|
|
|
to one of these values:
|
|
|
|
.Bl -tag -width 6n -offset indent
|
|
|
|
.It 0
|
|
|
|
Do not send SSU to either HDDs or SSDs.
|
|
|
|
.It 1
|
|
|
|
Send SSU to SSDs, but not to HDDs.
|
|
|
|
This is the default value.
|
|
|
|
.It 2
|
|
|
|
Send SSU to HDDs, but not to SSDs.
|
|
|
|
.It 3
|
|
|
|
Send SSU to both HDDs and SSDs.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
To control the feature for a specific adapter, set this tunable value in
|
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
dev.mpr.X.enable_ssu
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
The same set of values are valid when setting this tunable for all adapters.
|
|
|
|
.Pp
|
|
|
|
SATA disks that take several seconds to spin up and fail the SATA Identify
|
|
|
|
command might not be discovered by the driver.
|
|
|
|
This problem can sometimes be overcome by increasing the value of the spinup
|
|
|
|
wait time in
|
|
|
|
.Xr loader.conf 5 :
|
|
|
|
with the
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
hw.mpr.spinup_wait_time=NNNN
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
tunable.
|
|
|
|
NNNN represents the number of seconds to wait for SATA devices to spin up when
|
|
|
|
the device fails the initial SATA Identify command.
|
|
|
|
.Pp
|
|
|
|
Spinup wait times can be set for specific adapters in
|
|
|
|
.Xr loader.conf 5 :
|
|
|
|
with the
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
dev.mpr.X.spinup_wait_time=NNNN
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
tunable.
|
|
|
|
NNNN is the number of seconds to wait for SATA devices to spin up when they fail
|
|
|
|
the initial SATA Identify command.
|
2014-05-02 20:25:09 +00:00
|
|
|
.Sh DEBUGGING
|
|
|
|
To enable debugging prints from the
|
|
|
|
.Nm
|
|
|
|
driver, set the
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
hw.mpr.X.debug_level
|
|
|
|
.Ed
|
|
|
|
.Pp
|
2016-05-09 16:42:46 +00:00
|
|
|
tunable, either in
|
2014-05-02 20:25:09 +00:00
|
|
|
.Xr loader.conf 5
|
2016-06-08 10:26:17 +00:00
|
|
|
or by using
|
2014-05-02 20:25:09 +00:00
|
|
|
.Xr sysctl 8 .
|
2016-05-09 16:42:46 +00:00
|
|
|
These bits have the described effects:
|
2014-05-02 20:25:09 +00:00
|
|
|
.Bd -literal -offset indent
|
2016-05-09 16:42:46 +00:00
|
|
|
0x0001 Enable informational prints (set by default).
|
|
|
|
0x0002 Enable prints for driver faults (set by default).
|
2014-05-02 20:25:09 +00:00
|
|
|
0x0004 Enable prints for controller events.
|
|
|
|
0x0008 Enable prints for controller logging.
|
|
|
|
0x0010 Enable prints for tracing recovery operations.
|
|
|
|
0x0020 Enable prints for parameter errors and programming bugs.
|
|
|
|
0x0040 Enable prints for system initialization operations.
|
|
|
|
0x0080 Enable prints for more detailed information.
|
2016-05-09 16:42:46 +00:00
|
|
|
0x0100 Enable prints for user-generated commands (IOCTL).
|
2014-05-02 20:25:09 +00:00
|
|
|
0x0200 Enable prints for device mapping.
|
|
|
|
0x0400 Enable prints for tracing through driver functions.
|
|
|
|
.Ed
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr cam 4 ,
|
|
|
|
.Xr cd 4 ,
|
|
|
|
.Xr ch 4 ,
|
|
|
|
.Xr da 4 ,
|
|
|
|
.Xr mps 4 ,
|
2014-05-02 21:14:28 +00:00
|
|
|
.Xr mpt 4 ,
|
2014-05-02 20:25:09 +00:00
|
|
|
.Xr pci 4 ,
|
|
|
|
.Xr sa 4 ,
|
|
|
|
.Xr scsi 4 ,
|
|
|
|
.Xr targ 4 ,
|
|
|
|
.Xr loader.conf 5 ,
|
|
|
|
.Xr sysctl 8
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver first appeared in FreeBSD 9.3.
|
|
|
|
.Sh AUTHORS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver was originally written by
|
|
|
|
.An -nosplit
|
2014-06-26 21:46:14 +00:00
|
|
|
.An Scott Long Aq Mt scottl@FreeBSD.org .
|
2016-05-09 16:42:46 +00:00
|
|
|
It has been improved and tested by LSI Corporation,
|
|
|
|
Avago Technologies (formally LSI), and Broadcom Ltd. (formally Avago).
|
2014-05-02 20:25:09 +00:00
|
|
|
.Pp
|
|
|
|
This man page was written by
|
2014-06-26 21:46:14 +00:00
|
|
|
.An Ken Merry Aq Mt ken@FreeBSD.org
|
2014-05-02 20:25:09 +00:00
|
|
|
with additional input from
|
2016-05-09 16:42:46 +00:00
|
|
|
.An Stephen McConnell Aq Mt slm@FreeBSD.org .
|