Re: 0 errors,0 warnings but it doesn't work

Thomas Renninger <[email protected]> Thu, 03 Nov 2005 10:18:01 +0100
Newsgroups gmane.linux.power-management.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------000609050600090307090400
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Fede wrote:
> Hi, I've recompiled my dsdt. I finally get 0 errors and 0 warnings.
> But with dmesg i get:
>   
>  ACPI-0362: *** Error: Looking up [Z00C] in namespace, AE_NOT_FOUND
> search_node c17f6f40 start_node c17f6f40 return_node 00000000
>     ACPI-1172: *** Error: Method execution failed [\_SB_.BAT1._BST] (Node 
> c17f6e40), AE_NOT_FOUND
>     ACPI-0362: *** Error: Looking up [Z00C] in namespace, AE_NOT_FOUND
> search_node c17f6f40 start_node c17f6f40 return_node 00000000
>     ACPI-1172: *** Error: Method execution failed [\_SB_.BAT1._BST] (Node 
> c17f6e40), AE_NOT_FOUND
>     ACPI-0362: *** Error: Looking up [Z00C] in namespace, AE_NOT_FOUND
> search_node c17f6f40 start_node c17f6f40 return_node 00000000
>     ACPI-1172: *** Error: Method execution failed [\_SB_.BAT1._BST] (Node 
> c17f6e40), AE_NOT_FOUND
>     ACPI-0362: *** Error: Looking up [Z00C] in namespace, AE_NOT_FOUND
> search_node c17f6f40 start_node c17f6f40 return_node 00000000
>     ACPI-1172: *** Error: Method execution failed [\_SB_.BAT1._BST] (Node 
> c17f6e40), AE_NOT_FOUND
> 
> Here's my lilo.conf:
> image = /boot/linux2.6.13
>   initrd = /boot/DSDT.aml
>   root = /dev/hda6
>   label = Linux2.6.13
>   read-only
> 
> What can i do?

Replace the Z00C in the package declaration (Package (..){..., Z00C,...})
with the keyword Ones or Zero (not sure about whether with a trailing "s" or not 
now -> see ACPI spec or just try to compile).

Attached is a workaround. If you compile it into your kernel, it should not be 
necessary to override your DSDT any more.

I also opened a bug. My workaround is "just a workaround" and will not be 
integrated into the mainline kernel.

The bug is here:
http://bugzilla.kernel.org/show_bug.cgi?id=5322
Please get a bugzilla.kernel.org account and add a short comment that you also 
have the problem, so that people know that this is not a single, machine 
specific case and you can test if a potential solution is found.

Thanks,

        Thomas

--------------000609050600090307090400
Content-Type: text/plain;
 name="acpi-frob-undeclared"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="acpi-frob-undeclared"

From: Thomas Renninger <[email protected]>
Subject: [ACPI] Work around undefined ZOO* objects
References: 117974

See also http://bugzilla.kernel.org/show_bug.cgi?id=5322

Index: linux-2.6.13/drivers/acpi/namespace/nssearch.c
===================================================================
--- linux-2.6.13.orig/drivers/acpi/namespace/nssearch.c
+++ linux-2.6.13/drivers/acpi/namespace/nssearch.c
@@ -366,11 +366,20 @@ acpi_ns_search_and_enter (
 	 * In execute mode, just search, never add names.  Exit now.
 	 */
 	if (interpreter_mode == ACPI_IMODE_EXECUTE) {
-		ACPI_DEBUG_PRINT ((ACPI_DB_NAMES,
-			"%4.4s Not found in %p [Not adding]\n",
-			(char *) &target_name, node));
-
-		return_ACPI_STATUS (AE_NOT_FOUND);
+		/* Workaround for undefined Z00X objects that seem to be predefined
+		 * numbers in other compilers/interpreters.
+		 * ACPI names are always 4 characters long?
+		 */
+		if (!memcmp((char *)&target_name, "Z00", 3)){
+			ACPI_DEBUG_PRINT ((ACPI_DB_WARN, "Workaround undefined "
+					   "[%4.4s] object in %p\n",
+					   (char *) &target_name, node));
+		} else{
+			ACPI_DEBUG_PRINT ((ACPI_DB_NAMES,
+					   "%4.4s Not found in %p [Not adding]\n",
+					   (char *) &target_name, node));
+			return_ACPI_STATUS (AE_NOT_FOUND);
+		}
 	}
 
 	/* Create the new named object */

--------------000609050600090307090400--


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php