Index: share/man/man4/mpr.4 =================================================================== --- share/man/man4/mpr.4 +++ share/man/man4/mpr.4 @@ -1,6 +1,8 @@ .\" .\" Copyright (c) 2010 Spectra Logic Corporation .\" Copyright (c) 2014 LSI Corp +.\" Copyright (c) 2016 Avago Technologies +.\" Copyright (c) 2016 Broadcom Ltd. .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -31,28 +33,28 @@ .\" mpr driver man page. .\" .\" Author: Ken Merry -.\" Author: Stephen McConnell +.\" Author: Stephen McConnell .\" .\" $Id$ .\" $FreeBSD$ .\" -.Dd May 2, 2014 +.Dd Jan 25, 2016 .Dt MPR 4 .Os .Sh NAME .Nm mpr .Nd "LSI Fusion-MPT 3 IT/IR 12Gb/s Serial Attached SCSI/SATA driver" .Sh SYNOPSIS -To compile this driver into the kernel, place the following lines in your -kernel configuration file: +To compile this driver into the kernel if not already in the kernel that you +are using, place the following lines in your kernel configuration file: .Bd -ragged -offset indent .Cd "device pci" .Cd "device scbus" .Cd "device mpr" .Ed .Pp -Alternatively, to load the driver as a -module at boot time, place the following line in +Alternatively, to load the driver as a module at boot time if not already +loaded, place the following line in .Xr loader.conf 5 : .Bd -literal -offset indent mpr_load="YES" @@ -60,7 +62,8 @@ .Sh DESCRIPTION The .Nm -driver provides support for LSI Fusion-MPT 3 IT/IR +driver provides support for Broadcom Ltd./Avago Tech (LSI) +Fusion-MPT 3 IT/IR .Tn SAS controllers. .Sh HARDWARE @@ -70,11 +73,15 @@ .Pp .Bl -bullet -compact .It -LSI SAS 3004 (4 Port SAS) +Broadcom Ltd./Avago Tech (LSI) SAS 3004 (4 Port SAS) .It -LSI SAS 3008 (8 Port SAS) +Broadcom Ltd./Avago Tech (LSI) SAS 3008 (8 Port SAS) .It -LSI SAS 3108 (8 Port SAS) +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) .El .Sh CONFIGURATION To disable MSI interrupts for all @@ -127,24 +134,31 @@ .Pp This variable may also be viewed via .Xr sysctl 8 -to see the maximum set for a given adapter. +to see the maximum set for a given adapter. The default value is 2048. .Pp The current number of free chain frames may be seen via the dev.mpr.X.chain_free .Xr sysctl 8 variable. .Pp -The lowest number of free chain frames may be seen via the +The lowest number of free chain frames seen since boot may be seen via the dev.mpr.X.chain_free_lowwater .Xr sysctl 8 variable. .Pp +The number of times that chain frame allocations have failed since boot +may be seen via the +dev.mpr.X.chain_alloc_fail +.Xr sysctl 8 +variable. This can be used to determine if the max_chains variable should +be increased to help performance. +.Pp The current number of active I/O commands is shown in the dev.mpr.X.io_cmds_active .Xr sysctl 8 variable. .Pp -The maximum number of active I/O commands seen since boot is shown in the +The highest number of active I/O commands seen since boot is shown in the dev.mpr.X.io_cmds_highwater .Xr sysctl 8 variable. @@ -172,6 +186,63 @@ where X is the adapter number and Y is the target ID of the device. If more than one device is to be excluded, target ID's are separated by commas. +.Pp +The adapter can issue the +.Sy StartStopUnit +SCSI command to SATA direct-access devices during shutdown, to allow the +device to quiesce before being powered down. +To control this feature for all adapters, set the +.Bd -literal -offset indent +hw.mpr.enable_ssu +.Ed +.Pp +tunable value in +.Xr loader.conf 5 +to one of the following 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 the following tunable +value in +.Xr loader.conf 5 : +.Bd -literal -offset indent +dev.mpr.X.enable_ssu +.Ed +.Pp +where X is the adapter number. +The same set of values are valid as for all adapters. +.Pp +Some SATA disks may fail to be discovered by the driver due to a failed +SATA Identify command if the disk takes several seconds to spin up. +This problem might be overcome by changing the following tunable for all +adapters in +.Xr loader.conf 5 : +.Bd -literal -offset indent +hw.mpr.spinup_wait_time=NNNN +.Ed +.Pp +where NNNN is the number of seconds to wait for SATA devices to spinup if +the device fails its initial SATA Identify command. +.El +.Pp +To control the feature for a specific adapter, set the following tunable +value in +.Xr loader.conf 5 : +.Bd -literal -offset indent +dev.mpr.X.spinup_wait_time=NNNN +.Ed +.Pp +where X is the adapter number and NNNN is the number of seconds to wait +for SATA devices to spinup if the device fails its initial SATA Identify +command. .Sh DEBUGGING To enable debugging prints from the .Nm @@ -186,15 +257,15 @@ .Xr sysctl 8 . The following bits have the described effects: .Bd -literal -offset indent -0x0001 Enable informational prints. -0x0002 Enable prints for driver faults. +0x0001 Enable informational prints (set by default). +0x0002 Enable prints for driver faults (set by default). 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. -0x0100 Enable prints for user-generated commands. +0x0100 Enable prints for user-generated commands (IOCTL). 0x0200 Enable prints for device mapping. 0x0400 Enable prints for tracing through driver functions. .Ed @@ -221,9 +292,10 @@ driver was originally written by .An -nosplit .An Scott Long Aq Mt scottl@FreeBSD.org . -It has been improved and tested by LSI Corporation. +It has been improved and tested by LSI Corporation, +Avago Technologies (formally LSI), and Broadcom Ltd. (formally Avago). .Pp This man page was written by .An Ken Merry Aq Mt ken@FreeBSD.org with additional input from -.An Stephen McConnell Aq Mt stephen.mcconnell@lsi.com . +.An Stephen McConnell Aq Mt slm@FreeBSD.org .