http://bugzilla.kernel.org/show_bug.cgi?id=11884





------- Comment #53 from [EMAIL PROTECTED]  2008-12-10 13:14 -------

I believe what is happening here is that the CUZO Package object has not been
initialized and the DerefOf is failing because of this.

Looking at the DSDT, CUZO is initialized in the RETD method. This method is
called from two places: _SB_._INI and HWAK.

So it would appear that \_SB_.PCI0.LPCB.EC0_._REG is being called before
_SB_._INI is called, and CUZO is uninitialized.

A quick workaround would be to statically initialize CUZO:

    Name (CUZO, Package (0x06) {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF})

The real fix will be to figure out why the Embedded Controller _REG method is
being called before the _INI methods are run. (Also, a better error code in
this case would be appropriate.)

Here is my test code that reproduces the problem. If MAIN is run first, it will
fail. If INI is run before MAIN, MAIN will not fail.

DefinitionBlock ("", "DSDT", 1, "Intel", "Test", 1)
{
    Name (CUZO, Package (0x06) {})

    Method (MAIN, 0, NotSerialized)
    {
        Store (DerefOf (Index (CUZO, 0x00)), Local0)
        Return ()
    }

    Method (INI)
    {
        Store (0x00, Local0)
        While (LLess (Local0, 0x06))
        {
            Store (0xFF, Index (CUZO, Local0))
            Increment (Local0)
        }
    }
}


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to