From owner-acpi-jp@jp.FreeBSD.org Wed Oct 30 16:08:54 2002
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id g9U78s499498;
	Wed, 30 Oct 2002 16:08:54 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from mail-out2.apple.com (mail-out2.apple.com [17.254.0.51])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with ESMTP/inet id g9U78q399490;
	Wed, 30 Oct 2002 16:08:52 +0900 (JST)
	(envelope-from msmith@freebsd.org)
Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225])
	by mail-out2.apple.com (8.11.3/8.11.3) with ESMTP id g9U78oI08533;
	Tue, 29 Oct 2002 23:08:50 -0800 (PST)
Received: from scv1.apple.com (scv1.apple.com) by mailgate1.apple.com
 (Content Technologies SMTPRS 4.2.5) with ESMTP id <T5e3ed29c64118064e13fc@mailgate1.apple.com>;
 Tue, 29 Oct 2002 23:08:35 -0800
Received: from freebsd.org (vpn-scv-x4-134.apple.com [17.219.194.134])
	by scv1.apple.com (8.11.3/8.11.3) with ESMTP id g9U78oH22587;
	Tue, 29 Oct 2002 23:08:50 -0800 (PST)
Content-Type: text/plain; delsp=yes; charset=US-ASCII; format=flowed
Mime-Version: 1.0 (Apple Message framework v546)
Cc: acpi-jp@jp.FreeBSD.org, naoki@fukaumi.org
To: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
From: Michael Smith <msmith@freebsd.org>
In-Reply-To: <20021030.032129.85389956.iwasaki@jp.FreeBSD.org>
Message-Id: <70980700-EBD6-11D6-AB62-0050E4660701@freebsd.org>
Content-Transfer-Encoding: 7bit
X-Mailer: Apple Mail (2.546)
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Tue, 29 Oct 2002 23:08:49 -0800
X-Sequence: acpi-jp 1920
Subject: [acpi-jp 1920] Re: iiyama NT310S (1/2)
Errors-To: owner-acpi-jp@jp.FreeBSD.org
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: msmith@freebsd.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+021028


I think acpi_pci_lnk.c needs some work.

The bug in this case is that you assume that bit 2 of the _STA result  
will
be set for a link device that's not yet configured (lines 464-469).   
You should
mask the status with 0x9 and test for 0x9 (see acpi_pcib.c line 195) to  
detect
a present and functioning link device - if it has not been configured,  
it will
not be decoding resources and bit 2 may legally not be set.

  = Mike

On Tuesday, October 29, 2002, at 10:21 AM, Mitsuru IWASAKI wrote:

>> I haven't seen the ASL in this thread yet, so I don't have any better
>> ideas,
>> sorry.  (It doesn't seem to have made the repo yet.)
>
> Ah, I've just committed, sorry.
> http://www.jp.freebsd.org/cgi/cvsweb.cgi/ACPI/data/ 
> nt310s.asl?cvsroot=freebsd-jp
>
> Thanks
>

