From owner-acpi-jp@jp.FreeBSD.org Fri Mar 22 01:28:12 2002
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id g2LGSC198102;
	Fri, 22 Mar 2002 01:28:12 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from mail14.speakeasy.net (mail14.speakeasy.net [216.254.0.214])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with ESMTP/inet id g2LGSCc98097
	for <acpi-jp@jp.freebsd.org>; Fri, 22 Mar 2002 01:28:12 +0900 (JST)
	(envelope-from jhb@FreeBSD.org)
Received: (qmail 18672 invoked from network); 21 Mar 2002 23:25:32 -0000
Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender <jhb@FreeBSD.org>)
          by mail14.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP
          for <acpi-jp@jp.freebsd.org>; 21 Mar 2002 23:25:32 -0000
Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1])
	by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g2LGSdv66491;
	Thu, 21 Mar 2002 11:28:39 -0500 (EST)
	(envelope-from jhb@FreeBSD.org)
Message-ID: <XFMail.20020321112805.jhb@FreeBSD.org>
X-Mailer: XFMail 1.5.2 on FreeBSD
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
In-Reply-To: <20020321103842B.haro@h4.dion.ne.jp>
Date: Thu, 21 Mar 2002 11:28:05 -0500 (EST)
From: John Baldwin <jhb@freebsd.org>
To: Munehiro Matsuda <haro@h4.dion.ne.jp>
Cc: acpi-jp@jp.FreeBSD.org
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+020312
X-Sequence: acpi-jp 1599
Subject: [acpi-jp 1599] RE: 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: jhb@FreeBSD.org


On 21-Mar-2002 Munehiro Matsuda wrote:
> 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?

I will try it, thanks!

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
