From owner-acpi-jp@jp.FreeBSD.org Tue Oct 29 14:58:23 2002
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id g9T5wNj86056;
	Tue, 29 Oct 2002 14:58:23 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from tasogare.imasy.or.jp (root@tasogare.imasy.or.jp [202.227.24.5])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with ESMTP/inet id g9T5wM386050
	for <acpi-jp@jp.FreeBSD.org>; Tue, 29 Oct 2002 14:58:22 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Received: from localhost (iwa@tasogare.imasy.or.jp [202.227.24.5])
	by tasogare.imasy.or.jp (8.11.6+3.4W/8.11.6/tasogare) with ESMTP/inet id g9T5w8Y38277;
	Tue, 29 Oct 2002 14:58:09 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Message-Id: <20021029.145749.71081952.iwasaki@jp.FreeBSD.org>
To: acpi-jp@jp.FreeBSD.org, naoki@fukaumi.org
From: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
In-Reply-To: <87adl1dquq.wl@dns1.fukaumi.org>
References: <20021025.151606.88004226.iwasaki@jp.FreeBSD.org>
	<20021025.161217.28791222.iwasaki@jp.FreeBSD.org>
	<87adl1dquq.wl@dns1.fukaumi.org>
X-Mailer: Mew version 2.2 on Emacs 20.7 / Mule 4.0 (HANANOEN)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Tue, 29 Oct 2002 14:57:49 +0900
X-Sequence: acpi-jp 1913
Subject: [acpi-jp 1913] Re: iiyama NT310S (1/2)
Errors-To: owner-acpi-jp@jp.FreeBSD.org
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: iwasaki@jp.FreeBSD.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+021028

> At Fri, 25 Oct 2002 16:12:17 +0900 (JST),
> Mitsuru IWASAKI wrote:
> > I think your PCI link objects are broken.
> 
> hmm...

And $PIR seems to be more bogus than ACPI PCI link.  They are totally
different regarding to dmesg.  But never mind.  This is a recent trend
on newer laptop's BIOS implementation, I think.

> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> PCI_LINK-0467 [10] acpi_pci_link_add_prt : PCI interrupt link is disabled - \\_SB_.PCI0.ISA_.LNK1
> PCI_LINK-0967 [09] acpi_pci_link_config  : couldn't add PCI interrupt link entry - AE_ERROR
> PCI_LINK-0467 [10] acpi_pci_link_add_prt : PCI interrupt link is disabled - \\_SB_.PCI0.ISA_.LNK2
> PCI_LINK-0967 [09] acpi_pci_link_config  : couldn't add PCI interrupt link entry - AE_ERROR
> PCI_LINK-0467 [10] acpi_pci_link_add_prt : PCI interrupt link is disabled - \\_SB_.PCI0.ISA_.LNK4
> PCI_LINK-0967 [09] acpi_pci_link_config  : couldn't add PCI interrupt link entry - AE_ERROR
> PCI_LINK-0467 [10] acpi_pci_link_add_prt : PCI interrupt link is disabled - \\_SB_.PCI0.ISA_.LNK6
> PCI_LINK-0967 [09] acpi_pci_link_config  : couldn't add PCI interrupt link entry - AE_ERROR
> PCI_LINK-0467 [10] acpi_pci_link_add_prt : PCI interrupt link is disabled - \\_SB_.PCI0.ISA_.LNKU
> PCI_LINK-0967 [09] acpi_pci_link_config  : couldn't add PCI interrupt link entry - AE_ERROR
> PCI_LINK-0467 [10] acpi_pci_link_add_prt : PCI interrupt link is disabled - \\_SB_.PCI0.ISA_.LNK8
> PCI_LINK-0967 [09] acpi_pci_link_config  : couldn't add PCI interrupt link entry - AE_ERROR
> ---- initial configuration ------------------------
> \\_SB_.PCI0.ISA_.LNK3 irq  10: [ 10] low,level,sharable 0.9.0
> \\_SB_.PCI0.ISA_.LNK5 irq  11: [  4  6  7 11 15] low,level,sharable 0.12.0

_SB_.PCI0.ISA_.LNK[1246U8] are all disabled and they due to manage IRQ
for device 11.0(cbb0), 11.1(fwohci0), 10.0(rl0), 12.2(serial bus, USB?),
12.1(ohci1) and 4.0(pcm0) on pci0.
Normally, they should be enabled by BIOS I think.
Can you fix your DSDT and try again?  It's not so difficult actually
comparing disassembling raw BIOS byte code.

ex) simple fix only for testing.
                Method(_STA) {
                    /*
                    If(PIR1) {
                        Return(0xb)
                    }
                    Return(0x9)
                    */
                    Return(0xb)
                }

In your original message, you said that rl0 working w/o ACPI (IRQ 3)
and didn't working w/ ACPI (IRQ 5).
Here's the patches to add IRQ 5 to LNK4._PRS.  To specifry IRQ to PCI
link manually, just put
hw.acpi.pci.link.0.10.0.irq="3"
hw.acpi.pci.link.0.11.0.irq="3"
into your loader.conf.

I think it would work, hopefully.
May the source and ACPI spec be with you :p

Thanks

--- nt310s.asl-	Fri Oct 25 17:40:09 2002
+++ nt310s.asl	Fri Oct 25 17:41:03 2002
@@ -312,7 +312,7 @@
             Device(LNK4) {
                 Name(_HID, 0x0f0cd041)
                 Name(_UID, 0x4)
-                Name(_PRS, Buffer(0x6) {0x23, 0x20, 0x0, 0x18, 0x79, 0x0 })
+                Name(_PRS, Buffer(0x6) {0x23, 0x28, 0x0, 0x18, 0x79, 0x0 })
                 Name(RSRC, Buffer(0x6) {0x23, 0x0, 0x0, 0x18, 0x79, 0x0 })
                 Method(_DIS) {
                     Store(0x0, PIR4)


