Bug 201716 - mrsas adapter initialize fail
Summary: mrsas adapter initialize fail
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-20 13:01 UTC by prlw1
Modified: 2015-07-21 14:25 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description prlw1 2015-07-20 13:01:47 UTC
I popped a MegaRAID SAS card:

vendor 0x1000 device 0x5f subvendor 0x1014 subdevice 0x456
       SYMBIOS      SAS3008         IBM   ?? "ServeRAID M1215" ?

into a box I'm building, booted a snapshot kernel:

FreeBSD 11.0-CURRENT #0 r285616: Thu Jul  16 02:21:59 UTC 2015
    root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64

and see:

AVAGO MegaRAID SAS FreeBSD mrsas driver version: 06.707.05.00-fbsd
mrsas0: <AVAGO Fury SAS Controller> port 0xe000-0xe0ff mem 0xf7a00000-0xf7a0ffff,0xf7900000-0xf79fffff irq 16 at device 0.0 on pci1
mrsas0: Using MSI-X with 4 number of vectors
mrsas0: FW supports <96> MSIX vector,Online CPU 4 Current MSIX <4>
mrsas0: IOC Init failed, status = 0x3
mrsas0: Adapter intialize Fail.
device_attach: mrsas0 attach returned 6

Just to check that the card is OK, I tried Debian, where the card is recognised:

Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24)
...
megasas: 06.803.01.00-rc1 Mon. Mar. 10 17:00:00 PDT 2014
megasas: 0x1000:0x005f:0x1014:0x0456: bus 1:slot 0:func 0
libata version 3.00 loaded.
ahci 0000:00:1f.2: version 3.0
ahci 0000:00:1f.2: irq 43 for MSI/MSI-X
megasas: FW now in Ready state
megaraid_sas 0000:01:00.0: irq 43 for MSI/MSI-X
megaraid_sas 0000:01:00.0: irq 44 for MSI/MSI-X
megaraid_sas 0000:01:00.0: irq 45 for MSI/MSI-X
megaraid_sas 0000:01:00.0: irq 46 for MSI/MSI-X
megaraid_sas 0000:01:00.0: [scsi0]: FW supports <96> MSIX vector,Online CPUs: <4>,Current MSIX <4>

I take it that if Debian is mentioning scsi0, then the adapter providing the scsibus must have initialised successfully.

Any idea what the FreeBSD mrsas driver is doing differently?
Comment 1 prlw1 2015-07-21 14:25:30 UTC
Update: tried the ServeRAID mrsas card in an IBM System x3550 M5 server, with
a SAS disk attached.

Same issue: FreeBSD times out while trying to attach the mrsas driver. Debian sees the gpt partitions on the disk.

Recap, but this time on IBM server:

vendor 0x1000 device 0x5f subvendor 0x1014 subdevice 0x456
       SYMBIOS      SAS3008         IBM   ?? "ServeRAID M1215" ?

FreeBSD 11.0-CURRENT #0 r285616: Thu Jul 16 02:21:59 UTC 2015
    root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64

AVAGO MegaRAID SAS FreeBSD mrsas driver version: 06.707.05.00-fbsd
mrsas0: <AVAGO Fury SAS Controller> port 0x1000-0x10ff mem 0x91c00000-0x91c0ffff,0x91b00000-0x91bfffff irq 26 at device 0.0 on pci1
mrsas0: Using MSI-X with 12 number of vectors
mrsas0: FW supports <96> MSIX vector,Online CPU 12 Current MSIX <12>
mrsas0: MSI-x interrupts setup success
mrsas0: Internal command timed out after 180 seconds.



Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24)

megasas: 06.803.01.00-rc1 Mon. Mar. 10 17:00:00 PDT 2014
megasas: 0x1000:0x005f:0x1014:0x0456: bus 1:slot 0:func 0
megasas: FW now in Ready state
megaraid_sas 000:01:00.0: irq 76 for MSI/MSI-X
...
megasas:IOC Init cmd success
megasas: INIT adapter done
megaraaid_sas 0000:01:00.0: Controller type: iMR
scsi0 : LSI SAS based MegaRAID driver
...
sd 0:0:10:0: [sda] Attached SCSI disk