[mps] LSI SAS2008 (IBM M1015) on 8.2-PRERELEASE with mps from CURRENT

Bill Desjardins bill at ethernext.com
Sat Dec 4 02:17:28 UTC 2010


Hi,

I am trying to get the mps(4) LSI SAS2008 driver from 9 CURRENT working on 8.2
PRERELEASE. at first, it was not recognized but I made the following changes
to the mps driver and it now does attach but is still not working. I do not
get any entry for mps in /dev/, and no drives show up. I currently have 4
controllers in the system and all cards have been updated to the latest lsi
9240-8i firmware. controllers mps1 and mps2 have 4 drives on each, mps0 and
mps3 have no drives attached.

in /usr/src/sys/dev/mps/mps_pci.c, I modified the SAS2008 entries to:

{ MPI2_MFGPAGE_VENDORID_LSI, MPI2_MFGPAGE_DEVID_SAS2008_1,
    0xffff, 0xffff, 0, "LSI SAS2008" },
{ MPI2_MFGPAGE_VENDORID_LSI, MPI2_MFGPAGE_DEVID_SAS2008_2,
    0xffff, 0xffff, 0, "LSI SAS2008" },

in /usr/src/sys/dev/mps/mpi/mpi2_cnfg.h I modified the #define
MPI2_MFGPAGE_DEVID_SAS2008 entry to:

#define MPI2_MFGPAGE_DEVID_SAS2008_1                (0x0072)
#define MPI2_MFGPAGE_DEVID_SAS2008_2                (0x0073)

(sorry, I am not a developer and do not know how to generate the diff.
if you would like me to let me know what to do and I will post it
here.)

here is some info on the system:

system is a dual opteron quad-core, supermicro H8DA3-2, 8GB. the
drives are a mix of 1TB seagate constellation ES sas 6Gbps and seagate
146GB seagate 15k6.

uname:

FreeBSD esas2.ethernap.net 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0:
Fri Dec  3 20:13:09 EST 2010     bill at esas2:/usr/obj/usr/src/sys/MPS
amd64

pciconf -lvc:

mps0 at pci0:5: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 x4(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

mps1 at pci0:7: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 x8(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

mps2 at pci0:132: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 x4(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

mps3 at pci0:134: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 x8(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


here is the syslog messages loading mps:

mps0: <LSI SAS2008> port 0xa000-0xa0ff mem
0xdfefc000-0xdfefffff,0xdfe80000-0xdfebffff irq 18 at device 0.0 on
pci5
device_attach: mps0 attach returned 6
mps1: <LSI SAS2008> port 0xb000-0xb0ff mem
0xdfffc000-0xdfffffff,0xdff80000-0xdffbffff irq 19 at device 0.0 on
pci7
device_attach: mps1 attach returned 6
mps2: <LSI SAS2008> port 0xd000-0xd0ff mem
0xddefc000-0xddefffff,0xdde80000-0xddebffff irq 40 at device 0.0 on
pci132
device_attach: mps2 attach returned 6
mps3: <LSI SAS2008> port 0xe000-0xe0ff mem
0xddffc000-0xddffffff,0xddf80000-0xddfbffff irq 41 at device 0.0 on
pci134
device_attach: mps3 attach returned 6

syslog messages when unloading mps:

Warning: memory type mps leaked memory on destroy (4 allocations, 256
bytes leaked).


Please let me know if more information is needed. I can provide full access to
the server if needed to gather more information.

Thank you,

Bill


More information about the freebsd-scsi mailing list