From owner-acpi-jp@jp.FreeBSD.org Thu Mar 21 10:40:59 2002
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id g2L1exC05531;
	Thu, 21 Mar 2002 10:40:59 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from hfep01.dion.ne.jp (hfep01.dion.ne.jp [203.181.105.67])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with ESMTP/inet id g2L1exc05526
	for <acpi-jp@jp.freebsd.org>; Thu, 21 Mar 2002 10:40:59 +0900 (JST)
	(envelope-from haro@h4.dion.ne.jp)
Received: from localhost ([61.200.133.153]) by hfep01.dion.ne.jp with ESMTP
          id <20020321014058175.KCJN@hfep01.dion.ne.jp>;
          Thu, 21 Mar 2002 10:40:58 +0900
To: acpi-jp@jp.FreeBSD.org
Cc: jhb@freebsd.org
X-Mailer: Mew version 1.94.1 on Emacs 20.7 / Mule 4.0 (HANANOEN)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20020321103842B.haro@h4.dion.ne.jp>
Date: Thu, 21 Mar 2002 10:38:42 +0900
From: Munehiro Matsuda <haro@h4.dion.ne.jp>
X-Dispatcher: imput version 20000228(IM140)
Lines: 47
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+020312
X-Sequence: acpi-jp 1598
Subject: [acpi-jp 1598] Found a bug in acpi_pcib.c with change for ACPI CA 20020217
Errors-To: owner-acpi-jp@jp.FreeBSD.org
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: haro@h4.dion.ne.jp

Hi All,

I'v found a bug in acpi_pcib.c, which occurred during the merge of
ACPI CA 20020217 snapshot.
The bug caused _PRS to be not checked, and my PC (Sony VAIO PCG-Z505V/BP)
failed to initialize PCI interrupts.

Here's dmesg after 20020217:
  acpi_pcib0: device has no interrupts
  uhci0: Could not allocate irq

and dmesg before 20020217 that works:
  acpi_pcib0: possible interrupts:  9
  acpi_pcib0: routed interrupt 9 via \\_SB_.LNKD
  usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
  usb0: USB revision 1.0

Following patch fixed my problem.

--- acpi_pcib.c.ctm	Sun Feb 24 00:03:20 2002
+++ acpi_pcib.c	Thu Mar 21 01:01:26 2002
@@ -411,7 +411,7 @@
 	goto out;	/* this is fatal */
     }
     prsbuf.Length = ACPI_ALLOCATE_BUFFER;
-    if (ACPI_FAILURE(status = AcpiGetCurrentResources(lnkdev, &prsbuf))) {
+    if (ACPI_FAILURE(status = AcpiGetPossibleResources(lnkdev, &prsbuf))) {
 	device_printf(sc->ap_dev, "couldn't get PCI interrupt link device _PRS data - %s\n",
 		      AcpiFormatException(status));
 	/* this is not fatal, since it may be hardwired */


May be this is related to problem that John Baldwin is having?

Thanks,
 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




