From owner-freebsd-stable@FreeBSD.ORG Fri Jun 20 04:38:11 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76EB6106564A for ; Fri, 20 Jun 2008 04:38:11 +0000 (UTC) (envelope-from karl@FS.denninger.net) Received: from FS.denninger.net (wsip-70-169-168-7.pn.at.cox.net [70.169.168.7]) by mx1.freebsd.org (Postfix) with ESMTP id 148958FC16 for ; Fri, 20 Jun 2008 04:38:10 +0000 (UTC) (envelope-from karl@FS.denninger.net) Received: from fs.denninger.net (localhost [127.0.0.1]) by FS.denninger.net (8.14.2/8.13.1) with SMTP id m5K4bCX8011252 for ; Thu, 19 Jun 2008 23:37:12 -0500 (CDT) (envelope-from karl@FS.denninger.net) Received: from fs.denninger.net [127.0.0.1] by Spamblock-sys (LOCAL); Thu Jun 19 23:37:12 2008 Received: (from karl@localhost) by FS.denninger.net (8.14.2/8.13.1/Submit) id m5K4bCDA011248 for freebsd-stable@freebsd.org; Thu, 19 Jun 2008 23:37:12 -0500 (CDT) (envelope-from karl) Date: Thu, 19 Jun 2008 23:37:12 -0500 From: Karl Denninger To: freebsd-stable@freebsd.org Message-ID: <20080620043712.GA7635@FS.denninger.net> Mail-Followup-To: freebsd-stable@freebsd.org References: <20080618153127.GA2662@FS.denninger.net> <200806182042.m5IKgNa4022361@ambrisko.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200806182042.m5IKgNa4022361@ambrisko.com> User-Agent: Mutt/1.4.2.3i Organization: Karl's Sushi and Packet Smashers X-Die-Spammers: Spammers cheerfully broiled for supper and served with ketchup! Subject: Re: Management interface for cards powered by the "mfi" driver? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2008 04:38:11 -0000 On Wed, Jun 18, 2008 at 01:42:23PM -0700, Doug Ambrisko wrote: > 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: 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. BINGO! That did it. > 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 ... It looks like I need to explicitly set those to load in the /boot/loader.conf instead of letting them autoload on demand... -- Karl Denninger karl@denninger.net