From owner-freebsd-drivers@FreeBSD.ORG Thu Sep 1 21:16:28 2005 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3276116A420 for ; Thu, 1 Sep 2005 21:16:28 +0000 (GMT) (envelope-from heiko@wecos.de) Received: from mail.terminmarktwelt.de (mail.terminmarktwelt.de [217.6.66.203]) by mx1.FreeBSD.org (Postfix) with SMTP id 0899943D48 for ; Thu, 1 Sep 2005 21:16:26 +0000 (GMT) (envelope-from heiko@wecos.de) Received: (qmail 85965 invoked by uid 98); 1 Sep 2005 21:16:25 -0000 Received: from 192.168.168.242 by mail.terminmarktwelt.de (envelope-from , uid 82) with qmail-scanner-1.25 ( Clear:RC:1(192.168.168.242):. Processed in 0.057231 secs); 01 Sep 2005 21:16:25 -0000 X-Qmail-Scanner-Mail-From: heiko@wecos.de via mail.terminmarktwelt.de X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.168.242):. Processed in 0.057231 secs) Received: from unknown (HELO ?192.168.168.242?) (192.168.168.242) by 192.168.168.203 with SMTP; 1 Sep 2005 21:16:25 -0000 From: Heiko Weber Organization: Wecos To: John Baldwin Date: Thu, 1 Sep 2005 23:17:40 +0200 User-Agent: KMail/1.8 References: <200509010936.12902.heiko@wecos.de> <200509011111.10814.jhb@FreeBSD.org> In-Reply-To: <200509011111.10814.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509012317.40551.heiko@wecos.de> Cc: freebsd-drivers@freebsd.org Subject: Re: amr driver not working in SMP / apic X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2005 21:16:28 -0000 Am Donnerstag, 1. September 2005 17:11 schrieb John Baldwin: > On Thursday 01 September 2005 03:36 am, Heiko Weber wrote: > > Hello, > > > > I have a Fujitsu Siemens TX200 S2 (2x Xeon on board) with a LSI MegaRAID > > 320-0X. I configured a RAID 5 disk array - but the problem dont go away > > if I configure no raid (only physical drives). > > > > If I boot GENERIC with "apic" enabled in the kernel the amr driver > > responses > > > > amr0: adapter is busy > > > > three times, then the system hangs. If I disable "apic" the system boots > > as expected, the logical drive could be used for installation. The amr > > driver prints two lines about the size of the logical drive instead. > > > > I installed the system in "safe mode", everything works as expected. But > > if I enable "apic", the "busy" comes up. I tried building a new SMP > > kernel, same as above: using a "one line" empty loader.conf with disabled > > apic makes the system running. I tried some combinations of acpi, apic, > > ata-dma, .... (the system only has a ata cdrom). No chance, only disabled > > apic get it up. > > > > I tried FreeBSD 5.4-stable. I also downloaded a (unsupported) driver from > > LSI webserver, this prints the size of the logical array, but hangs too. > > I then compared the native 5.4 driver with the -current, only one > > cosmetic changes. So I expect testing -CURRENT has no effect ? > > > > Is it worth to spend time on this? Is it a bug? > > What happens if you disable ACPI but leave APIC enabled, does amr still > break? Also, does 4.x work ok on this system with SMP and APIC_IO? Hi John ! FreeBSD 5.4 will not boot if APIC is enabled, no matter if ACPI is on or off. Hey, the tipp with 4.x was great, I downloaded a 4.11-mini-inst.iso, boot was ok, installed a minimal system, added option SMP with APIC to the kernel-config, build kernel, and SUPER: 4.11 booted with SMP from logical RAID 5 array. Then I downloaded the boot-only image from 6-CURRENT (BETA3), and tried to boot: SUPER, it looks like the kernel is allready a SMP kernel, it detects bot Xeons, started 4 (virtual) CPUs as in 4.11. At the setup-screen I viewed into partitions, sounds ok ... Hmm, reviewing the boot-log (with scroll-lock) of 6-CURRENT I "missed" something, which I've seen each boot with 5.4, so I restarted the machine with the 5.4 cdrom. Just before the mystery "amr0: adapter is busy" there are 3 lines with ata1-master - I thought it is there because there is only a cdrom installed (harddisk are scsi), but maybe ... : md0: Preloaded image 4423680 bytes at 0xc09dde24 ata1-master: FAILURE - ATAPI_IDENTIFY timed out ata1-master: FAILURE - ATAPI_IDENTIFY timed out ata1-master: FAILURE - ATAPI_IDENTIFY timed out amr0: adapter is busy amr0: adapter is busy amr0: adapter is busy Well, now, what to do next ? Go into production (apache webserver with perl & mysql database) on an "older" 4.11 or an really new 6-BETA3 ? Heiko -- Heiko Weber : heiko(-at-)wecos.de