|
NAMEmpr —
LSI Fusion-MPT 3/3.5 IT/IR 12Gb/s Serial Attached SCSI/SATA/PCIe
driver
SYNOPSISTo compile this driver into the kernel, place these lines in the kernel configuration file:device pci
device scbus
device mpr The driver can be loaded as a module at boot time by placing this line in loader.conf(5): mpr_load="YES" DESCRIPTIONThempr driver provides support for Broadcom Ltd./Avago
Tech (LSI) Fusion-MPT 3/3.5 IT/IR SAS/PCIe controllers.
HARDWAREThese controllers are supported by thempr driver:
CONFIGURATIONIn all tunable descriptions below, X represents the adapter number.To disable MSI interrupts for all hw.mpr.disable_msi=1 To disable MSI interrupts for a specific
dev.mpr.X.disable_msi=1 To disable MSI-X interrupts for all hw.mpr.disable_msix=1 To disable MSI-X interrupts for a specific
dev.mpr.X.disable_msix=1 To set the maximum number of DMA chains allocated for all adapters, set this tunable in loader.conf(5): hw.mpr.max_chains=NNNN To set the maximum number of DMA chains allocated for a specific adapter, set this tunable in loader.conf(5): dev.mpr.X.max_chains=NNNN The default max_chains value is 16384. The current number of free chain frames is stored in the dev.mpr.X.chain_free sysctl(8) variable. The lowest number of free chain frames seen since boot is stored in the dev.mpr.X.chain_free_lowwater sysctl(8) variable. The number of times that chain frame allocations have failed since boot is stored in the dev.mpr.X.chain_alloc_fail sysctl(8) variable. This can be used to determine whether the max_chains tunable should be increased to help performance. The current number of active I/O commands is shown in the dev.mpr.X.io_cmds_active sysctl(8) variable. The current number of free PRP pages is stored in the dev.mpr.X.prp_pages_free sysctl(8) variable. PRP pages are used by NVMe devices for I/O transfers, much like Scatter/Gather lists. The lowest number of free PRP pages seen since boot is stored in the dev.mpr.X.prp_pages_free_lowwater sysctl(8) variable. The number of times that PRP page allocations have failed since boot is stored in the dev.mpr.X.prp_page_alloc_fail sysctl(8) variable. To set the maximum number of pages that will be used per I/O for all adapters, set this tunable in loader.conf(5): hw.mpr.max_io_pages=NNNN To set the maximum number of pages that will be used per I/O for a specific adapter, set this tunable in loader.conf(5): dev.mpr.X.max_io_pages=NNNN The default max_io_pages value is -1, meaning that the maximum I/O size that will be used per I/O will be calculated using the IOCFacts values stored in the controller. The lowest value that the driver will use for max_io_pages is 1, otherwise IOCFacts will be used to calculate the maximum I/O size. The smaller I/O size calculated from either max_io_pages or IOCFacts will be the maximum I/O size used by the driver. The highest number of active I/O commands seen since boot is stored in the dev.mpr.X.io_cmds_highwater sysctl(8) variable. Devices can be excluded from hw.mpr.exclude_ids=Y Y represents the target ID of the device. If more than one device is to be excluded, target IDs are separated by commas. Devices can be excluded from dev.mpr.X.exclude_ids=Y Y represents the target ID of the device. If more than one device is to be excluded, target IDs are separated by commas. The adapter can issue the 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 hw.mpr.enable_ssu tunable in loader.conf(5) to one of these values:
To control this feature for a specific adapter, set this tunable value in loader.conf(5): dev.mpr.X.enable_ssu The same set of values are valid as when setting this tunable for all adapters. 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 loader.conf(5) with the hw.mpr.spinup_wait_time=NNNN tunable. NNNN represents the number of seconds to wait for SATA devices to spin up when the device fails the initial SATA Identify command. Spinup wait times can be set for specific adapters in loader.conf(5): with the dev.mpr.X.spinup_wait_time=NNNN tunable. NNNN is the number of seconds to wait for SATA devices to spin up when they fail the initial SATA Identify command. The driver can map devices discovered by the adapter so that target IDs corresponding to a specific device persist across resets and reboots. In some cases it is possible for devices to lose their mapped IDs due to unexpected behavior from certain hardware, such as some types of enclosures. To overcome this problem, a tunable is provided that will force the driver to map devices using the Phy number associated with the device. This feature is not recommended if the topology includes multiple enclosures/expanders. If multiple enclosures/expanders are present in the topology, Phy numbers are repeated, causing all devices at these Phy numbers except the first device to fail enumeration. To control this feature for all adapters, set the hw.mpr.use_phy_num tunable in loader.conf(5) to one of these values:
To control this feature for a specific adapter, set this tunable value in loader.conf(5): dev.mpr.X.use_phy_num The same set of values are valid as when setting this tunable for all adapters. DEBUGGINGDriver diagnostic printing is controlled in loader.conf(5) by using the global hw.mpr.debug_level and per-device dev.mpr.X.debug_level tunables. One can alter the debug level for any adapter at run-time using the sysctl(8) variable dev.mpr.X.debug_level.All debug_level variables can be named by either an integer value or a text string. Multiple values can be specified together by either ORing the integer values or by providing a comma-separated list of names. A text string prefixed by “+” adds the specified debug levels to the existing set, while the prefix “-” removes them from the existing set. The current debug_level status is reported in both formats for convenience. The following levels are available:
SEE ALSOcam(4), cd(4), ch(4), da(4), mps(4), mpt(4), pci(4), sa(4), scsi(4), targ(4), loader.conf(5), sysctl(8)HISTORYThempr driver first appeared in
FreeBSD 9.3.
AUTHORSThempr driver was originally written by
Scott Long
<scottl@FreeBSD.org>.
It has been improved and tested by LSI Corporation, Avago Technologies
(formally LSI), and Broadcom Ltd. (formally Avago).
This man page was written by Ken Merry <ken@FreeBSD.org> with additional input from Stephen McConnell <slm@FreeBSD.org>.
Visit the GSP FreeBSD Man Page Interface. |