From owner-acpi-jp@jp.freebsd.org  Tue Sep 18 21:48:59 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id VAA91134;
	Tue, 18 Sep 2001 21:48:59 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from fgwmail6.fujitsu.co.jp (fgwmail6.fujitsu.co.jp [192.51.44.36])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id VAA91129
	for <acpi-jp@jp.FreeBSD.org>; Tue, 18 Sep 2001 21:48:59 +0900 (JST)
	(envelope-from yoshint@flab.fujitsu.co.jp)
Received: from m2.gw.fujitsu.co.jp by fgwmail6.fujitsu.co.jp (8.9.3/3.7W-MX0108-Fujitsu Gateway)
	id VAA18162 for <acpi-jp@jp.FreeBSD.org>; Tue, 18 Sep 2001 21:48:46 +0900 (JST)
	(envelope-from yoshint@flab.fujitsu.co.jp)
Received: from cerberus.proc.flab.fujitsu.co.jp by m2.gw.fujitsu.co.jp (8.9.3/3.7W-0108-Fujitsu Domain Master)
	id VAA28496 for <acpi-jp@jp.FreeBSD.org>; Tue, 18 Sep 2001 21:48:46 +0900 (JST)
	(envelope-from yoshint@flab.fujitsu.co.jp)
Received: from cerberus.proc.flab.fujitsu.co.jp.proc.flab.fujitsu.co.jp (localhost [127.0.0.1])
	by cerberus.proc.flab.fujitsu.co.jp (8.11.4/8.11.4) with ESMTP id f8ICmju04414
	for <acpi-jp@jp.FreeBSD.org>; Tue, 18 Sep 2001 21:48:45 +0900 (JST)
	(envelope-from yoshint@flab.fujitsu.co.jp)
To: acpi-jp@jp.FreeBSD.org
From: TOMITA Yoshinori <yoshint@flab.fujitsu.co.jp>
X-Face: [|Q@oQ4-)'>a|hK#Wn5u?MMwDs*kTH^u&/.`JOMCIf]22\}]}Fr7`pwbU:1]f>~F(i7vJxW
 0JUQD.wjQto]`;7uMKT\?C<,J~3LpT?c|~&l7kMjEvWhoSNj)oWGORj3R"I\/AGXBkCs(w!+Cx)'Ue
 n&%HI0W0Dc7>4J"%
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Date: Tue, 18 Sep 2001 21:48:45 +0900
Message-ID: <ywlvgigu0k2.fsf@cerberus.proc.flab.fujitsu.co.jp>
Lines: 98
User-Agent: T-gnus/6.15.4 (based on Oort Gnus v0.04) (revision 06)
 EMY/1.13.9 (Art is long, life is short) SLIM/1.14.7
 (=?ISO-2022-JP?B?GyRCPHIwZjpMTD4bKEI=?=) APEL/10.2 MULE XEmacs/21.4 (patch
 4) (Artificial Intelligence) (i386-unknown-freebsd4.3)
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: acpi-jp 1296
Subject: [acpi-jp 1296] Stopped at  AcpiExTruncateFor32bitTable+0x13
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: yoshin-t@cerberus.proc.flab.fujitsu.co.jp

Dear ACPI developpers

I have an notebook PC, FUJITSU FMV BIBLO MC4/45C and installed
5.0-CURRENT around 2001-9-11 ftp-ed from current.jp.freebsd.org.

Without "unset acpi_load", it crashes in booting time.

kernel messages are like this: (it may contain typos)

>   .
>   .
>   .
>
>acpi_button0: <Power Button> on acpi0
>acpi_acad0: <AC adapter> on acpi0
>
>
>Fatal trap 12: page fault while in kernel mode
>fault virtual address   = 0x40
>fault code              = supervisor read, page not present
>instruction pointer     = 0x8:0xc0498de7
>stack pointer           = 0x10:0xc04e1d18
>frame pointer           = 0x10:0xc04e1d18
>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         = 0 (swapper)
>kernel: type 12 trap, code=0
>Stopped at      AcpiExTruncateFor32bitTable+0x13:      cmpl   $0,0x40(%eax)
>

and register value of eax was 0.

Viewing "objdump -d acpi.ko", I guessed this is because variable
WalkState has not confirmed != 0.

| void
| AcpiExTruncateFor32bitTable (
|     ACPI_OPERAND_OBJECT     *ObjDesc,
|     ACPI_WALK_STATE         *WalkState)
| {
| 
|     FUNCTION_ENTRY ();
| 
| 
|     /*
|      * Object must be a valid number and we must be executing
|      * a control method
|      */
|     if ((!ObjDesc) ||
|         (ObjDesc->Common.Type != ACPI_TYPE_INTEGER) ||
|         (!WalkState->MethodNode))
|     {
|         return;
|     }


So I added

|         (!WalkState) ||

in if clause and recompiled & installed.

But it didn't help kernel from crashing.

Kernel messages after recompiled are like this :

>   .
>   .
>   .
> acpi_button0: <Power Button> on acpi0
> acpi_acad0: <AC adapter> on acpi0
> acpi_cmbat0: <Control method Battery> on acpi0
> acpi_lid0: <Control Method Lid Switch> on acpi0
> acpi_ec0: <embeded controller> port 0x66,0x62 on acpi0
> acpi_ec0: can't install GPE handler for \_SB_.PCI0.EIO_.EC__ - AE_EXIST
> deveice_prove_and_attach: acpi_ec0 attach returned 6
> sio0: irq maps: 0x1 0x1 0x1 0x1
> sio0: probe failed test(0): 0 2 4 6 9
> sio0: irq maps: 0x1 0x1 0x1 0x1
> sio0: probe failed test(0): 0 2 4 6 9
> acpi_ec0: <embedded controller> port 0x66,0x62 on acpi0
> panic: resource_list_alloc: resource entry is busy
> Debugger("panic")
> Stopped at      Debugger+0x45:  pushl  %ebx
> db>


Apparently "acpi_ec0: ... " line appears twice.

As I am not sure what kind of information to give here,
please ask me anything.


-- 
---
Yoshinori TOMITA 
(Fujitsu Laboratories Ltd., Kawasaki, Japan)
