On Sat, Aug 06, 2022 at 10:16:57PM -0700, Michael Truog wrote:
> Hi,
> 
> I believe I found a common hardware RAID PCIe card that is not detected as a
> mfi device on sparc64.  There are different names for this PCIe card when
> they are sold with a cheaper card being called a "LSI SAS 9261-8i
> Controller, MPN L3-25239" sold for roughly $23 USD on ebay.  That card
> appears to be the same card sold as "Sun Storage 8-Port 6Gbps SAS RAID
> Adapter 375-3701 SGX-SAS6-R-INT-Z" though the Sun cards have higher prices. 
> Both cards create the same install CD kernel output shown below.  The card
> looks like a good cheap way to get hardware RAID levels 0, 1, 5, 6, 10, 50,
> 60 on sparc64, if it was detected.  The RAID configuration can occur in
> OpenBoot after the controller is selected with something similar to:
> {0} ok " /pci@0/pci@0/pci@8/pci@0/pci@8/LSI,mrsas@0" select-dev
> 
> Then MegaRAID command-line arguments are used with the "cli" command which
> is referred to in the documentation as PCLI (Pre-boot MegaCLI).
> 
> The mfi driver is not currently included in sys/arch/sparc64/conf/RAMDISK
> though PCI_PRODUCT_SYMBIOS_SAS2108_2 ("MegaRAID SAS2108 GEN2") is a mfi
> device based on the mention in sys/dev/pci/mfi_pci.c .

sparc64 ramdisks do not include mfi(4) or mfii(4).

> 
> The mpii driver appears to be missing from the
> https://www.openbsd.org/sparc64.html hardware information.

In fact, sparc64 currently does not build/use either of those drivers.

GENERIC.MP builds and boots fine with both enabled, but I have no
hardware to run-test these drivers.

Can anyone test this on real hardware or do we want to just enable it
for users to pick up?

If that works for Michael, I can build and boot-test RAMDISK later on.

Index: sys/arch/sparc64/conf/GENERIC
===================================================================
RCS file: /cvs/src/sys/arch/sparc64/conf/GENERIC,v
retrieving revision 1.322
diff -u -p -r1.322 GENERIC
--- sys/arch/sparc64/conf/GENERIC       2 Jan 2022 23:14:27 -0000       1.322
+++ sys/arch/sparc64/conf/GENERIC       8 Aug 2022 19:51:54 -0000
@@ -129,6 +129,8 @@ ahci*       at pci? flags 0x0000    # AHCI SATA c
                                # flags 0x0001 to force SATA 1 (1.5Gb/s)
 sili*  at pci?                 # Silicon Image 3124/3132/3531 SATA controllers
 nvme*  at pci?                 # NVMe controllers
+mfi*   at pci?                 # LSI MegaRAID SAS controllers
+mfii*  at pci?                 # LSI MegaRAID SAS Fusion controllers
 
 # PCI sound
 auacer*        at pci?                 # Acer Labs M5455

Reply via email to