From owner-freebsd-stable@FreeBSD.ORG Wed Oct 11 14:20:34 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A830E16A407 for ; Wed, 11 Oct 2006 14:20:34 +0000 (UTC) (envelope-from sven@dmv.com) Received: from smtp-gw-cl-d.dmv.com (smtp-gw-cl-d.dmv.com [216.240.97.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96BA043D49 for ; Wed, 11 Oct 2006 14:20:30 +0000 (GMT) (envelope-from sven@dmv.com) Received: from mail-gw-cl-a.dmv.com (mail-gw-cl-a.dmv.com [216.240.97.38]) by smtp-gw-cl-d.dmv.com (8.12.10/8.12.10) with ESMTP id k9BEK2JX069381; Wed, 11 Oct 2006 10:20:02 -0400 (EDT) (envelope-from sven@dmv.com) Received: from lanshark.dmv.com (lanshark.dmv.com [216.240.97.46]) by mail-gw-cl-a.dmv.com (8.12.9/8.12.9) with ESMTP id k9BEJvXi069676; Wed, 11 Oct 2006 10:20:02 -0400 (EDT) (envelope-from sven@dmv.com) From: Sven Willenberger To: Doug Ambrisko In-Reply-To: <200610110511.k9B5Bk6D037708@ambrisko.com> References: <200610110511.k9B5Bk6D037708@ambrisko.com> Content-Type: text/plain Date: Wed, 11 Oct 2006 10:27:39 -0400 Message-Id: <1160576859.10492.5.camel@lanshark.dmv.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.48 on 216.240.97.42 X-Scanned-By: MIMEDefang 2.48 on 216.240.97.38 Cc: freebsd-stable@freebsd.org Subject: Re: Megacli fails to find SAS adapter 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: Wed, 11 Oct 2006 14:20:34 -0000 On Tue, 2006-10-10 at 22:11 -0700, Doug Ambrisko wrote: > Sven Willenberger writes: > | FreeBSD 6.2-PRERELEASE #3: Tue Oct 10 13:58:29 EDT 2006 > | LSi 8480e SAS Raid card > | > | mount: > | linprocfs on /compat/linux/proc (linprocfs, local) > | linsysfs on /compat/linux/sys (linsysfs, local) > | /dev/mfid0s1d on /usr/local/pgsql (ufs, local, noatime) > | > | dmesg: > | mfi0: 2025 - PCI 0x041000 0x04411 0x041000 0x041002: Firmware initialization started (PCI ID 0411/1000/1002/1000) > | mfi0: 2026 - Type 18: Firmware version 1.00.00-0074 > | mfi0: 2027 - Battery temperature is normal > | mfi0: 2028 - Battery Present > | mfi0: 2029 - PD 39(e1/s255) event: Enclosure (SES) discovered on PD 27(e1/s255) > | mfi0: 2030 - PD 56(e2/s255) event: Enclosure (SES) discovered on PD 38(e2/s255) > | mfi0: 2031 - PD 39(e1/s255) event: Inserted: PD 27(e1/s255) > | mfi0: 2032 - Type 29: Inserted: PD 27(e1/s255) Info: enclPd=27, scsiType=d, portMap=10, sasAddr=50015b2180001839,0000000000000000 > | mfi0: 2033 - PD 56(e2/s255) event: Inserted: PD 38(e2/s255) > | > | pkg_info: > | linux_base-fc-4_9 > | > | I have downloaded the Megacli and, using rpm2cpio extracted > | MegaCli-1.01.09-0.i386.rpm into my home directory. > | > | ~/usr/sbin/MegaCli > | brandelf -t Linux usr/sbin/MegaCli > | > | cd usr/sbin > | > | # ./MegaCli -EncInfo -aALL > | > | ERROR:Could not detect controller. > | # ./MegaCli -CfgDsply -aALL > | > | ERROR:Could not detect controller. > | > | Do I actually need to set up the links in /compat/linux/sys for the SAS > | raid card? or should this rpm be installed into the /compat/linux > | directory? I need to upgrade the firmware on this card as for some > | reason the webbios will not let me configure a Raid10 array and the only > | way I can see to upgrade the fw is to use the megacli utility. > > Make sure you have the Linux ioctl module loaded before linsysfs so it > can register the hooks. kldstat/kernel config will help. One sanity > check is to do: > dhcp194:ambrisko 11] cat /compat/linux/sys/class/scsi_host/host*/proc_name > megaraid_sas > (null) > dhcp194:ambrisko 12] > > If you don't see megaraid_sas then it isn't going to work and is > missing the linux mfi module. Also > you need to set: > sysctl compat.linux.osrelease=2.6.12 > or things won't work well. This will probably break your fc-4_9 Linux > install until the updates to Linux emulation is merged (maybe it > has but I don't think so). Since it is a static binary we don't have > linux base installed. > > Doug A. > _______________________________________________ Adding mfi_linux_enable="YES" to /boot/loader.conf did do the trick of having the device added to the system: # cat /compat/linux/sys/class/scsi_host/host*/proc_name (null) megaraid_sas (null) # sysctl compat.linux compat.linux.oss_version: 198144 compat.linux.osrelease: 2.6.12 compat.linux.osname: Linux Although the MegaCli utility no longer complains about not finding a controller, it sadly does nothing else either (except dump core on certain commands): # ./MegaCli -AdpAllinfo -a0 # ./MegaCli -AdpGetProp SpinupDriveCount -a0 Segmentation fault (core dumped) # ./MegaCli -LDGetNum -a0 Failed to get VD count on adapter -9993. # ./MegaCli -CfgFreeSpaceinfo -a0 Failed to initialize RM and so on ... I am guessing this is an issue with the MegaCli software now; needless to say I certainly doubt that this will allow me to flash the card bios (or even it if *could*, I would be leery of the process).