Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jun 2008 13:42:23 -0700 (PDT)
From:      Doug Ambrisko <ambrisko@ambrisko.com>
To:        Karl Denninger <karl@denninger.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Management interface for cards powered by the "mfi" driver?
Message-ID:  <200806182042.m5IKgNa4022361@ambrisko.com>
In-Reply-To: <20080618153127.GA2662@FS.denninger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Karl Denninger writes:
	[snip]
| Ok, wiped the src tree, re-cvs'd out the RELENG_7, rebuild world and kernel
| and reinstalled (nice fast machine eh?)
 
Not needed since FreeBSD 6.2 if I recall right.  Forget if I got it in
6.1.

| Anyway, no change:
| 
| dbms# uname -v
| FreeBSD 7.0-STABLE #1: Wed Jun 18 14:43:29 CDT 2008 karl@dbms.denninger.net:/usr/obj/usr/src/sys/GENERIC 
| 
| dbms# megacli -adpCount
| 
| Controller Count: 0. 
| 
| dbms# megacli -Cfgdsply -a0
|                                      
| Failed to get ControllerId List.
| Failed to get CpController object.
| 
| Still no joy
| 
| dbms# kldstat
| Id Refs Address    Size     Name
|  1   17 0xc0400000 943140   kernel
|  2    1 0xc0d44000 6a2c4    acpi.ko
|  3    1 0xc5534000 7000     linprocfs.ko
|  4    3 0xc553b000 22000    linux.ko
|  5    1 0xc5585000 3000     linsysfs.ko
|  6    1 0xc7a34000 3000     daemon_saver.ko
|  7    1 0xc7c2d000 2000     mfi_linux.ko
| 
| Says I got the proper KLDs loaded.
|
| dbms# mount
| /dev/mfid0s1a on / (ufs, local, soft-updates)
| devfs on /dev (devfs, local)
| /dev/mfid0s1e on /dbms (ufs, local, soft-updates)
| /dev/mfid0s1d on /usr (ufs, local, soft-updates)
| linprocfs on /usr/compat/linux/proc (linprocfs, local)
| linsysfs on /usr/compat/linux/sys (linsysfs, local)
| 
| The two linux "look-sees" are there.
| 
| So it looks like all the pre-reqs are there, but it still doesn't work.
| 
| Here's the ID on the card and volume:
| 
| mfi0: 524 (267116948s/0x0020/0) - Adapter ticks 267116948 elapsed 61s: Time established as 06/18/08 15:09:08; (61 seconds since power on)
| mfid0: <MFI Logical Disk> on mfi0
| mfid0: 237464MB (486326272 sectors) RAID volume '' is optimal
| 
| What am I missing?

The linux version sysctl is?  Also I think you need to make sure 
mfi_linux.ko is loaded before linuxsys.ko mounts so you get the emulation
hooks.  Verify that via:
	head /compat/linux/sys/class/scsi_host/*/proc_name
results in one saying:
	megaraid_sas
or it won't think it is there.

The count is good to see if your file system & linux version sysctl
stuff is in the right state.  Once it detects it, then the ioctl should
work.  6-stable, 7-stable and -current all have the latest stuff to
support all of the ioctl stuff as Linux does for MegaCli.  MegaCli
does various things to try to find the card in Linux that is really
strange IMHO.  For FreeBSD it doesn't have to be that complicated.
They unfortunately, have not released a FreeBSD MegaCli which they
could ...

Doug A.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806182042.m5IKgNa4022361>