Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Apr 2009 15:22:29 +0200
From:      M K <klingfon@gmail.com>
To:        freebsd-acpi@freebsd.org
Subject:   Kernel panic on 7.2-RC1 when booting with ACPI enabled kernel.
Message-ID:  <43b1bb350904230622u4b7790f0p9f665b649c97a3b@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi!

I upgraded my fileserver from 7.0 to 7.2-RC1 using the freebsd-update
method. Everything went fine during the upgrade but when I attempted to boot
with the new kernel(GENERIC) the default choice of kernel with ACPI enabled
did not work. I have to boot by choosing the kernel with ACPI disabled. And
then it boots perfect. When I used 7.0 everything worked fine.

dmesg when booting without ACPI and ASL can be found on
http://midroc.dyndns.org/~kling/
I have little experience of using kgdb and debugging. So if I should pull
out some more info from the dump please specify exactly what I should write.

I have tried to disable things in BIOS but without luck.

Best regards,
Magnus

This is what a bt and list of instruction pointer from kgdb has to offer:

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...

Unread portion of the kernel message buffer:
Copyright (c) 1992-2009 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.1-RELEASE-p5 #1: Thu Apr 23 12:46:52 CEST 2009
    root@kling.telia.se:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2405.46-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7

Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x4400<CNXT-ID,xTPR>
real memory  = 268353536 (255 MB)
avail memory = 248500224 (236 MB)
ACPI APIC Table: <ASUS   P4T533-C>
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: <ASUS P4T533-C> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, ff00000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82850 host to AGP bridge> on hostb0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> mem
0xee000000-0xeeffffff,0xf0000000-0xf7ffffff irq 16 at device 0.0 on pci1
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
ohci0: <NEC uPD 9210 USB controller> mem 0xed800000-0xed800fff irq 21 at
device 4.0 on pci2
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0
usb0: <NEC uPD 9210 USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 3 ports with 3 removable, self powered
ohci1: <NEC uPD 9210 USB controller> mem 0xed000000-0xed000fff irq 22 at
device 4.1 on pci2
ohci1: [GIANT-LOCKED]
ohci1: [ITHREAD]
usb1: OHCI version 1.0
usb1: <NEC uPD 9210 USB controller> on ohci1
usb1: USB revision 1.0
uhub1: <NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
ehci0: <NEC uPD 720100 USB 2.0 controller> mem 0xec800000-0xec8000ff irq 23
at device 4.2 on pci2
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb2: EHCI version 0.95
usb2: companion controllers, 3 ports each: usb0 usb1
usb2: <NEC uPD 720100 USB 2.0 controller> on ehci0
usb2: USB revision 2.0
uhub2: <NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb2
uhub2: 5 ports with 5 removable, self powered
atapci0: <Promise PDC20621 UDMA100 controller> port
0xd800-0xd8ff,0xd400-0xd4ff, 0xd000-0xd0ff mem
0xec000000-0xec0fffff,0xeb800000-0xeb807fff irq 22 at device 10.0 on pci2
atapci0: [ITHREAD]
atapci0: [ITHREAD]
atapci0: DIMM size 128MB @ 0x00000000
ata2: <ATA channel 0> on atapci0
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
ata4: <ATA channel 2> on atapci0
ata4: [ITHREAD]
ata5: <ATA channel 3> on atapci0
ata5: [ITHREAD]
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xb800-0xb87f mem
0xeb000000-0xeb00007f irq 20 at device 12.0 on pci2
miibus0: <MII bus> on xl0
xlphy0: <3Com internal media interface> PHY 24 on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:10:4b:45:ba:cf
xl0: [ITHREAD]
xl1: <3Com 3c905-TX Fast Etherlink XL> port 0xb400-0xb43f irq 18 at device
13.0 on pci2
miibus1: <MII bus> on xl1
nsphy0: <DP83840 10/100 media interface> PHY 24 on miibus1
nsphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl1: Ethernet address: 00:60:08:6b:45:f2
xl1: [ITHREAD]
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci1: <Intel ICH2 UDMA100 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xa800-0xa80f at device 31.1 on pci0
ata0: <ATA channel 0> on atapci1
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci1
ata1: [ITHREAD]
uhci0: <Intel 82801BA/BAM (ICH2) USB controller USB-A> port 0xa400-0xa41f
irq 19 at device 31.2 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb3: <Intel 82801BA/BAM (ICH2) USB controller USB-A> on uhci0
usb3: USB revision 1.0
uhub3: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3
uhub3: 2 ports with 2 removable, self powered
uhci1: <Intel 82801BA/BAM (ICH2) USB controller USB-B> port 0xa000-0xa01f
irq 23 at device 31.4 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb4: <Intel 82801BA/BAM (ICH2) USB controller USB-B> on uhci1
usb4: USB revision 1.0
uhub4: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb4
uhub4: 2 ports with 2 removable, self powered
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on
acpi0
sio0: type 16550A
sio0: [FILTER]
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
sio1: [FILTER]
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
cpu0: <ACPI CPU> on acpi0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xd0000-0xdc7ff pnpid ORM0000 on isa0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
ppbus0: [ITHREAD]
plip0: <PLIP network interface> on ppbus0
plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 2405464112 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 238475MB <Hitachi HDP725025GLAT80 GM2OA42A> at ata0-master UDMA100
ad8: 238475MB <Seagate ST3250820A 3.AAE> at ata4-master UDMA100
ad10: 238475MB <Seagate ST3250820A 3.AAE> at ata5-master UDMA100
ar0: 238475MB <Promise Fasttrak RAID1> status: READY
ar0: disk0 READY (master) using ad8 at ata4-master
ar0: disk1 READY (mirror) using ad10 at ata5-master
Trying to mount root from ufs:/dev/ad0s1a
<118>Loading configuration files.
<118>kernel dumps on /dev/ad0s1b
<118>Entropy harvesting:
<118> interrupts
<118> ethernet
<118> point_to_point


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0xb
fault code              = supervisor read, page not present
instruction pointer     = 0x20:0xc0da4de7
stack pointer           = 0x28:0xcd1e6aac
frame pointer           = 0x28:0xcd1e6aac
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 70 (sysctl)
trap number             = 12
panic: page fault
cpuid = 0
Uptime: 1s
Physical memory: 243 MB
Dumping 27 MB: 12

Reading symbols from /boot/kernel/acpi.ko...Reading symbols from
/boot/kernel/acpi.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/acpi.ko
#0  doadump () at pcpu.h:196
196             __asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) list *0xc0da4de7
0xc0da4de7 is in AcpiNsMapHandleToNode
(/usr/src/sys/modules/acpi/acpi/../../../contrib/dev/acpica/nsutils.c:889).
884             return (AcpiGbl_RootNode);
885         }
886
887         /* We can at least attempt to verify the handle */
888
889         if (ACPI_GET_DESCRIPTOR_TYPE (Handle) != ACPI_DESC_TYPE_NAMED)
890         {
891             return (NULL);
892         }
893
(kgdb) bt
#0  doadump () at pcpu.h:196
#1  0xc0790eb7 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418
#2  0xc0791189 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:574
#3  0xc0aa339c in trap_fatal (frame=0xcd1e6a6c, eva=11)
    at /usr/src/sys/i386/i386/trap.c:939
#4  0xc0aa3620 in trap_pfault (frame=0xcd1e6a6c, usermode=0, eva=11)
    at /usr/src/sys/i386/i386/trap.c:852
#5  0xc0aa3fdc in trap (frame=0xcd1e6a6c) at
/usr/src/sys/i386/i386/trap.c:530
#6  0xc0a89e4b in calltrap () at /usr/src/sys/i386/i386/exception.s:159
#7  0xc0da4de7 in AcpiNsMapHandleToNode (Handle=0x7)
    at
/usr/src/sys/modules/acpi/acpi/../../../contrib/dev/acpica/nsutils.c:889
#8  0xc0da44cf in AcpiNsHandleToPathname (TargetHandle=0x7,
Buffer=0xcd1e6ae0)
    at
/usr/src/sys/modules/acpi/acpi/../../../contrib/dev/acpica/nsnames.c:320
#9  0xc0db0a72 in acpi_name (handle=0x7)
    at /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/acpi.c:2842
#10 0xc0db4ca8 in acpi_pci_child_location_str_method (cbdev=0xc2212680,
    child=0xc2243400, buf=0xc22c2400 "slot=0 function=0 handle=",
buflen=1024)
    at /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/acpi_pci.c:150
#11 0xc07b4ca6 in bus_child_location_str (child=0xc2243400,
    buf=0xc22c2400 "slot=0 function=0 handle=", buflen=1024) at bus_if.h:604
#12 0xc07b4f49 in device_sysctl_handler (oidp=0xc223f780, arg1=0xc2243400,
    arg2=2, req=0xcd1e6ba4) at /usr/src/sys/kern/subr_bus.c:256
#13 0xc079a707 in sysctl_root (oidp=Variable "oidp" is not available.
) at /usr/src/sys/kern/kern_sysctl.c:1307



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43b1bb350904230622u4b7790f0p9f665b649c97a3b>