Re: 6.0-CURRENT SNAP004 hangs on amr

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 7 Jul 2005 07:57:44 -0400
On Wednesday 06 July 2005 09:51 pm, Mike Tancsa wrote:
> At 03:11 PM 06/07/2005, John Baldwin wrote:
> >On Wednesday 06 July 2005 01:58 pm, Mike Tancsa wrote:
> > > At 01:36 PM 06/07/2005, John Baldwin wrote:
> > > >1) Does it work if you disable APIC?
> > >
> > > Its a 4way box, do I not need APIC for SMP operation ? I will compile
> > > up a kernel and see what happens.
> >
> >Yes, but I need to know what works.  No need to compile a new kernel, just
> >set
> >hint.apic.0.disabled=1 from the loader to disable APIC support.
>
> hint.apic.0.disabled=1
>
> On RELENG_5 and CURRENT it panics with and without acpi
>
>
> Type '?' for a list of commands, 'help' for more detailed help.
> OK unload
> OK set hint.apic.0.disabled=1
> OK load /boot/kernel/kernel
> /boot/kernel/kernel text=0x37bd78 data=0x62a80+0x366c0
> syms=[0x4+0x4a650+0x4+0x5c4cb]
> OK boot
> Copyright (c) 1992-2005 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>          The Regents of the University of California. All rights reserved.
> FreeBSD 5.4-STABLE #0: Thu Jun 30 19:15:07 EDT 2005
>      mdtancsa_at_hippo.sentex.ca:/usr/obj/usr/src/sys/hippo
> Timecounter "i8254" frequency 1193182 Hz quality 0
> CPU: Pentium III/Pentium III Xeon/Celeron (500.02-MHz 686-class CPU)
>    Origin = "GenuineIntel"  Id = 0x672  Stepping = 2
>   
> Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA
>,CMOV,PAT,PSE36,MMX,FXSR,SSE> real memory  = 2147475456 (2047 MB)
> avail memory = 2096033792 (1998 MB)
> npx0: <math processor> on motherboard
> npx0: INT 16 interface
> cpu0 on motherboard
> pcib0: <Intel 82454NX PXB#0, Bus#A> pcibus 0 on motherboard
> pir0: <PCI Interrupt Routing Table: 11 Entries> on motherboard
> pci0: <PCI bus> on pcib0
> isab0: <PCI-ISA bridge> at device 2.0 on pci0
> isa0: <ISA bus> on isab0
> atapci0: <Intel PIIX4 UDMA33 controller> port
> 0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 2.1 on pci0
> ata0: channel #0 on atapci0
> ata1: channel #1 on atapci0
> pci0: <serial bus, USB> at device 2.2 (no driver attached)
> piix0: <PIIX Timecounter> port 0x850-0x85f at device 2.3 on pci0
> Timecounter "PIIX" frequency 3579545 Hz quality 0
> pci0: <display, VGA> at device 4.0 (no driver attached)
> pcib1: <Intel 82454NX PXB#0, Bus#B> pcibus 1 on motherboard
> pci1: <PCI bus> on pcib1
> pcib2: <Intel 82454NX PXB#1, Bus#A> pcibus 2 on motherboard
> pci2: <PCI bus> on pcib2
> em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.35> port
> 0xecc0-0xecff mem 0xfeb00000-0xfeb1ffff,0xfeb2
> em0: Hardware Initialization Failedem0: Unable to initialize the hardware
> device_attach: em0 attach returned 5
> pcib3: <PCI-PCI bridge> at device 7.0 on pci2
> pci3: <PCI bus> on pcib3
> kernel trap 12 with interrupts disabled
>
>
> Fatal trap 12: page fault while in kernel mode
> cpuid = 0; apic id = 00
> fault virtual address   = 0xba9f
> fault code              = supervisor read, page not present
> instruction pointer     = 0x8:0xc00fd141
> stack pointer           = 0x10:0xc0c2094c
> frame pointer           = 0x10:0xc0c209b8
> code segment            = base 0x0, limit 0xfffff, type 0x1b
>                          = DPL 0, pres 1, def32 1, gran 1
> processor eflags        = resume, IOPL = 0
> current process         = 0 (swapper)
> trap number             = 12
> panic: page fault
> cpuid = 0
> Uptime: 1s
> Automatic reboot in 15 seconds - press a key on the console to abort
> Rebooting...

Odd, the segment registers aren't right for a BIOS call here, but the %eip is 
in the BIOS.  A trace would be very helpful in this case.

> Type '?' for a list of commands, 'help' for more detailed help.
> OK unload
> OK set hint.apic.0.disabled=1
> OK load /boot/mike/kernel
> /boot/mike/kernel text=0x1fbfc0 data=0x2acd0+0x77394
> syms=[0x4+0x320a0+0x4+0x3eb23]
> OK boot
> ACPI autoload failed - no such file or directory
> GDB: no debug ports present
> KDB: debugger backends: ddb
> KDB: current backend: ddb
> Copyright (c) 1992-2005 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>          The Regents of the University of California. All rights reserved.
> FreeBSD 6.0-CURRENT #1: Wed Jul  6 11:48:02 EDT 2005
>      mdtancsa_at_freebsd-current.sentex.ca:/usr/src/sys/i386/compile/mike
> WARNING: WITNESS option enabled, expect reduced performance.
> Timecounter "i8254" frequency 1193182 Hz quality 0
> CPU: Pentium III/Pentium III Xeon/Celeron (500.02-MHz 686-class CPU)
>    Origin = "GenuineIntel"  Id = 0x672  Stepping = 2
>   
> Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA
>,CMOV,PAT,PSE36,MMX,FXSR,SSE> real memory  = 2147475456 (2047 MB)
> avail memory = 2100977664 (2003 MB)
> npx0: [FAST]
> npx0: <math processor> on motherboard
> npx0: INT 16 interface
> cpu0 on motherboard
> pcib0: <Intel 82454NX PXB#0, Bus#A> pcibus 0 on motherboard
> pir0: <PCI Interrupt Routing Table: 11 Entries> on motherboard
> pci0: <PCI bus> on pcib0
> isab0: <PCI-ISA bridge> at device 2.0 on pci0
> isa0: <ISA bus> on isab0
> pci0: <mass storage, ATA> at device 2.1 (no driver attached)
> pci0: <serial bus, USB> at device 2.2 (no driver attached)
> piix0: <PIIX Timecounter> port 0x850-0x85f at device 2.3 on pci0
> Timecounter "PIIX" frequency 3579545 Hz quality 0
> pci0: <display, VGA> at device 4.0 (no driver attached)
> pcib1: <Intel 82454NX PXB#0, Bus#B> pcibus 1 on motherboard
> pci1: <PCI bus> on pcib1
> pcib2: <Intel 82454NX PXB#1, Bus#A> pcibus 2 on motherboard
> pci2: <PCI bus> on pcib2
> pci2: <network, ethernet> at device 3.0 (no driver attached)
> pcib3: <PCI-PCI bridge> at device 7.0 on pci2
> pci3: <PCI bus> on pcib3
> kernel trap 12 with interrupts disabled
>
>
> Fatal trap 12: page fault while in kernel mode
> cpuid = 0; apic id = 00
> fault virtual address   = 0xba9f
> fault code              = supervisor read, page not present
> instruction pointer     = 0x20:0xc00fd141
> stack pointer           = 0x28:0xc0820a30
> frame pointer           = 0x28:0xc0820a9c
> code segment            = base 0x0, limit 0xfffff, type 0x1b
>                          = DPL 0, pres 1, def32 1, gran 1
> processor eflags        = resume, IOPL = 0
> current process         = 0 (swapper)
> [thread pid 0 tid 0 ]
> Stopped at      0xc00fd141:     cmpb    %cs:0xba9f,%bh
> db>

Both of these panics are with ACPI disabled and happen in the BIOS.  This one 
also has the kernel selectors.  In this case, the BIOS is probably expecting 
a %cs selector with a base of 0xf000.  Having a trace might be very, very 
helpful here.

-- 
John Baldwin <jhb_at_FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
Received on Thu Jul 07 2005 - 09:58:11 UTC

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