Re: 6.0-CURRENT SNAP004 hangs on amr

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 12 Jul 2005 10:24:49 -0400
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
> >_at__at_ -353,7 +353,6 _at__at_
> >                 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 <jhb_at_FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
Received on Tue Jul 12 2005 - 16:31:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:38 UTC