From owner-acpi-jp@jp.freebsd.org  Fri Oct 20 11:51:48 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id LAA07593;
	Fri, 20 Oct 2000 11:51:48 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from kbtfw.kubota.co.jp (firewall-user@kbtfw.kubota.co.jp [133.253.102.202])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id LAA07586
	for <acpi-jp@jp.freebsd.org>; Fri, 20 Oct 2000 11:51:48 +0900 (JST)
	(envelope-from haro@tk.kubota.co.jp)
Received: by kbtfw.kubota.co.jp; id LAA01896; Fri, 20 Oct 2000 11:51:44 +0900 (JST)
Received: from unknown(133.253.122.1) by kbtfw.kubota.co.jp via smap (V4.2)
	id xma001820; Fri, 20 Oct 00 11:51:19 +0900
Received: from ktkl129.tk.kubota.co.jp ([133.253.157.129])
	by kbtmx.eto.kubota.co.jp (8.9.3+3.2W/3.7W) with ESMTP id LAA02778;
	Fri, 20 Oct 2000 11:51:18 +0900 (JST)
Received: from jkpc15.tk.kubota.co.jp by ktkl129.tk.kubota.co.jp (8.6.13+2.4W/3.4W3-97053016)
	id LAA09323; Fri, 20 Oct 2000 11:50:31 +0900
Received: from localhost (localhost.tk.kubota.co.jp [127.0.0.1])
	by jkpc15.tk.kubota.co.jp (8.11.1/3.7W-02/21/99) with ESMTP id e9K2nTA00456;
	Fri, 20 Oct 2000 11:49:29 +0900 (JST)
To: acpi-jp@jp.freebsd.org, takawata@shidahara1.planet.sci.kobe-u.ac.jp
In-Reply-To: <200010190136.KAA22804@shidahara1.planet.sci.kobe-u.ac.jp>
References: <200010121315.WAA84890@shidahara1.planet.sci.kobe-u.ac.jp>
	<200010190136.KAA22804@shidahara1.planet.sci.kobe-u.ac.jp>
X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN)
Mime-Version: 1.0
Content-Type: Multipart/Mixed;
 boundary="--Next_Part(Fri_Oct_20_11:47:41_2000_809)--"
Content-Transfer-Encoding: 7bit
Message-Id: <20001020114929S.haro@tk.kubota.co.jp>
Date: Fri, 20 Oct 2000 11:49:29 +0900
From: Munehiro Matsuda <haro@tk.kubota.co.jp>
X-Dispatcher: imput version 20000228(IM140)
Lines: 334
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 884
Subject: [acpi-jp 884] Re: Latest ACPI megapatch update 
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: haro@tk.kubota.co.jp

----Next_Part(Fri_Oct_20_11:47:41_2000_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

From: Takanori Watanabe <takawata@shidahara1.planet.sci.kobe-u.ac.jp>
Date: Thu, 19 Oct 2000 10:36:07 +0900
::>And I try to call acpi_parse_resources() directly from acpi_probe_child
::>but end up with page fault in resource_list_find();
::
::I found the bug. This is my (commented out) bus_set_resource code origin.
::Sorry:-(.

I've tried the patch, and it worked for me! Thanks. :-)
I'll include the dmesg output from my system.
FYI, my source tree includes the following patches:

   0) acpica-bsd-20001008 used as base.
   1) Avoid _REG access fail patch from [acpi-jp 800].
   2) Acpi{Enable|Disable}Event patch from [acpi-jp 855].
   3) Apm co-existance patch from [acpi-jp 856].
   4) Execute 'acpiconf -e' in /etc/rc.i386 patch from [acpi-jp 617].
   5) Commented out EVENTHANDLER_FAST_{REGISTER|DEREGISTER} bits from
      acpi_processor.c to avoid kernel build error.

 Hope this helps,
   Haro
=------------------------------------------------------------------------------
           _ _    Munehiro (haro) Matsuda
 -|- /_\  |_|_|   Business Incubation Dept., Kubota Corp.
 /|\ |_|  |_|_|   1-3 Nihonbashi-Muromachi 3-Chome
                  Chuo-ku Tokyo 103-8310, Japan
                  Tel: +81-3-3245-3318  Fax: +81-3-3245-3315
                  Email: haro@kubota.co.jp

----Next_Part(Fri_Oct_20_11:47:41_2000_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="dmesg.out"

ACPI Subsystem version [Oct 18 2000]
<snip>
  hwregs-0590: PM1a control: Read 0x1402 from 0x404
  hwregs-0829: Register I/O: returning 0x0
 tbxface-0178: ACPI Tables successfully loaded
Parsing Methods:.........................................................................................
89 Control Methods found and parsed (604 nodes total)
ACPI Namespace successfully loaded at root 0x0xc0427c6c
Using $PIR table, 5 entries at 0xc00f5c50
acpi0: <NEC    ND000006> on motherboard
  hwregs-0590: PM1a control: Read 0x1402 from 0x404
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0590: PM1a control: Read 0x1403 from 0x404
  hwregs-0829: Register I/O: returning 0x1
evxfevnt-0178: Transition to ACPI mode successful
  hwregs-0590: PM1a control: Read 0x1403 from 0x404
  hwregs-0829: Register I/O: returning 0x1
  hwregs-0500: PM1a enable: Read 0x0 from 0x402
  hwregs-0549: About to write 0000 to 0402
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0500: PM1a enable: Read 0x0 from 0x402
  hwregs-0549: About to write 0000 to 0402
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0500: PM1a enable: Read 0x0 from 0x402
  hwregs-0549: About to write 0000 to 0402
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0500: PM1a enable: Read 0x0 from 0x402
  hwregs-0549: About to write 0000 to 0402
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0500: PM1a enable: Read 0x0 from 0x402
  hwregs-0549: About to write 0000 to 0402
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0500: PM1a enable: Read 0x0 from 0x402
  hwregs-0549: About to write 0020 to 0402
  hwregs-0829: Register I/O: returning 0x1
  hwregs-0500: PM1a enable: Read 0x20 from 0x402
  hwregs-0549: About to write 0120 to 0402
  hwregs-0829: Register I/O: returning 0x1
  hwregs-0406: PM1a status: Read 0x0 from 0x400
  hwregs-0467: About to write 0x100 to 0x400
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0500: PM1a enable: Read 0x120 from 0x402
  hwregs-0549: About to write 0120 to 0402
  hwregs-0829: Register I/O: returning 0x1
acpi0: power button is handled as a fixed feature programming model.
acpi_probe_child:\\_PR_.CPU0 1
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_TZ_.PFN1 1
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_TZ_.FAN0 1
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_TZ_.THM1 1
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.LNKA 1
acpi_probe_child:\\_SB_.LNKB 1
acpi_probe_child:\\_SB_.LNKD 1
acpi_probe_child:\\_SB_.PMU5 1
acpi_probe_child:\\_SB_.PMU5.LID_ 2
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.PMU5.BAT0 2
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.PMU5.BAT1 2
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.PMU5.AC0_ 2
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.PCI0 1
unknown: unimplemented Address16 resource
unknown: unimplemented Address16 resource
unknown: unimplemented Address16 resource
unknown: unimplemented Address32 resource
unknown: unimplemented Address32 resource
unknown: unimplemented Address32 resource
acpi_probe_child:\\_SB_.PCI0.IDE0 2
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.PCI0.USB0 2
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.PCI0.USB0.PUSB 3
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.PCI0.PX43 2
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.PCI0.RLTP 2
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.PCI0.CBUS 2
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.PCI0.AUD1 2
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.PCI0.MODM 2
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.PCI0.LAN0 2
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.PCI0.PX40 2
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.PCI0.PX40.MEM_ 3
acpi_probe_child:\\_SB_.PCI0.PX40.UAR1 3
unknown: dependant functions not supportedunknown: dependant functions not supportedunknown: dependant functions not supportedunknown: dependant functions not supportedacpi_probe_child:\\_SB_.PCI0.PX40.UAR1.PUAR 4
unknown: can't fetch ACPI resources - AE_NOT_FOUND
acpi_probe_child:\\_SB_.PCI0.PX40.IRDA 3
unknown: dependant functions not supportedunknown: DRQ not supported
unknown: DRQ not supported
unknown: dependant functions not supportedunknown: DRQ not supported
unknown: DRQ not supported
unknown: dependant functions not supportedunknown: DRQ not supported
unknown: DRQ not supported
unknown: dependant functions not supportedunknown: DRQ not supported
unknown: DRQ not supported
unknown: dependant functions not supportedunknown: DRQ not supported
unknown: DRQ not supported
unknown: DRQ not supported
acpi_probe_child:\\_SB_.PCI0.PX40.FDC0 3
unknown: DRQ not supported
acpi_probe_child:\\_SB_.PCI0.PX40.LPT0 3
unknown: dependant functions not supportedunknown: dependant functions not supportedunknown: dependant functions not supportedacpi_probe_child:\\_SB_.PCI0.PX40.ECP0 3
unknown: dependant functions not supportedunknown: dependant functions not supportedunknown: dependant functions not supportedunknown: dependant functions not supportedacpi_probe_child:\\_SB_.PCI0.PX40.PS2K 3
acpi_probe_child:\\_SB_.PCI0.PX40.PS2M 3
acpi_probe_child:\\_SB_.PCI0.PX40.RTC_ 3
acpi_probe_child:\\_SB_.PCI0.PX40.FPU_ 3
acpi_probe_child:\\_SB_.PCI0.PX40.MISC 3
acpi_probe_child:\\_SB_.PCI0.PX40.PIC_ 3
acpi_probe_child:\\_SB_.PCI0.PX40.DMAC 3
unknown: DRQ not supported
acpi_probe_child:\\_SB_.PCI0.PX40.CTC_ 3
acpi_probe_child:\\_SB_.PCI0.PX40.SPK_ 3
acpi_timer0: <24-bit timer at 3.579545MHz> on acpi0
acpi_pr0: <processor device> on acpi0
acpi_pr0: C0 Supported (Latency is 0 microseconds)
acpi_pr0: C1 Supported (Latency is 0 microseconds)
acpi_pr0: C2 Supported (Latency is 100 microseconds)
acpi_pr0: Throttling State [0:100%]
acpi_pr0: Throttling State [1:87%]
acpi_pr0: Throttling State [2:75%]
acpi_pr0: Throttling State [3:62%]
acpi_pr0: Throttling State [4:50%]
acpi_pr0: Throttling State [5:37%]
acpi_pr0: Throttling State [6:25%]
acpi_pr0: Throttling State [7:12%]
acpi_tz0: <thermal zone> on acpi0
acpi_tz0: current temperature 84.8C
acpi_ec0: <embedded controller> port 0x66,0x62 on acpi0
acpi_ec0: can't evaluate _REG method - AE_NOT_FOUND
acpi_pci0: <Host-PCI bridge> port 0xcf8-0xcff on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
pci0: <PCI bus> on acpi0
pci0: <ATI model 4c50 graphics accelerator> at 2.0 irq 5
pcic-pci0: <Ricoh RL5C478 PCI-CardBus Bridge> at device 3.0 on pci0
pcic-pci1: <Ricoh RL5C478 PCI-CardBus Bridge> at device 3.1 on pci0
pcm0: <ESS Technology Maestro-2E> port 0xe400-0xe4ff irq 5 at device 4.0 on pci0
pcm0: agg_rdcodec() RW_DONE timed out.
pcm0: will perform cold reset.
dc0: <Intel 21143 10/100BaseTX> port 0xe880-0xe8ff mem 0xfebfec00-0xfebfefff irq 5 at device 5.0 on pci0
dc0: Ethernet address: 00:00:4c:73:16:8a
miibus0: <MII bus> on dc0
dcphy0: <Intel 21143 NWAY media interface> on miibus0
dcphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xffa0-0xffaf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xef80-0xef9f irq 9 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
pci0: <Intel 82371AB Power management controller> at 7.3
  hwregs-0406: PM1a status: Read 0x11 from 0x400
  hwregs-0829: Register I/O: returning 0x1
  hwregs-0406: PM1a status: Read 0x11 from 0x400
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0406: PM1a status: Read 0x11 from 0x400
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0406: PM1a status: Read 0x11 from 0x400
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0406: PM1a status: Read 0x11 from 0x400
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0500: PM1a enable: Read 0x120 from 0x402
  hwregs-0549: About to write 0120 to 0402
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0590: PM1a control: Read 0x1403 from 0x404
  hwregs-0829: Register I/O: returning 0x1
  hwregs-0590: PM1a control: Read 0x1403 from 0x404
  hwregs-0829: Register I/O: returning 0x1
  hwregs-0590: PM1a control: Read 0x1402 from 0x404
  hwregs-0829: Register I/O: returning 0x0
apm0: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
unknown: unimplemented Address16 resource
unknown: unimplemented Address16 resource
unknown: unimplemented Address16 resource
unknown: unimplemented Address32 resource
unknown: unimplemented Address32 resource
unknown: unimplemented Address32 resource
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
pcic0: <Intel i82365> at port 0x3e0 iomem 0xd0000 irq 10 on isa0
pcic0: management irq 10
pccard0: <PC Card bus -- kludge version> on pcic0
pccard1: <PC Card bus -- kludge version> on pcic0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
pca0 at port 0x40 on isa0
unknown: <PNP0501> can't assign resources
unknown: <NEC90D1> can't assign resources
unknown: <PNP0700> can't assign resources
unknown: <PNP0400> can't assign resources
unknown: <PNP0401> can't assign resources
unknown: <PNP0320> can't assign resources
unknown: <AUI0200> can't assign resources
unknown: <PNP0200> can't assign resources
pca1: <AT-style speaker sound> at port 0x61 on isa0
WARNING: Driver mistake: repeat make_dev("pcaudio")
WARNING: Driver mistake: repeat make_dev("pcaudioctl")
unknown: <PNP0000> can't assign resources
unknown: <PNP0100> can't assign resources
unknown: <PNP0b00> can't assign resources
unknown: <PNP0320> can't assign resources
unknown: <PNP0800> can't assign resources
unknown: <PNP0501> can't assign resources
unknown: <PNP0401> can't assign resources
unknown: <PNP0700> can't assign resources
unknown: <PNP0c02> can't assign resources
unknown: <AUI0200> can't assign resources
unknown: <PNP0a03> can't assign resources
BRIDGE 990810, have 9 interfaces
-- index 1  type 6 phy 0 addrl 6 addr 00.00.4c.73.16.8a
pccard: card inserted, slot 0
ad0: 11513MB <HITACHI_DK23AA-12> [23392/16/63] at ata0-master UDMA33
Mounting root from ufs:/dev/ad0s2a
sio2 at port 0x2f8-0x2ff irq 3 slot 0 on pccard0
sio2: type 16550A
  hwregs-0590: PM1a control: Read 0x1403 from 0x404
  hwregs-0829: Register I/O: returning 0x1
evxfevnt-0178: Transition to ACPI mode successful
  hwregs-0590: PM1a control: Read 0x1403 from 0x404
  hwregs-0829: Register I/O: returning 0x1
  hwregs-0500: PM1a enable: Read 0x20 from 0x402
  hwregs-0549: About to write 0020 to 0402
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0500: PM1a enable: Read 0x20 from 0x402
  hwregs-0549: About to write 0000 to 0402
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0500: PM1a enable: Read 0x0 from 0x402
  hwregs-0549: About to write 0000 to 0402
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0500: PM1a enable: Read 0x0 from 0x402
  hwregs-0549: About to write 0000 to 0402
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0500: PM1a enable: Read 0x0 from 0x402
  hwregs-0549: About to write 0000 to 0402
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0500: PM1a enable: Read 0x0 from 0x402
  hwregs-0549: About to write 0020 to 0402
  hwregs-0829: Register I/O: returning 0x1
  hwregs-0500: PM1a enable: Read 0x20 from 0x402
  hwregs-0549: About to write 0120 to 0402
  hwregs-0829: Register I/O: returning 0x1
  hwregs-0406: PM1a status: Read 0x10 from 0x400
  hwregs-0467: About to write 0x100 to 0x400
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0500: PM1a enable: Read 0x120 from 0x402
  hwregs-0549: About to write 0120 to 0402
  hwregs-0829: Register I/O: returning 0x1
acpi0: power button is handled as a fixed feature programming model.
  hwregs-0500: PM1a enable: Read 0x120 from 0x402
  hwregs-0549: About to write 0121 to 0402
  hwregs-0829: Register I/O: returning 0x1
  hwregs-0590: PM1a control: Read 0x1403 from 0x404
  hwregs-0829: Register I/O: returning 0x1
  hwregs-0406: PM1a status: Read 0x11 from 0x400
  hwregs-0467: About to write 0x1 to 0x400
  hwregs-0829: Register I/O: returning 0x0
  hwregs-0500: PM1a enable: Read 0x121 from 0x402
  hwregs-0549: About to write 0120 to 0402
  hwregs-0829: Register I/O: returning 0x0
 evevent-0370: *** Error: EvGpeDispatch: No installed handler for fixed event [0x00000000]

----Next_Part(Fri_Oct_20_11:47:41_2000_809)----
