]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
First cut at updating mfi(4) to support newer LSI MegaRAID SAS cards.
authorDoug Ambrisko <ambrisko@FreeBSD.org>
Fri, 4 Nov 2011 02:34:52 +0000 (02:34 +0000)
committerDoug Ambrisko <ambrisko@FreeBSD.org>
Fri, 4 Nov 2011 02:34:52 +0000 (02:34 +0000)
commit0d9a4ef39c9cb332b90872893d0d068f0ede0217
tree1a1489b799c624639a0f10fe72c656d2f2963eab
parenta73cbbef8abbfafbf1a44cda4e2ca76939ef0fbd
First cut at updating mfi(4) to support newer LSI MegaRAID SAS cards.
Specifically, add support for "Drake Skinny" and "ThunderBolt" LSI
cards.

Initial code was supplied by LSI under BSD license.  Several improvements
were done by myself.  Such things like making it work in a static kernel,
be able to boot of the RAID, performance improvements.  I removed some
fairly complicated code that seemed to directly access the disks under
the firmware.  It doesn't seem to be needed and significantly slowed
down the performance of the driver and caused tons of sense errors to
be reported.

This code is being checked in this area so others can help me get it into
shape to commit into the FreeBSD tree.  Assistance has been volunteered
by iXsystems.

We might want to re-work the JBOD attachment that creates /dev/mfisyspd?
node for each disk.

Performance is faster then prior cards.  It works okay with WITNESS
and INVARIANTS on amd64 and i386.  I recall seeing a use after
free time bug with FreeBSD 8 and a Drake Skinny card with WITNESS
and INVARIANTS on.

First task is get all of the new structures to be named in FreeBSD
style format.

Next is probably to deal with the 64bit addressing changes that are
mostly around the #ifdef __amd64__ checks.

Thanks to LSI for providing the initial code.

Obtained from: LSI
12 files changed:
sys/conf/files
sys/dev/mfi/mfi.c
sys/dev/mfi/mfi_cam.c
sys/dev/mfi/mfi_disk.c
sys/dev/mfi/mfi_ioctl.h
sys/dev/mfi/mfi_linux.c
sys/dev/mfi/mfi_pci.c
sys/dev/mfi/mfi_syspd.c [new file with mode: 0644]
sys/dev/mfi/mfi_tbolt.c [new file with mode: 0644]
sys/dev/mfi/mfireg.h
sys/dev/mfi/mfivar.h
sys/modules/mfi/Makefile