xref: /freebsd/share/man/man4/mfi.4 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
191c3e790SScott Long.\" Copyright (c) 2006 Scott Long
291c3e790SScott Long.\" All rights reserved.
391c3e790SScott Long.\"
491c3e790SScott Long.\" Redistribution and use in source and binary forms, with or without
591c3e790SScott Long.\" modification, are permitted provided that the following conditions
691c3e790SScott Long.\" are met:
791c3e790SScott Long.\" 1. Redistributions of source code must retain the above copyright
891c3e790SScott Long.\"    notice, this list of conditions and the following disclaimer.
991c3e790SScott Long.\" 2. Redistributions in binary form must reproduce the above copyright
1091c3e790SScott Long.\"    notice, this list of conditions and the following disclaimer in the
1191c3e790SScott Long.\"    documentation and/or other materials provided with the distribution.
1291c3e790SScott Long.\"
1391c3e790SScott Long.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1491c3e790SScott Long.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1591c3e790SScott Long.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1691c3e790SScott Long.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1791c3e790SScott Long.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1891c3e790SScott Long.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1991c3e790SScott Long.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2091c3e790SScott Long.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2191c3e790SScott Long.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2291c3e790SScott Long.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2391c3e790SScott Long.\" SUCH DAMAGE.
2491c3e790SScott Long.\"
25*86536206STom Hukins.Dd April 19, 2023
2691c3e790SScott Long.Dt MFI 4
2791c3e790SScott Long.Os
2891c3e790SScott Long.Sh NAME
2991c3e790SScott Long.Nm mfi
3091c3e790SScott Long.Nd "LSI MegaRAID SAS driver"
3191c3e790SScott Long.Sh SYNOPSIS
327bffbceeSChristian BruefferTo compile this driver into the kernel,
337bffbceeSChristian Bruefferplace the following lines in your
347bffbceeSChristian Bruefferkernel configuration file:
357bffbceeSChristian Brueffer.Bd -ragged -offset indent
3691c3e790SScott Long.Cd "device pci"
3791c3e790SScott Long.Cd "device mfi"
387bffbceeSChristian Brueffer.Ed
397bffbceeSChristian Brueffer.Pp
407bffbceeSChristian BruefferAlternatively, to load the driver as a
417bffbceeSChristian Brueffermodule at boot time, place the following line in
427bffbceeSChristian Brueffer.Xr loader.conf 5 :
437bffbceeSChristian Brueffer.Bd -literal -offset indent
447bffbceeSChristian Brueffermfi_load="YES"
457bffbceeSChristian Brueffer.Ed
4691c3e790SScott Long.Sh DESCRIPTION
4791c3e790SScott LongThis driver is for LSI's next generation PCI Express SAS RAID controllers.
4891c3e790SScott LongAccess to RAID arrays (logical disks) from this driver is provided via
4991c3e790SScott Long.Pa /dev/mfid?
5091c3e790SScott Longdevice nodes.
5191c3e790SScott LongA simple management interface is also provided on a per-controller basis via
5291c3e790SScott Longthe
5391c3e790SScott Long.Pa /dev/mfi?
5491c3e790SScott Longdevice node.
5591c3e790SScott Long.Pp
5691c3e790SScott LongThe
5791c3e790SScott Long.Nm
5891c3e790SScott Longname is derived from the phrase "MegaRAID Firmware Interface", which is
5991c3e790SScott Longsubstantially different than the old "MegaRAID" interface and thus requires
6091c3e790SScott Longa new driver.
6148c08eb8SChristian BruefferOlder SCSI and SATA MegaRAID cards are supported by
6248c08eb8SChristian Brueffer.Xr amr 4
6348c08eb8SChristian Bruefferand will not work with this driver.
648ec5c98bSJohn Baldwin.Pp
658ec5c98bSJohn BaldwinTwo sysctls are provided to tune the
668ec5c98bSJohn Baldwin.Nm
678ec5c98bSJohn Baldwindriver's behavior when a request is made to remove a mounted volume.
688ec5c98bSJohn BaldwinBy default the driver will disallow any requests to remove a mounted volume.
698ec5c98bSJohn BaldwinIf the sysctl
708ec5c98bSJohn Baldwin.Va dev.mfi.%d.delete_busy_volumes
718ec5c98bSJohn Baldwinis set to 1,
728ec5c98bSJohn Baldwinthen the driver will allow mounted volumes to be removed.
7396f9425fSDoug Ambrisko.Pp
7496f9425fSDoug AmbriskoA tunable is provided to adjust the
7596f9425fSDoug Ambrisko.Nm
7625972509SEdward Tomasz Napieraladriver's behaviour when attaching to a card.
7725972509SEdward Tomasz NapieralaBy default the driver will attach to all known cards with high probe priority.
7825972509SEdward Tomasz NapieralaIf the tunable
7996f9425fSDoug Ambrisko.Va hw.mfi.mrsas_enable
8096f9425fSDoug Ambriskois set to 1,
8196f9425fSDoug Ambriskothen the driver will reduce its probe priority to allow
82*86536206STom Hukins.Xr mrsas 4
8396f9425fSDoug Ambriskoto attach to the card instead of
8496f9425fSDoug Ambrisko.Nm .
859405761fSEugene Grosbein.Pp
869405761fSEugene Grosbein.Nm
879405761fSEugene Grosbeindoes not provide ATA TRIM support.
889405761fSEugene GrosbeinRefer to
89*86536206STom Hukins.Xr mrsas 4
909405761fSEugene Grosbeinif TRIM support is required.
9191c3e790SScott Long.Sh HARDWARE
9291c3e790SScott LongThe
9391c3e790SScott Long.Nm
9491c3e790SScott Longdriver supports the following hardware:
9591c3e790SScott Long.Pp
9691c3e790SScott Long.Bl -bullet -compact
9791c3e790SScott Long.It
98473fbad3SChristian BruefferLSI MegaRAID SAS 1078
99473fbad3SChristian Brueffer.It
10091c3e790SScott LongLSI MegaRAID SAS 8408E
10191c3e790SScott Long.It
10291c3e790SScott LongLSI MegaRAID SAS 8480E
10391c3e790SScott Long.It
104c5262d45SEitan AdlerLSI MegaRAID SAS 9240
105c5262d45SEitan Adler.It
106473fbad3SChristian BruefferLSI MegaRAID SAS 9260
1076dd0e632SDoug Ambrisko.It
1086dd0e632SDoug AmbriskoDell PERC5
1096dd0e632SDoug Ambrisko.It
1106dd0e632SDoug AmbriskoDell PERC6
111a3786ac5SChristian Brueffer.It
112c5262d45SEitan AdlerIBM ServeRAID M1015 SAS/SATA
113c5262d45SEitan Adler.It
114c5262d45SEitan AdlerIBM ServeRAID M1115 SAS/SATA
115c5262d45SEitan Adler.It
11615dadd9eSChristian BruefferIBM ServeRAID M5015 SAS/SATA
11715dadd9eSChristian Brueffer.It
1186e420a36SSergey KandaurovIBM ServeRAID M5110 SAS/SATA
1196e420a36SSergey Kandaurov.It
120a3786ac5SChristian BruefferIBM ServeRAID-MR10i
121b449666bSChristian Brueffer.It
122c5262d45SEitan AdlerIntel RAID Controller SRCSAS18E
123c5262d45SEitan Adler.It
124b449666bSChristian BruefferIntel RAID Controller SROMBSAS18E
12591c3e790SScott Long.El
12691c3e790SScott Long.Sh FILES
12791c3e790SScott Long.Bl -tag -width ".Pa /dev/mfid?" -compact
12891c3e790SScott Long.It Pa /dev/mfid?
12991c3e790SScott Longarray/logical disk interface
13091c3e790SScott Long.It Pa /dev/mfi?
13191c3e790SScott Longmanagement interface
13291c3e790SScott Long.El
1338ec5c98bSJohn Baldwin.Sh DIAGNOSTICS
1348ec5c98bSJohn Baldwin.Bl -diag
1358ec5c98bSJohn Baldwin.It "mfid%d: Unable to delete busy device"
1368ec5c98bSJohn BaldwinAn attempt was made to remove a mounted volume.
1378ec5c98bSJohn Baldwin.El
13891c3e790SScott Long.Sh SEE ALSO
13948c08eb8SChristian Brueffer.Xr amr 4 ,
140f2e917f5SEdward Tomasz Napierala.Xr pci 4 ,
141f2e917f5SEdward Tomasz Napierala.Xr mfiutil 8
14291c3e790SScott Long.Sh HISTORY
14391c3e790SScott LongThe
14491c3e790SScott Long.Nm
14548c08eb8SChristian Bruefferdriver first appeared in
14608ed1329SScott Long.Fx 6.1 .
14791c3e790SScott Long.Sh AUTHORS
14848c08eb8SChristian BruefferThe
14948c08eb8SChristian Brueffer.Nm
15048c08eb8SChristian Bruefferdriver and this manual page were written by
1516c899950SBaptiste Daroussin.An Scott Long Aq Mt scottl@FreeBSD.org .
15291c3e790SScott Long.Sh BUGS
15391c3e790SScott LongThe driver does not support big-endian architectures at this time.
154