summaryrefslogtreecommitdiffstats
path: root/sys/modules/mrsas
diff options
context:
space:
mode:
authorambrisko <ambrisko@FreeBSD.org>2014-05-07 16:16:49 +0000
committerambrisko <ambrisko@FreeBSD.org>2014-05-07 16:16:49 +0000
commitc1476c6e0a7edecd0b9a2d0bef6c82952a2ad780 (patch)
tree59842b528beff900e3bc9474a7f8b80116cb0b05 /sys/modules/mrsas
parent71833a00dd14f8605b059dc52c33f7bdbab6be23 (diff)
downloadFreeBSD-src-c1476c6e0a7edecd0b9a2d0bef6c82952a2ad780.zip
FreeBSD-src-c1476c6e0a7edecd0b9a2d0bef6c82952a2ad780.tar.gz
Add mrsas(4) driver from LSI official support of newer MegaRAID SAS
cards. LSI has been maintaining this driver outside of the FreeBSD tree. It overlaps support of ThunderBolt and Invader cards that mfi(4) supports. By default mfi(4) will attach to cards. If the tunable: hw.mfi.mrsas_enable=1 is set then mfi(4) will not probe and attach to these newer cards and allow mrsas(4) to attach. So by default this driver will not effect a FreeBSD system unless mfi(4) is removed from the kernel or the tunable is enabled. mrsas(4) attaches disks to the CAM layer so it depends on CAM and devices show up as /dev/daX. mfiutil(8) does not work with mrsas. The FreeBSD version of MegaCli and StorCli from LSI do work with mrsas. It appears that StorCli only works with mrsas. MegaCli appears to work with mfi(4) and mrsas(4). It would be good to add mfiutil(4) support to mrsas, emulations modes, kernel logging, device aliases to ease the transition between mfi(4) and mrsas(4). Style issues should be resolved by LSI when they get committers approved. The plan is get this driver in FreeBSD 9.3 to improve HW support. Thanks to LSI for developing, testing and working with FreeBSD to make this driver co-exist in FreeBSD. This improves the overall support of MegaRAID SAS. Submitted by: Kashyap Desai <Kashyap.Desai@lsi.com> Reviewed by: scottl MFC after: 3 days Sponsored by: LSI
Diffstat (limited to 'sys/modules/mrsas')
-rw-r--r--sys/modules/mrsas/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/modules/mrsas/Makefile b/sys/modules/mrsas/Makefile
new file mode 100644
index 0000000..7ff6c81
--- /dev/null
+++ b/sys/modules/mrsas/Makefile
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../dev/mrsas
+
+KMOD= mrsas
+SRCS= mrsas.c mrsas_cam.c mrsas_ioctl.c mrsas_fp.c
+SRCS+= device_if.h bus_if.h pci_if.h opt_cam.h opt_scsi.h
+
+#CFLAGS+= -MRSAS_DEBUG
+.include <bsd.kmod.mk>
+#CFLAGS+= -fgnu89-inline
+
+clean_cscope:
+ rm -f cscope*
+
+cscope: clean_cscope
+ /usr/local/bin/cscope -b *.[ch]
+
+cleanall: clean clean_cscope
+ rm -f '@' machine
OpenPOWER on IntegriCloud