MPT2.0 driver for LSI SAS 2008/2108

I too have a Supermicro board with LSI SAS 2008. I followed the instructions for an upgrade to -STABLE, despite being new to FreeBSD. The upgrade turned out fine, but the mps driver is not working.

On IRC, someone told me the reason that the card isn't detected is because vendor and manufacturing id's are set to 0xffff in /usr/src/sys/dev/mps/mps_pci.c.
 
serverhamster said:
I too have a Supermicro board with LSI SAS 2008. I followed the instructions for an upgrade to -STABLE, despite being new to FreeBSD. The upgrade turned out fine, but the mps driver is not working.

On IRC, someone told me the reason that the card isn't detected is because vendor and manufacturing id's are set to 0xffff in /usr/src/sys/dev/mps/mps_pci.c.

And that's fixable?
 
Further research:
Code:
# pciconf -lv
none2@pci0:3:0:0:       class=0x010700 card=0x040015d9 chip=0x00731000 rev=0x02 hdr=0x00
    vendor     = 'LSI Logic (Was: Symbios Logic, NCR)'
    class      = mass storage
    subclass   = SAS
According to a small discussion at http://docs.freebsd.org/cgi/mid.cgi?AANLkTin6nhHUVFHvqj9uX7Ku+b33RravcaG3orL+a53_ there are serious bugs in the reference code and the card simply isn't supported at this point. :(

Is there anything I can do to make it work? (Learning C and basic driver development might be a practical answer, but I'd like a faster solution for now.)
 
I just plugged my AOC-USAS2-L8i in and so far things seem to be good:

Code:
mps0: <LSI SAS2008> port 0xe000-0xe0ff mem 0xfe5c0000-0xfe5c3fff,0xfe580000-0xfe5bffff irq 16 at device 0.0 on pci1
mps0: Firmware: 07.00.00.00
mps0: IOCCapabilities: 185c<ScsiTaskFull,DiagTrace,SnapBuf,EEDP,TransRetry,IR>
mps0: [ITHREAD]

Mine has the following IDs:

Code:
mps0@pci0:1:0:0:	class=0x010700 card=0x040015d9 chip=0x00721000 rev=0x02 hdr=0x00

And here's a Caviar Black attached to it:

Code:
da0 at mps0 bus 0 scbus0 target 0 lun 0
da0: <ATA WDC WD2002FAEX-0 1D05> Fixed Direct Access SCSI-5 device 
da0: 600.000MB/s transfers
da0: Command Queueing enabled
da0: 1907729MB (3907029168 512 byte sectors: 255H 63S/T 243201C)

I haven't done anything more than some test dd transfers from the drives. Later this weekend I'll be putting a RAIDZ2 vdev on it...
 
I went with LSI 1068E ppl, I don't handel bs when it comes to this.

Anyway, no problem just to upgrade whenever stuff work and I need more then 100 TB of storage..
 
I got a new board because the LSI SAS card had defective firmware. Using 8.2-STABLE it shows:
Code:
mps0@pci0:3:0:0:        class=0x010700 card=0x040015d9 chip=0x00721000 rev=0x02 hdr=0x00
    vendor     = 'LSI Logic (Was: Symbios Logic, NCR)'
    class      = mass storage
    subclass   = SAS
Notice the chip=0x0072 instead of chip=0x0073. There are 3 types of firmware for this card:
  • iMR: Provided by a hardware key I originally used. Provides RAID5.
  • IR: Provides other RAID (not 5)
  • IT: HBA mode with older firmware. No RAID. This works and is what we want.
Taking out the hardware key was a trip down memory lane. (read: MSDOS)
 
serverhamster said:
I got a new board because the LSI SAS card had defective firmware. Using 8.2-STABLE it shows:
Code:
mps0@pci0:3:0:0:        class=0x010700 card=0x040015d9 chip=0x00721000 rev=0x02 hdr=0x00
    vendor     = 'LSI Logic (Was: Symbios Logic, NCR)'
    class      = mass storage
    subclass   = SAS
Notice the chip=0x0072 instead of chip=0x0073. There are 3 types of firmware for this card:
  • iMR: Provided by a hardware key I originally used. Provides RAID5.
  • IR: Provides other RAID (not 5)
  • IT: HBA mode with older firmware. No RAID. This works and is what we want.
Taking out the hardware key was a trip down memory lane. (read: MSDOS)
Do you have the AOC-USAS2-L8i, or which one? How did your card ship, and what works with mps(4)?

My L8i came as 0x0072 out the box, and worked fine with mps(4) and all disks showing up as if it were an HBA.

Strangely, everything I read about this card is that it ships with IR firmware, and indeed its BIOS shows RAID0/RAID1 options. It seems to just present raw disks to the OS if no hardware RAID volume is setup, so not sure what is the point of the IT firmware?
 
aragon said:
Do you have the AOC-USAS2-L8i, or which one? How did your card ship, and what works with mps(4)?
The card came onboard a SuperMicro H8DG6-F motherboard. The only thing I know is that it's based on the LSI 2008 IC. The motherboard manual lists it as a 'Integrated LSI 2008 SAS2 controller'. The iMR firmware capabilities are provided by an optional AOC-SAS2-RAID5-KEY RAID5.

aragon said:
My L8i came as 0x0072 out the box, and worked fine with mps(4) and all disks showing up as if it were an HBA.

Strangely, everything I read about this card is that it ships with IR firmware, and indeed its BIOS shows RAID0/RAID1 options. It seems to just present raw disks to the OS if no hardware RAID volume is setup, so not sure what is the point of the IT firmware?

The original board came with older iMR firmware and didn't recognize the full capacity of the advanced format drives I'm using. The replacement board came with v7 IR firmware. I flashed it to IT firmware because of all the recommendations to use IT firmware for ZFS. I'm not entirely convinced that IT and IR are any different for single disks though. They are both 0x0072.
 
I have an IBM Serverraid m1015 Controller (LSI 9240), and it has chip=0x00731000 and I can confirm that it's not detected with the FreeBSD 8.2-STABLE snapshot dated 2011.05.20.
Is there a roadmap for the development around this driver?

The controller is cheap, fast and most important for me is that it supports 3TB harddrives.
 
Fantastic! I can confirm that following that example will make your IBM ServeRaid m1015 work great in FreeBSD 8 Stable! Even hot swapping works fine!

I've not stress tested it yet though.
 
How did you get it to work? Flashed my IBM M1015 as an LSI 9211 in IT Mode (also tried 9240 still a no go).

Code:
none2@pci0:4:0:0:       class=0x010700 card=0x30401000 chip=0x00721000 rev=0x02 hdr=0x00
    vendor     = 'LSI Logic (Was: Symbios Logic, NCR)'
    class      = mass storage
    subclass   = SAS

pci4: <mass storage, SAS> at device 0.0 (no driver attached)

FreeBSD 8.2

And it's still not detecting HDDs. Mainboard BIOS picks them up. FreeBSD BTX loader sees them. When FreeBSD boots: nothing.
 
serverhamster said:
On IRC, someone told me the reason that the card isn't detected is because vendor and manufacturing id's are set to 0xffff in /usr/src/sys/dev/mps/mps_pci.c.

Ok, so how do I change /usr/src/sys/dev/mps/mps_pci.cto work?

Code:
 { MPI2_MFGPAGE_VENDORID_LSI, MPI2_MFGPAGE_DEVID_SAS2008,
            0xffff, 0xffff, 0, "LSI SAS2008" },

is the code in the file.

Code:
ecap 0004[128] = unknown 1
none1@pci0:6:0:0:	class=0x010400 card=0x03b11014 chip=0x00731000 rev=0x02 hdr=0x00
    vendor     = 'LSI Logic (Was: Symbios Logic, NCR)'
    class      = mass storage
    subclass   = RAID
    cap 01[50] = powerspec 3  supports D0 D1 D2 D3  current D0
    cap 10[68] = PCI-Express 2 endpoint max data 128(4096) link x2(x8)
    cap 03[d0] = VPD
    cap 05[a8] = MSI supports 1 message, 64 bit 
    cap 11[c0] = MSI-X supports 15 messages in map 0x14
ecap 0001[100] = AER 1 0 fatal 0 non-fatal 1 corrected
ecap 0004[138] = unknown 1
is the PCI card's details.

Stock card is chip=0x00731000 X Flashed Cards are chip=0x00721000.

This is really starting to bug me now.

I have

3x M1015
1x Stock
1x 9240 Firmware
1x 9211 IT Firmware

and none are working in FreeBSD, even after trying 8.2-STABLE and 9-CURRENT, yet a basic MS DOS 7 disk picks up the HDDs.

Another issue is in 9-CURRENT:

# atacontrol list
Code:
atacontrol: control device not found: No such file or directory

# uname -a
Code:
FreeBSD  9.0-CURRENT FreeBSD 9.0-CURRENT #3: Mon Jun 13 11:37:34 EST 2011     root@:/usr/obj/usr/src/sys/GENERIC  i386
 
Rudde said:
@rdeiriar, do it work perfect with 32-bit or 64-bit?

I'm building a rig now and it's Supermicro X8ST3-F (LSI 1068E) vs Supermicro X8DTH-6F (LSI 2008) which I am going to run together with HP SAS Expander and FreeBSD x64.

So if I can't be sure that LSI 2008 will do the job with FreeBSD x64 (I don't want any BS) I'll go for LSI 1068E but If there is good support for LSI 2008 I really want it.

I read around at other forums that they don't trust LSI 2008 and FreeBSD for some reason. So I made a account here to ask.

I hope anyone can help me out here :S

======================================================================================

We have FreeBSD 8.1 booting fine on the SuperMicro X8DTL-6F SAS port, and I have run some pretty extensive drive benchmarks with SAS OS and four SAS data drives. BUT, AFAIK, there is still no RAID1 support for this setup. We want to mirror the OS drive and then the other 6 SAS ports are for pass through data drives (no RAID).

Anyone know the status of RAID1 support for this X8DTL-6F with the embedded LSI2008?
 
New binary driver from lsi

I have been struggling on getting the mps driver to access all the drives on the 12 bays of a Dell R515 without success. For the first 6 bays, everything is working fine. Has anyone succeeded in getting more than 6 drives working with the current driver?

I have found the following that seem to indicate that there is a binary version of the driver available for Freebsd. I could not find the binary. Has anyone found it and tried it?

http://www.lsi.com/downloads/Public/Solid%20State%20Storage/WarpDrive%20SLP-300/LSI_SSS_P3/MPSLSI_FreeBSD_P3.txt

Francois
 
16 Drives in 8 disk Groups

when I get around to swapping main boards over it will be 24 disk 3x PCI-e cards

but I have no idea how I even got it working I think I was using 9 beta

planing on getting stuck back into it next month as that's when I run out of hdd space again
 
9212-4i4e working with mps in 201105 8.2-STABLE snapshot

I bought a used IBM-branded LSI 9212-4i4e HBA Card (Option - 46M0907 FRU - 68Y7354) to put in an HP DL140 G3. I had already installed a pure ZFS setup with only swap outside the mirrored ZFS pool, but of course since I was using 8.2-RELEASE it couldn't do anything with the SAS2008-based controller. (The controller had IT firmware loaded when I received it.)

I downloaded the amd64-memstick version of 201105 8.2-STABLE from ftp://ftp.freebsd.org/pub/FreeBSD/snapshots, booted it up, and lo and behold the mps(4) driver has done it's thing - I can see the four external drives attached to the 9212.

So far so good, but I do have a question. I notice if I load the AHCI module before booting, the drives on the internal Intel SATA controller show up as ada devices, but the drives on the 9212 still show up as da devices. I understand AHCI enables some good things - is mps(4) doing this under the covers, or am I missing out on something there?


(Drafted that last night, before I reinstalled from 8.2-STABLE. Just went ahead with the drives as the mps(4) driver presented them (da0-da3). Last restore is running now, time for me to get some sleep...)
 
I am trying to create a custom FreeBSD ISO as it is unable to detect the hard disk (LSI MegaRAID SAS 9240-xx). It didn't work for me. Any idea how can I get it fixed?
 
# echo mps_load="YES">> /boot/loader.conf
how ever I can not rerember what the difference is with having '
# echo 'mps_load="YES"'>> /boot/loader.conf

that might be a possibility I just used 9.0 RC2 and it was built into the kernel but not enabled

how ever I am assuming you have already tried that
 
Back
Top