New ACPI diffs ready for testing
Ruslan Ermilov
ru at freebsd.org
Tue Apr 29 04:40:05 PDT 2003
On Mon, Apr 28, 2003 at 10:32:44AM -0700, Nate Lawson wrote:
> On Fri, 25 Apr 2003, Ruslan Ermilov wrote:
> > On Fri, Apr 25, 2003 at 01:35:24AM -0700, Nate Lawson wrote:
> > > http://www.root.org/~nate/freebsd/acpi-0228.diff.gz
> >
> > I still have the same panic in acpi_thermal. What should I
> > do to help debug / fix this problem?
> >
> > Fatal trap 12: page fault while in kernel mode
> > fault virtual address = 0x3a0
> > fault code = supervisor read, page not present
> > instruction pointer = 0x8:0xc0466910
> > stack pointer = 0x10:0xc875dbe0
> > frame pointer = 0x10:0xc875dbe0
> > 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 = 21 (acpi_thermal)
> > panic: from debugger
>
> Send me a stacktrace for starters (tr) and a link to your aml online
> (acpidump -o box.dsdt > box.aml). Also, for informational purposes, send
> the output of pciconf -l.
>
I don't know how much a stacktrace can be useful here; some of the
stack frames seem to be damaged. The below was produces with the
latest 0228 ACPI diff in-tree, and acpi device compiled directly
into a kernel. Loading it as a module gave me some lines offset
in the source file, and the faulting address was 0xdeadc0de.
The box.* files and "pciconf -l" output are available at:
http://people.freebsd.org/~ru/acpi_thermal.panic.bz2
I will keep this debug kernel and vmcore for some time, in case
someone needs it.
: Script started on Tue Apr 29 14:27:39 2003
: GNU gdb 5.2.1 (FreeBSD)
: Copyright 2002 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-undermydesk-freebsd"...
: panic: from debugger
: panic messages:
: ---
: Fatal trap 12: page fault while in kernel mode
: fault virtual address = 0xbffff
: fault code = supervisor read, page not present
: instruction pointer = 0x8:0xc013b5f0
: stack pointer = 0x10:0xc8761be0
: frame pointer = 0x10:0xc8761be0
: 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 = 20 (acpi_thermal)
: panic: from debugger
:
:
: Fatal trap 3: breakpoint instruction fault while in kernel mode
: instruction pointer = 0x8:0xc02d42b4
: stack pointer = 0x10:0xc876195c
: frame pointer = 0x10:0xc8761968
: code segment = base 0x0, limit 0xfffff, type 0x1b
: = DPL 0, pres 1, def32 1, gran 1
: processor eflags = IOPL = 0
: current process = 20 (acpi_thermal)
: panic: from debugger
: Uptime: 31s
: Dumping 127 MB
: ata0: resetting devices ..
: done
: 16 32 48 64 80 96 112
: ---
: Reading symbols from /boot/kernel/if_dc.ko...done.
: Loaded symbols for /boot/kernel/if_dc.ko
: Reading symbols from /boot/kernel/if_wi.ko...done.
: Loaded symbols for /boot/kernel/if_wi.ko
: Reading symbols from /usr/obj/usr/src/sys/LURKER/modules/usr/src/sys/modules/wlan/wlan.ko.debug...done.
: Loaded symbols for /usr/obj/usr/src/sys/LURKER/modules/usr/src/sys/modules/wlan/wlan.ko.debug
: Reading symbols from /usr/obj/usr/src/sys/LURKER/modules/usr/src/sys/modules/rc4/rc4.ko.debug...done.
: Loaded symbols for /usr/obj/usr/src/sys/LURKER/modules/usr/src/sys/modules/rc4/rc4.ko.debug
: Reading symbols from /boot/kernel/snd_csa.ko...done.
: Loaded symbols for /boot/kernel/snd_csa.ko
: Reading symbols from /boot/kernel/snd_pcm.ko...done.
: Loaded symbols for /boot/kernel/snd_pcm.ko
: #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:238
: 238 dumping++;
: (kgdb) bt
: #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:238
: #1 0xc01e41f3 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:370
: #2 0xc01e453b in panic () at /usr/src/sys/kern/kern_shutdown.c:543
: #3 0xc0146a92 in db_panic () at /usr/src/sys/ddb/db_command.c:448
: #4 0xc0146a12 in db_command (last_cmdp=0xc0334400, cmd_table=0x0,
: aux_cmd_tablep=0xc032f4dc, aux_cmd_tablep_end=0xc032f4e0)
: at /usr/src/sys/ddb/db_command.c:346
: #5 0xc0146b26 in db_command_loop () at /usr/src/sys/ddb/db_command.c:470
: #6 0xc01498ba in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_trap.c:72
: #7 0xc02d4015 in kdb_trap (type=12, code=0, regs=0xc8761ba0)
: at /usr/src/sys/i386/i386/db_interface.c:170
: #8 0xc02e5742 in trap_fatal (frame=0xc8761ba0, eva=0)
: at /usr/src/sys/i386/i386/trap.c:829
: #9 0xc02e5452 in trap_pfault (frame=0xc8761ba0, usermode=0, eva=786431)
: at /usr/src/sys/i386/i386/trap.c:748
: #10 0xc02e501d in trap (frame=
: {tf_fs = -1071841256, tf_es = -1070399472, tf_ds = 1051590672, tf_edi = 0, tf_esi = -1070542514, tf_ebp = -931783712, tf_isp = -931783732, tf_ebx = -1070542509, tf_edx = 786431, tf_ecx = 1, tf_eax = 0, tf_trapno = 12, tf_err = 0, tf_eip = -1072450064, tf_cs = 8, tf_eflags = 66055, tf_esp = -931783672, tf_ss = -1072447235}) at /usr/src/sys/i386/i386/trap.c:433
: #11 0xc02d5968 in calltrap () at {standard input}:96
: #12 0xc013c0fd in AcpiGetHandle (Parent=0xbffff, Pathname=0xc030d14e "_PS0",
: RetHandle=0xc8761c2c) at /usr/src/sys/contrib/dev/acpica/nsxfname.c:177
: #13 0xc0153f83 in acpi_pwr_switch_consumer (consumer=0x0, state=0)
: at /usr/src/sys/dev/acpica/acpi_powerres.c:359
: #14 0xc0155818 in acpi_tz_switch_cooler_on (obj=0xc189c9d0, arg=0xc1878300)
: at /usr/src/sys/dev/acpica/acpi_thermal.c:588
: #15 0xc014ba8d in acpi_ForeachPackageObject (pkg=0xc1878300,
: func=0xc01557e0 <acpi_tz_switch_cooler_on>, arg=0xc1878300)
: at /usr/src/sys/dev/acpica/acpi.c:1186
: #16 0xc01555fb in acpi_tz_monitor (sc=0xc189c9d0)
: at /usr/src/sys/dev/acpica/acpi_thermal.c:462
: #17 0xc0155b66 in acpi_tz_timeout (sc=0xc1878300)
: at /usr/src/sys/dev/acpica/acpi_thermal.c:741
: #18 0xc0155d46 in acpi_tz_thread (arg=0x0)
: at /usr/src/sys/dev/acpica/acpi_thermal.c:821
: #19 0xc01cfb90 in fork_exit (callout=0xc0155c80 <acpi_tz_thread>, arg=0x0,
: frame=0x0) at /usr/src/sys/kern/kern_fork.c:795
: (kgdb) up 12
: #12 0xc013c0fd in AcpiGetHandle (Parent=0xbffff, Pathname=0xc030d14e "_PS0",
: RetHandle=0xc8761c2c) at /usr/src/sys/contrib/dev/acpica/nsxfname.c:177
: 177 PrefixNode = AcpiNsMapHandleToNode (Parent);
: (kgdb) l
: 172 if (ACPI_FAILURE (Status))
: 173 {
: 174 return (Status);
: 175 }
: 176
: 177 PrefixNode = AcpiNsMapHandleToNode (Parent);
: 178 if (!PrefixNode)
: 179 {
: 180 (void) AcpiUtReleaseMutex (ACPI_MTX_NAMESPACE);
: 181 return (AE_BAD_PARAMETER);
: (kgdb) up
: #13 0xc0153f83 in acpi_pwr_switch_consumer (consumer=0x0, state=0)
: at /usr/src/sys/dev/acpica/acpi_powerres.c:359
: 359 if (ACPI_FAILURE(AcpiGetHandle(consumer, method_name, &method_handle)))
: (kgdb) p consumer
: $1 = (void *) 0x0
: (kgdb) p method_name
: $2 = 0x0
: (kgdb)
: Script done on Tue Apr 29 14:28:46 2003
Cheers,
--
Ruslan Ermilov Sysadmin and DBA,
ru at sunbay.com Sunbay Software AG,
ru at FreeBSD.org FreeBSD committer,
+380.652.512.251 Simferopol, Ukraine
http://www.FreeBSD.org The Power To Serve
http://www.oracle.com Enabling The Information Age
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030429/d0d792e7/attachment.bin
More information about the freebsd-current
mailing list