Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jul 2002 08:42:46 -0400
From:      Alexander Kabaev <kabaev@bellatlantic.net>
To:        Rob Hughes <rob@robhughes.com>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: (Sort of) Solved Re: Current (DP1) on Toshiba 5005
Message-ID:  <20020719084246.0c560593.kabaev@bellatlantic.net>
In-Reply-To: <1027082010.1526.22.camel@kahuna-ws.robhughes.com>
References:  <1026823721.13803.59.camel@kahuna-ws.robhughes.com> <3D347C5D.7080900@attbi.com> <1027082010.1526.22.camel@kahuna-ws.robhughes.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 19 Jul 2002 07:33:30 -0500
Rob Hughes <rob@robhughes.com> wrote:

> can't fetch resources for \\_SB_.LNKA - AE_BAD_DATA
>  can't fetch resources for \\_SB_.LNKB - AE_BAD_DATA
>  can't fetch resources for \\_SB_.LNKC - AE_BAD_DATA
>  can't fetch resources for \\_SB_.LNKF - AE_BAD_DATA
>  can't fetch resources for \\_SB_.LNKH - AE_BAD_DATA
>  can't fetch resources for \\_SB_.PCI0.FNC0.FSIR - AE_BAD_DATA

^^^^^^^ I had to patch ACPICA sources to make my laptoop to work.
Apparently, folks at ACPI mailing list made exactly the same patch too.
Returning AE_BAD_DATA for empty resource descriptors is wrong.

Index: rsio.c
===================================================================
RCS file: /home/ncvs/src/sys/contrib/dev/acpica/rsio.c,v
retrieving revision 1.1.1.7
diff -u -r1.1.1.7 rsio.c
--- rsio.c	9 Jul 2002 17:51:30 -0000	1.1.1.7
+++ rsio.c	14 Jul 2002 04:02:15 -0000
@@ -501,12 +501,14 @@
             i++;
         }
     }
+#if 0
     if (i == 0)
     {
         /* Zero channels is invalid! */
 
         return_ACPI_STATUS (AE_BAD_DATA);
     }
+#endif
     OutputStruct->Data.Dma.NumberOfChannels = i;
 
 
Index: rsirq.c
===================================================================
RCS file: /home/ncvs/src/sys/contrib/dev/acpica/rsirq.c,v
retrieving revision 1.1.1.9
diff -u -r1.1.1.9 rsirq.c
--- rsirq.c	9 Jul 2002 17:51:30 -0000	1.1.1.9
+++ rsirq.c	14 Jul 2002 03:30:02 -0000
@@ -190,12 +190,14 @@
         }
     }
 
+#if 0
     if (i == 0)
     {
         /* Zero interrupts is invalid! */
 
         return_ACPI_STATUS (AE_BAD_DATA);
     }
+#endif
     OutputStruct->Data.Irq.NumberOfInterrupts = i;
 
     /*
-- 
Alexander Kabaev

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020719084246.0c560593.kabaev>