From owner-acpi-jp@jp.freebsd.org  Tue Jul 31 23:28:43 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id XAA64252;
	Tue, 31 Jul 2001 23:28:43 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from eken2.eken.phys.nagoya-u.ac.jp (eken2.eken.phys.nagoya-u.ac.jp [133.6.121.2])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id XAA64247
	for <acpi-jp@jp.freebsd.org>; Tue, 31 Jul 2001 23:28:43 +0900 (JST)
	(envelope-from yoichi@eken.phys.nagoya-u.ac.jp)
From: yoichi@eken.phys.nagoya-u.ac.jp
Received: from eken3.eken.phys.nagoya-u.ac.jp (eken3.eken.phys.nagoya-u.ac.jp [133.6.121.3])
	by eken2.eken.phys.nagoya-u.ac.jp (8.11.3+3.4W/3.7W-E) with ESMTP id f6VESdq21548;
	Tue, 31 Jul 2001 23:28:40 +0900 (JST)
Date: Tue, 31 Jul 2001 23:28:39 +0900
Message-ID: <wyn15l8960.wl@eken3.eken.phys.nagoya-u.ac.jp>
To: Mike Smith <msmith@freebsd.org>
Cc: current@freebsd.org, acpi-jp@jp.freebsd.org
In-Reply-To: <200107300906.f6U96Qc00674@mass.dis.org>
References: <200107271225.FAA09468@mail25.bigmailbox.com>
	<200107300906.f6U96Qc00674@mass.dis.org>
User-Agent: Wanderlust/2.7.1 (Too Funky) SEMI/1.14.3
 (=?ISO-2022-JP?B?GyRCNW0lTkMrGyhC?=) FLIM/1.14.3
 (=?ISO-2022-JP?B?GyRCQCZLNThmTk1BMBsoQg==?=) APEL/10.3 Emacs/20.7
 (i686-pc-linux-gnu) MULE/4.0 (=?ISO-2022-JP?B?GyRCMlYxYxsoQg==?=)
MIME-Version: 1.0 (generated by SEMI 1.14.3 - =?ISO-2022-JP?B?IhskQjVtGyhC?=
 =?ISO-2022-JP?B?GyRCJU5DKxsoQiI=?=)
Content-Type: text/plain; charset=US-ASCII
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: acpi-jp 1203
Subject: [acpi-jp 1203] Re: acpica malfunctions 
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: yoichi@eken.phys.nagoya-u.ac.jp

Hi,

>>> Mike Smith wrote:
> I've just committed a slightly different patch, based on a mix of your 
> ideas and mine (mostly yours).  Can you test the -current code, and let 
> me know what I broke this time?  8)

As  haro wrote, acpi_pcib.c rev1.11 + neckpain's patch does work
on my machine too. But rev1.12 cause panic while booting on my 
PCG-C1VSX/K (NEWCARD + acpica).

pccbb0: <RF5C475 PCI-CardBus Bridge> at device 12.0 on pci0
pccbb0: PCI Memory allocated: 44000000
acpi_pcib0: matched entry for 0.12.INTA (source \_SB_.LINKB)
acpi_pcib0: possible interrupts: 9
acpi_pcib0: couldn't route interrupt 9 via \_SB_.LINKB - AE_BAD_PARAMETER
pccbb: Unable to map IRQ...
panic: resource_list_release: can't find resource
Debugger("panic")
Stopped at      Debugger+0x44:  pushl   %ebx
db> 

dmesg with acpi_pcib.c rev1.11 + neckpain's patch is as follows

ACPI debug layer 0x0  debug level 0x0
Copyright (c) 1992-2001 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.0-CURRENT #0: Sun Jul 29 15:46:16 JST 2001
    yoichi@e-ppp6.eken.phys.nagoya-u.ac.jp:/usr/src/sys/i386/compile/ALASKAN
Timecounter "i8254"  frequency 1193182 Hz
CPU: Transmeta(tm) Crusoe(tm) Processor TM5600 (661.67-MHz 586-class CPU)
  Origin = "GenuineTMx86"  Id = 0x543
real memory  = 117374976 (114624K bytes)
avail memory = 108027904 (105496K bytes)
Preloaded elf kernel "kernel" at 0xc05f9000.
WARNING: Driver mistake: destroy_dev on 154/0
Using $PIR table, 9 entries at 0xc00fdf30
acpi0: <SONY   P1      > on motherboard
Timecounter "ACPI"  frequency 3579545 Hz
acpi_cpu0: <CPU> on acpi0
acpi_cpu: CLK_VAL field overflows P_CNT register
acpi_cpu: CLK_VAL field overlaps THT_EN bit
acpi_tz0: <thermal zone> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_pcib0: <Host-PCI bridge> on acpi0
pci0: <PCI bus> on acpi_pcib0
pci0: <memory, RAM> at 0.1 (no driver attached)
pci0: <memory, RAM> at 0.2 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0x1000-0x100f 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 0x1020-0x103f 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
uhub1: Philips Semiconductors hub, class 9/0, rev 1.10/1.10, addr 2
uhub1: 2 ports with 2 removable, self powered
ugen0: Sony USB Memory Stick Slot, rev 1.10/1.80, addr 3
pci0: <bridge, PCI-unknown> at 7.3 (no driver attached)
pci0: <serial bus, FireWire> at 8.0 (no driver attached)
pcm0: <Yamaha DS-1E (YMF754)> mem 0xfc108000-0xfc10ffff irq 9 at device 9.0 on pci0
pci0: <simple comms> at 10.0 (no driver attached)
pci0: <multimedia> at 11.0 (no driver attached)
pccbb0: <RF5C475 PCI-CardBus Bridge> at device 12.0 on pci0
pccbb0: PCI Memory allocated: 44000000
acpi_pcib0: matched entry for 0.12.INTA (source \\_SB_.LNKB)
acpi_pcib0: possible interrupts:  9
acpi_pcib0: routed interrupt 9 via \\_SB_.LNKB
cardbus0: <Cardbus bus (newcard)> on pccbb0
pccard0: <16-bit PCCard bus> on pccbb0
pci0: <display, VGA> at 13.0 (no driver attached)
acpi_ec0: <embedded controller> on acpi0
acpi_cmbat0: <Control method Battery> on acpi0
acpi_acad0: <AC adapter> on acpi0
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0

(omitting the rest)
-- 
Yoichi Nakayama <yoichi@eken.phys.nagoya-u.ac.jp>
 E-ken, Dept. of Physics, Nagoya University 
 http://www.eken.phys.nagoya-u.ac.jp/~yoichi/
