From owner-freebsd-current@FreeBSD.ORG Tue Jul 12 18:31:12 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EC3016A41C for ; Tue, 12 Jul 2005 18:31:12 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3CCF43D49 for ; Tue, 12 Jul 2005 18:31:11 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from [10.50.40.201] (Not Verified[65.202.103.25]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Tue, 12 Jul 2005 14:45:16 -0400 From: John Baldwin To: freebsd-current@freebsd.org Date: Tue, 12 Jul 2005 10:24:49 -0400 User-Agent: KMail/1.8 References: <70e8236f05070208212e36c375@mail.gmail.com> <200507111327.46165.jhb@FreeBSD.org> <6.2.1.2.0.20050711232202.0553eb10@64.7.153.2> In-Reply-To: <6.2.1.2.0.20050711232202.0553eb10@64.7.153.2> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507121024.50273.jhb@FreeBSD.org> Cc: Mike Tancsa Subject: Re: 6.0-CURRENT SNAP004 hangs on amr X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2005 18:31:12 -0000 On Tuesday 12 July 2005 12:51 am, Mike Tancsa wrote: > At 01:27 PM 11/07/2005, John Baldwin wrote: > >Ok. Very odd in that the code there is almost identical. There is one > > diff you can try reverting (use patch -R) and see if it changes anything: > > > >Index: mptable.c > >=================================================================== > >RCS file: /usr/cvs/src/sys/i386/i386/mptable.c,v > >retrieving revision 1.235.2.4 > >retrieving revision 1.241 > >diff -u -r1.235.2.4 -r1.241 > >--- mptable.c 25 Mar 2005 21:10:07 -0000 1.235.2.4 > >+++ mptable.c 14 Apr 2005 17:59:58 -0000 1.241 > >@@ -353,7 +353,6 @@ > > busses[i].bus_type = NOBUS; > > > > /* Second, we run through adding I/O APIC's and busses. */ > >- ioapic_enable_mixed_mode(); > > mptable_parse_apics_and_busses(); > > > > /* Third, we run through the table tweaking interrupt sources. */ > > cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. > -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter > -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath > -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm > -I/usr/src/sys/dev/twa -D_KERNEL -include opt_global.h -fno-common > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -mno-align-long-strings > -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 > -ffreestanding -Werror /usr/src/sys/i386/i386/mptable.c > /usr/src/sys/i386/i386/mptable.c: In function `mptable_setup_io': > /usr/src/sys/i386/i386/mptable.c:356: warning: implicit declaration of > function `ioapic_enable_mixed_mode' > /usr/src/sys/i386/i386/mptable.c:356: warning: nested extern declaration of > `ioapic_enable_mixed_mode' > *** Error code 1 > > Stop in /usr/obj/usr/src/sys/current. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > > Looking at the commit logs, this has been removed from a number of > files. I am not sure if I imported all the necessary files or not but I > pulled in > > Version 1.19 of > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/i386/io_apic.c > > 1.11 of > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/include/apicvar.h > > With those changes, no luck with ATA compiled into the kernel :( > > BUT! With ata compiled out, I can now boot a current kernel using PIC and > APIC! This is with a newer AMR card, but I dont think that is the issue. I > will put back the old one once back at the office tomorrow just to be sure > as the generic current kernel still hangs on it. Argh ok. Can you try compiling a 5.x kernel with 'options NO_MIXED_MODE' and see if it hangs as well? ACPI specifically forbids using mixed mode. :( -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org