Help - Search - Members - Calendar
Full Version: Dsdt File Will Not Compile
Project OS X Forums > Snow Leopard Guides & Tutorials > DSDT Patching
MadMungo
Hello,

I am having trouble getting my freshly extracted and unmodified DSDT file to compile. It is from a Compaq 610 laptop that I have OSX running on using the DSDT from bios. I extracted the DSDT file under Ubuntu linux live cd.

All I am asking for here is help on how to fix the errors so I can compile an unmodified DSDT.dsl file. Any help will be greatly appreciated. If needed I will post the dsdt.aml & dsdt.dsl files.

What I have currently tried doing to fix it is to just comment out the Objects that do not exist. This reduces the errors
but I don't know if this is correct and will cause unseen problems.

I keep getting the following 65 errors, 1 warning and 1 remark.

CODE
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20100121 [Jan 21 2010]
Copyright (c) 2000 - 2010 Intel Corporation
Supports ACPI Specification Revision 4.0

h:\mac\dsdt.dsl  4174:                     Name (C1DE, Package (0x08)
Remark   5048 -                                                    ^ Initializer list shorter than declared package length

h:\mac\dsdt.dsl  4610:                         Acquire (\_TZ.C1F0, 0xFFFF)
Error    4064 -                           Object does not exist ^  (\_TZ.C1F0)

h:\mac\dsdt.dsl  4611:                         Or (\_TZ.C1F1, 0x04, \_TZ.C1F1)
Error    4064 -                      Object does not exist ^  (\_TZ.C1F1)

h:\mac\dsdt.dsl  4611:                         Or (\_TZ.C1F1, 0x04, \_TZ.C1F1)
Error    4064 -                                       Object does not exist ^  (\_TZ.C1F1)

h:\mac\dsdt.dsl  4612:                         Release (\_TZ.C1F0)
Error    4064 -                           Object does not exist ^  (\_TZ.C1F0)

h:\mac\dsdt.dsl  4613:                         Notify (\_TZ.TZ3, 0x80)
Error    4064 -                         Object does not exist ^  (\_TZ.TZ3)

h:\mac\dsdt.dsl  4633:                             Notify (\_TZ.TZ2, 0x81)
Error    4064 -                             Object does not exist ^  (\_TZ.TZ2)

h:\mac\dsdt.dsl  4692:                         C1CA (0x00, \_TZ.C1F4)
Error    4064 -                              Object does not exist ^  (\_TZ.C1F4)

h:\mac\dsdt.dsl  5089:                         Store (^^C220, Local3)
Error    4065 -                                            ^ Object not found or not accessible from scope (^^C220)

h:\mac\dsdt.dsl  5090:                         If (\_SB.C221 ())
Error    4064 -                      Object does not exist ^  (\_SB.C221)

h:\mac\dsdt.dsl  5178:                             If (\_SB.C229 ())
Error    4064 -                          Object does not exist ^  (\_SB.C229)

h:\mac\dsdt.dsl  7327:                         If (C26F ())
Error    4064 -                 Object does not exist ^  (C26F)

h:\mac\dsdt.dsl  7774:                         Store (\_SB.C29E (C281, C282, C285), Local2)
Error    4064 -                         Object does not exist ^  (\_SB.C29E)

h:\mac\dsdt.dsl  8194:                         Wait (\_SB.C165, 0x10)
Warning  1105 -               Possible operator timeout is ignored ^

h:\mac\dsdt.dsl 15054:                         C35E (Else
Error    4096 -   parse error, expecting `','' or `')'' ^

h:\mac\dsdt.dsl 15064:                             })
Error    4096 -                         parse error ^

h:\mac\dsdt.dsl 15071:             Release (C1F0)
Error    4096 -              parse error ^

h:\mac\dsdt.dsl 15077:             Store (DerefOf (Index (DerefOf (Index (DerefOf (Index (C352, C36B (Arg1)
Error    4064 -                                                        Object does not exist ^  (C352)

h:\mac\dsdt.dsl 15083:                 Store (C36C (Local6, 0x01), Local6)
Error    4064 -            Object does not exist ^  (C36C)

h:\mac\dsdt.dsl 15086:             Store (DerefOf (Index (DerefOf (Index (DerefOf (Index (C352, C36B (Arg1)
Error    4064 -                                                        Object does not exist ^  (C352)

h:\mac\dsdt.dsl 15102:                     Store (C36C (Local2, 0x01), Local2)
Error    4064 -                Object does not exist ^  (C36C)

h:\mac\dsdt.dsl 15139:                 Notify (\_TZ.TZ2, 0x81)
Error    4064 -                 Object does not exist ^  (\_TZ.TZ2)

h:\mac\dsdt.dsl 15172:                 Return (C368 (0x00, 0x00))
Error    4064 -             Object does not exist ^  (C368)

h:\mac\dsdt.dsl 15177:                 C369 (0x01, 0x00, 0x00)
Error    4064 -     Object does not exist ^  (C369)

h:\mac\dsdt.dsl 15182:                 C369 (0x00, 0x00, 0x00)
Error    4064 -     Object does not exist ^  (C369)

h:\mac\dsdt.dsl 15190:                 Return (C368 (0x00, 0x01))
Error    4064 -             Object does not exist ^  (C368)

h:\mac\dsdt.dsl 15195:                 C369 (0x01, 0x00, 0x01)
Error    4064 -     Object does not exist ^  (C369)

h:\mac\dsdt.dsl 15200:                 C369 (0x00, 0x00, 0x01)
Error    4064 -     Object does not exist ^  (C369)

h:\mac\dsdt.dsl 15208:                 Return (C368 (0x00, 0x02))
Error    4064 -             Object does not exist ^  (C368)

h:\mac\dsdt.dsl 15213:                 C369 (0x01, 0x00, 0x02)
Error    4064 -     Object does not exist ^  (C369)

h:\mac\dsdt.dsl 15218:                 C369 (0x00, 0x00, 0x02)
Error    4064 -     Object does not exist ^  (C369)

h:\mac\dsdt.dsl 15226:                 Return (C368 (0x00, 0x03))
Error    4064 -             Object does not exist ^  (C368)

h:\mac\dsdt.dsl 15231:                 C369 (0x01, 0x00, 0x03)
Error    4064 -     Object does not exist ^  (C369)

h:\mac\dsdt.dsl 15236:                 C369 (0x00, 0x00, 0x03)
Error    4064 -     Object does not exist ^  (C369)

h:\mac\dsdt.dsl 15244:                 Return (C368 (0x00, 0x04))
Error    4064 -             Object does not exist ^  (C368)

h:\mac\dsdt.dsl 15249:                 C369 (0x01, 0x00, 0x04)
Error    4064 -     Object does not exist ^  (C369)

h:\mac\dsdt.dsl 15254:                 C369 (0x00, 0x00, 0x04)
Error    4064 -     Object does not exist ^  (C369)

h:\mac\dsdt.dsl 15262:                 Return (C368 (0x01, 0x00))
Error    4064 -             Object does not exist ^  (C368)

h:\mac\dsdt.dsl 15267:                 C369 (0x01, 0x01, 0x00)
Error    4064 -     Object does not exist ^  (C369)

h:\mac\dsdt.dsl 15272:                 C369 (0x00, 0x01, 0x00)
Error    4064 -     Object does not exist ^  (C369)

h:\mac\dsdt.dsl 15280:                 Return (C368 (0x01, 0x01))
Error    4064 -             Object does not exist ^  (C368)

h:\mac\dsdt.dsl 15285:                 C369 (0x01, 0x01, 0x01)
Error    4064 -     Object does not exist ^  (C369)

h:\mac\dsdt.dsl 15290:                 C369 (0x00, 0x01, 0x01)
Error    4064 -     Object does not exist ^  (C369)

h:\mac\dsdt.dsl 15298:                 Return (C367)
Error    4064 -             Object does not exist ^  (C367)

h:\mac\dsdt.dsl 15303:                 If (LAnd (LEqual (C367, 0x00), LEqual (C365, 0x00)))
Error    4064 -                       Object does not exist ^  (C367)

h:\mac\dsdt.dsl 15303:                 If (LAnd (LEqual (C367, 0x00), LEqual (C365, 0x00)))
Error    4064 -                                            Object does not exist ^  (C365)

h:\mac\dsdt.dsl 15305:                     If (LGreaterEqual (C366, \_TZ.TZ2._AC0 ()))
Error    4064 -                            Object does not exist ^  (C366)

h:\mac\dsdt.dsl 15305:                     If (LGreaterEqual (C366, \_TZ.TZ2._AC0 ()))
Error    4064 -                                           Object does not exist ^  (\_TZ.TZ2._AC0)

h:\mac\dsdt.dsl 15308:                         Store (0x01, C365)
Error    4064 -                          Object does not exist ^  (C365)

h:\mac\dsdt.dsl 15312:                 Store (0x01, C367)
Error    4064 -                  Object does not exist ^  (C367)

h:\mac\dsdt.dsl 15317:                 If (LAnd (C367, C365))
Error    4064 -               Object does not exist ^  (C367)

h:\mac\dsdt.dsl 15317:                 If (LAnd (C367, C365))
Error    4064 -                     Object does not exist ^  (C365)

h:\mac\dsdt.dsl 15319:                     If (LLess (C366, \_TZ.TZ2._AC0 ()))
Error    4064 -                    Object does not exist ^  (C366)

h:\mac\dsdt.dsl 15319:                     If (LLess (C366, \_TZ.TZ2._AC0 ()))
Error    4064 -                                   Object does not exist ^  (\_TZ.TZ2._AC0)

h:\mac\dsdt.dsl 15322:                         Store (0x00, C365)
Error    4064 -                          Object does not exist ^  (C365)

h:\mac\dsdt.dsl 15326:                 Store (0x00, C367)
Error    4064 -                  Object does not exist ^  (C367)

h:\mac\dsdt.dsl 15334:                 \_TZ.C36D ()
Error    4064 -          Object does not exist ^  (\_TZ.C36D)

h:\mac\dsdt.dsl 15335:                 \_TZ.C36E ()
Error    4064 -          Object does not exist ^  (\_TZ.C36E)

h:\mac\dsdt.dsl 15432:                 Return (C36A (0x02, 0x02))
Error    4064 -             Object does not exist ^  (C36A)

h:\mac\dsdt.dsl 15437:                 Return (C36A (0x01, 0x02))
Error    4064 -             Object does not exist ^  (C36A)

h:\mac\dsdt.dsl 15442:                 Return (C36A (0x00, 0x02))
Error    4064 -             Object does not exist ^  (C36A)

h:\mac\dsdt.dsl 15447:                 Return (C36A (0x03, 0x02))
Error    4064 -             Object does not exist ^  (C36A)

h:\mac\dsdt.dsl 15452:                 Store (C36F (0x02), Local0)
Error    4064 -            Object does not exist ^  (C36F)

h:\mac\dsdt.dsl 15453:                 Store (Local0, C366)
Error    4064 -                    Object does not exist ^  (C366)

h:\mac\dsdt.dsl 15462:                 Return (C36A (0x00, 0x03))
Error    4064 -             Object does not exist ^  (C36A)

h:\mac\dsdt.dsl 15480:                 Return (C36F (0x03))
Error    4064 -             Object does not exist ^  (C36F)

h:\mac\dsdt.dsl 15509:     DeviceLocal2)), Index (C384, Local0))
Error    4096 -                 ^ parse error, expecting `$'

ASL Input:  h:\mac\dsdt.dsl - 16246 lines, 582917 bytes, 7021 keywords
Compilation complete. 65 Errors, 1 Warnings, 1 Remarks, 2353 Optimizations


Phillip.
Slice
Many or your error is injected by first one
CODE
h:\mac\dsdt.dsl 15054:                         C35E (Else
Error    4096 -   parse error, expecting `','' or `')'' ^

h:\mac\dsdt.dsl 15064:                             })
Error    4096 -                         parse error ^

Reserved word "Else" cannot be in (). You have broken text file, possibly some lines is erased between C35E( and Else
MadMungo
Thanks for the help slice. I am now getting less errors when I try to compile the dsdt but I now know something is broken to do with C35E.

Here is a snippet of the area of code from the C35E error
CODE
}

                If (LOr (LNotEqual (Local0, DerefOf (Index (C363, Arg0))),
                    C35F))
                {
                    Store (0x00, C35F)
                    Store (Local0, Index (C363, Arg0))
                    If (LEqual (Arg0, 0x00))
                    {
                        Notify (\_TZ.TZ2, 0x81)  <=====  I think I need to add this
                    }
                    Else  <=====  Changed from C35E (Else
                    }
                        If (LLess (Arg0, 0x03))
                        {
                            C370 (Local0, Arg0)
                        }
                        Else
                        {
                            Notify (\_TZ.TZ3, 0x81)
                        }
                            })  <=====  Also deleted this line
                    }
                }

                And (C1F1, Not (Local2), C1F1)
            }


Here are the compiling errors I now get with the above changes plus my untouched dsdt.aml and .dsl files. Freshly extracted from Linux.
CODE
Intel ACPI Component Architecture
ASL Optimizing Compiler version 20100121 [Jan 21 2010]
Copyright (c) 2000 - 2010 Intel Corporation
Supports ACPI Specification Revision 4.0

h:\mac\dsdt.dsl  4174:                     Name (C1DE, Package (0x08)
Remark   5048 -                                                    ^ Initializer list shorter than declared package length

h:\mac\dsdt.dsl  5090:                         If (\_SB.C221 ())
Error    4064 -                      Object does not exist ^  (\_SB.C221)

h:\mac\dsdt.dsl  5178:                             If (\_SB.C229 ())
Error    4064 -                          Object does not exist ^  (\_SB.C229)

h:\mac\dsdt.dsl  7327:                         If (C26F ())
Error    4064 -                 Object does not exist ^  (C26F)

h:\mac\dsdt.dsl  7774:                         Store (\_SB.C29E (C281, C282, C285), Local2)
Error    4064 -                         Object does not exist ^  (\_SB.C29E)

h:\mac\dsdt.dsl  8194:                         Wait (\_SB.C165, 0x10)
Warning  1105 -               Possible operator timeout is ignored ^

h:\mac\dsdt.dsl 15054:                      Else
Error    4096 -                    parse error ^

h:\mac\dsdt.dsl 16110:         C39E ()
Error    4064 -                   ^ Object does not exist (C39E)

h:\mac\dsdt.dsl 16169:                     \_TZ.C35E (If (LEqual (Local0, 0x03))
Error    4096 -  parse error, expecting `','' or `')'' ^

h:\mac\dsdt.dsl 16169:                     \_TZ.C35E (If (LEqual (Local0, 0x03))
Error    4096 -                                                    parse error ^

h:\mac\dsdt.dsl 16169:                     \_TZ.C35E (If (LEqual (Local0, 0x03))
Warning  1106 -             Result is not used, operator has no effect ^

h:\mac\dsdt.dsl 16172:                         })
Error    4096 -                     parse error ^

h:\mac\dsdt.dsl 16231:             C173 ()
Error    4068 -                       ^ Object is not accessible from this scope (C173)

h:\mac\dsdt.dsl 16236:             C3A0 ()
Error    4064 - Object does not exist ^  (C3A0)

h:\mac\dsdt.dsl 16251:             If (C174 ())
Error    4068 -                           ^ Object is not accessible from this scope (C174)

h:\mac\dsdt.dsl 16261:     Scope
Error    4096 -                ^ parse error, expecting `$'

ASL Input:  h:\mac\dsdt.dsl - 16262 lines, 584276 bytes, 7421 keywords
Compilation complete. 13 Errors, 2 Warnings, 1 Remarks, 2567 Optimizations


Phillip.

Click to view attachment
Slice
Syntax errors again
CODE
h:\mac\dsdt.dsl 16169:                     \_TZ.C35E (If (LEqual (Local0, 0x03))
Error    4096 -  parse error, expecting `','' or `')'' ^

h:\mac\dsdt.dsl 16169:                     \_TZ.C35E (If (LEqual (Local0, 0x03))
Error    4096 -                                                    parse error ^

h:\mac\dsdt.dsl 16169:                     \_TZ.C35E (If (LEqual (Local0, 0x03))
Warning  1106 -             Result is not used, operator has no effect ^

you see (if
it is impossible.
It seems Ubuntu compiler creates a macros C35E.
Try to decompile dsdt.aml using MacOSX iasl program.
MadMungo
QUOTE (Slice @ Feb 8 2010, 07:30 PM) *
Syntax errors again
CODE
h:\mac\dsdt.dsl 16169:                     \_TZ.C35E (If (LEqual (Local0, 0x03))
Error    4096 -  parse error, expecting `','' or `')'' ^

h:\mac\dsdt.dsl 16169:                     \_TZ.C35E (If (LEqual (Local0, 0x03))
Error    4096 -                                                    parse error ^

h:\mac\dsdt.dsl 16169:                     \_TZ.C35E (If (LEqual (Local0, 0x03))
Warning  1106 -             Result is not used, operator has no effect ^

you see (if
it is impossible.
It seems Ubuntu compiler creates a macros C35E.
Try to decompile dsdt.aml using MacOSX iasl program.


OK, I have grabbed the DSDT file from MacOSX and compared it to the Ubuntu & Windows versions and they are all broken in the exact same way. It seems that HP cannot code a DSDT file to save there lives.

I managed to get the original DSDT to compile by comparing it to another DSDT from a different brand HP laptop and adding what I hope are the missing bits. Here is the dsdt from OSX and my fixed one for comparison. Click to view attachment

Unfortunately when I use my fixed DSDT I get a black screen, backlight is on, and after about 1 minute the machine goes to sleep and I cannot wake it up, I have to hard power off the laptop.

Phillip.
Slice
You can get dsdt.aml from Ubuntu or from Windows.
But decompile it in MacOSX
iasl -d dsdt.aml
MadMungo
QUOTE (Slice @ Feb 12 2010, 01:38 AM) *
You can get dsdt.aml from Ubuntu or from Windows.
But decompile it in MacOSX
iasl -d dsdt.aml


OK finally found time to do this, and I still get the same broken dsdt file. I also used the DumpACPI button from the Chameleon preferences app to compare the Ubuntu and Windows dsdt files to and they are the same.

Looks like the dsdt file in this laptop is broken. I also notice at the beginning of the dsdt.dsl under Compiler ID it shows MSFT.

18seven
QUOTE (MadMungo @ Mar 6 2010, 08:51 PM) *
OK finally found time to do this, and I still get the same broken dsdt file. I also used the DumpACPI button from the Chameleon preferences app to compare the Ubuntu and Windows dsdt files to and they are the same.

Looks like the dsdt file in this laptop is broken. I also notice at the beginning of the dsdt.dsl under Compiler ID it shows MSFT.


If you need specific functionality make those edits and use the -f option to force compile it.
ole2
hello Slice
my case errors exist too, but maybe they due to improper patching ?


CODE
Intel ACPI Component Architecture
AML Disassembler version 20080926 [Oct 4 2008]
Copyright © 2000 - 2008 Intel Corporation
Supports ACPI Specification Revision 3.0a


Intel ACPI Component Architecture
ASL Optimizing Compiler version 20080926 [Oct 4 2008]
Copyright © 2000 - 2008 Intel Corporation
Supports ACPI Specification Revision 3.0a

./dsdt_fixed.txt 1660: If (LEqual (^^HPET.NVID, 0x10DE))
Error 4064 - Object not found or not accessible from scope ^ (^^HPET.NVID)

./dsdt_fixed.txt 1692: If (LEqual (^^HPET.NVID, 0x10DE))
Error 4064 - Object not found or not accessible from scope ^ (^^HPET.NVID)

./dsdt_fixed.txt 5640: If (LOr (MP0P (Local6), MP1P (Local6)))
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5640: If (LOr (MP0P (Local6), MP1P (Local6)))
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5642: Multiply (MCRS (Local6), 0x08000000, BF0F)
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5644: If (MPCR (Local6))
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5646: If (MP0P (Local6))
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5648: If (MP1P (Local6))
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5659: If (MP0P (Local6))
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5661: Store (MP0N (Local6), Local5)
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5665: If (MP1P (Local6))
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5667: Store (MP1N (Local6), Local5)
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5671: If (LGreater (BNKN, MCDB (Local5)))
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5673: Store (MCDB (Local5), BNKN)
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5676: If (LLess (BNKX, MCDB (Local5)))
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5678: Store (MCDB (Local5), BNKX)
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5681: If (LGreater (COLN, MCDC (Local5)))
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5683: Store (MCDC (Local5), COLN)
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5686: If (LLess (COLX, MCDC (Local5)))
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5688: Store (MCDC (Local5), COLX)
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 5729: Method (MP0P, 1, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (MP0P)

./dsdt_fixed.txt 5757: Method (MP1P, 1, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (MP1P)

./dsdt_fixed.txt 5785: Method (MPCR, 1, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (MPCR)

./dsdt_fixed.txt 5813: Method (MP0N, 1, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (MP0N)

./dsdt_fixed.txt 5841: Method (MP1N, 1, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (MP1N)

./dsdt_fixed.txt 5869: Method (MCRB, 1, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (MCRB)

./dsdt_fixed.txt 5897: Method (MCRS, 1, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (MCRS)

./dsdt_fixed.txt 5925: Method (MCDB, 1, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (MCDB)

./dsdt_fixed.txt 5948: Method (MCDC, 1, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (MCDC)

./dsdt_fixed.txt 6297: Method (_DSM, 4, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (_DSM)

./dsdt_fixed.txt 6297: Method (_DSM, 4, NotSerialized)
Warning 1080 - ^ Reserved method must return a value (_DSM)

./dsdt_fixed.txt 6476: Method (GAPR, 0, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (GAPR)

./dsdt_fixed.txt 6496: Store (ROPO (Local0), Local1)
Warning 1092 - ^ Called method may not always return a value

./dsdt_fixed.txt 6521: Method (ROPO, 1, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (ROPO)

./dsdt_fixed.txt 6861: Method (_DSM, 4, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (_DSM)

./dsdt_fixed.txt 6861: Method (_DSM, 4, NotSerialized)
Warning 1080 - ^ Reserved method must return a value (_DSM)

./dsdt_fixed.txt 7309: Method (WMNV, 3, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (WMNV)

./dsdt_fixed.txt 7537: Return (^^IXVE.IGPU._DSM (MUID, REVI, SFNC, ARGD))
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 7542: Return (^^XVR0.VGA._DSM (MUID, REVI, SFNC, ARGD))
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 7549: Return (^^IXVE.IGPU._DSM (MUID, REVI, SFNC, ARGD))
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 7554: Return (^^XVR0.VGA._DSM (MUID, REVI, SFNC, ARGD))
Warning 1092 - Called method may not always return a value ^

./dsdt_fixed.txt 11257: Method (GMLE, 1, Serialized)
Warning 1087 - ^ Not all control paths return a value (GMLE)

./dsdt_fixed.txt 11270: Method (SMLE, 1, Serialized)
Warning 1087 - ^ Not all control paths return a value (SMLE)

./dsdt_fixed.txt 11290: Method (WLLC, 1, NotSerialized)
Warning 1087 - ^ Not all control paths return a value (WLLC)

ASL Input: ./dsdt_fixed.txt - 15348 lines, 451186 bytes, 7283 keywords
AML Output: ././dsdt.aml - 58059 bytes, 1826 named objects, 5457 executable opcodes

Compilation complete. 2 Errors, 42 Warnings, 0 Remarks, 60 Optimizations
DSDT Patcher 1.0.1e -- report Bugs to superfassl@gmail.com
enclose "DSDT Patcher/Debug/USER.tar"


Press any key to continue...


Getting the DSDT through ioreg...



Decompiling the DSDT...



Done, now start the Patching!

Patching RTC...

RTC Device found : Device (RTC0)
No IRQ found in RTC Device, should be fine
RTC Device found : Device (RTCM)
No IRQ found in RTC Device, should be fine
Patching HPET...

HPET Device will be overwritten...
HPET Device found : Device (HPET)
HPET Device found : Device (HPET)
1: {

1: Name (_HID, EisaId ("PNP0103"))

1: Name (_UID, Zero)

1: Name (CRS0, ResourceTemplate ()

2: {

2: IRQNoFlags ()

2: {0}

2: IRQNoFlags ()

2: {8}

1: })

1: Name (CRS1, ResourceTemplate ()

2: {

2: Memory32Fixed (ReadWrite,

2: 0x00000000, // Address Base

2: 0x00000000, // Address Length

2: _Y0B)

2: IRQNoFlags (_Y0C)

2: {0}

2: IRQNoFlags ()

2: {8}

1: })

1: Method (_STA, 0, NotSerialized)

2: {

2: If (LEqual (OSFL (), Zero))

3: {

3: If (LEqual (NVID, 0x10DE))

4: {

4: Return (0x0F)

3: }

3: Else

4: {

4: Return (Zero)

3: }

2: }

2: Else

3: {

3: Return (Zero)

2: }

1: }

1:

1: Method (_CRS, 0, NotSerialized)

2: {

2: CreateDWordField (CRS1, \_SB.PCI0.SBRG.HPET._Y0B._BAS, HPX1)

2: CreateDWordField (CRS1, \_SB.PCI0.SBRG.HPET._Y0B._LEN, HPX2)

2: CreateWordField (CRS1, \_SB.PCI0.SBRG.HPET._Y0C._INT, TIRQ)

2: If (LEqual (NVID, 0x10DE))

3: {

3: Store (Zero, Local0)

3: If (P2IR)

4: {

4: Store (0x02, Local0)

3: }

3:

3: ShiftLeft (One, Local0, TIRQ)

3: Store (SHPB, HPX1)

3: Store (SHPL, HPX2)

3: Return (CRS1)

2: }

2: Else

3: {

3: Return (CRS0)

2: }

1: }

1:

1: OperationRegion (CF29, PCI_Config, 0x74, One)

1: Field (CF29, ByteAcc, NoLock, Preserve)

2: {

2: , 1,

2: , 1,

2: P2IR, 1

1: }

1:

1: OperationRegion (HPTE, SystemMemory, SHPB, 0x04)

1: Field (HPTE, ByteAcc, NoLock, Preserve)

2: {

2: Offset (0x02),

2: NVID, 16

1: }

New HPET written

Fixing various Issues...

Done




We are done patching, press any key to try to compile the fixed DSDT




Compiling done, if it worked, you have now a patched DSDT in dsdt.aml

If the compiling went wrong, you could force to build it with ./DSDT\ Patcher -f (try this DSDT at your own risk)
ole2
hello Slice
my HPET seems to be missing memory location address (it's all 000000s)
have you ever seen before such HPET? do you know, where to look for address in such case?
thanks, and here is HPET record of mine:

CODE
Device (HPET)
{
Name (_HID, EisaId ("PNP0103"))
Name (_UID, Zero)
Name (CRS0, ResourceTemplate ()
{
IRQNoFlags ()
{0}
IRQNoFlags ()
{8}
})
Name (CRS1, ResourceTemplate ()
{
Memory32Fixed (ReadWrite,
0x00000000, // Address Base
0x00000000, // Address Length
_Y0B)
IRQNoFlags (_Y0C)
{0}
IRQNoFlags ()
{8}
})
Method (_STA, 0, NotSerialized)
{
If (LEqual (OSFL (), Zero))
{
If (LEqual (NVID, 0x10DE))
{
Return (0x0F)
}
Else
{
Return (Zero)
}
}
Else
{
Return (Zero)
}
}

Method (_CRS, 0, NotSerialized)
{
CreateDWordField (CRS1, \_SB.PCI0.SBRG.HPET._Y0B._BAS, HPX1)
CreateDWordField (CRS1, \_SB.PCI0.SBRG.HPET._Y0B._LEN, HPX2)
CreateWordField (CRS1, \_SB.PCI0.SBRG.HPET._Y0C._INT, TIRQ)
If (LEqual (NVID, 0x10DE))
{
Store (Zero, Local0)
If (P2IR)
{
Store (0x02, Local0)
}

ShiftLeft (One, Local0, TIRQ)
Store (SHPB, HPX1)
Store (SHPL, HPX2)
Return (CRS1)
}
Else
{
Return (CRS0)
}
}

OperationRegion (CF29, PCI_Config, 0x74, One)
Field (CF29, ByteAcc, NoLock, Preserve)
{
, 1,
, 1,
P2IR, 1
}

OperationRegion (HPTE, SystemMemory, SHPB, 0x04)
Field (HPTE, ByteAcc, NoLock, Preserve)
{
Offset (0x02),
NVID, 16
}
}

OperationRegion (LPDC, PCI_Config, 0xA0, 0x06)
Field (LPDC, ByteAcc, NoLock, Preserve)
{
S3F8, 1,
S2F8, 1,
, 3,
S2E8, 1,
, 1,
S3E8, 1,
, 4,
M300, 1,
, 2,
M330, 1,
, 4,
FDC0, 1,
Offset (0x03),
P378, 1,
P278, 1,
P3BC, 1,
Offset (0x04),
G200, 8,
G208, 8
}

Method (RRIO, 4, NotSerialized)
{
If (LOr (LEqual (Arg0, Zero), LEqual (Arg0, One)))
{
If (LEqual (Arg2, 0x03F8))
{
Store (Arg1, S3F8)
}

If (LEqual (Arg2, 0x02F8))
{
Store (Arg1, S2F8)
}

If (LEqual (Arg2, 0x03E8))
{
Store (Arg1, S3E8)
}

If (LEqual (Arg2, 0x02E8))
{
Store (Arg1, S2E8)
}
}

If (LEqual (Arg0, 0x02))
{
If (LEqual (Arg2, 0x0378))
{
Store (Arg1, P378)
}

If (LEqual (Arg2, 0x0278))
{
Store (Arg1, P278)
}

If (LEqual (Arg2, 0x03BC))
{
Store (Arg1, P3BC)
}
}

If (LEqual (Arg0, 0x03))
{
Store (Arg1, FDC0)
}

If (LEqual (Arg0, 0x05))
{
If (LEqual (Arg2, 0x0330))
{
Store (Arg1, M330)
}

If (LEqual (Arg2, 0x0300))
{
Store (Arg1, M300)
}
}

If (LEqual (Arg0, 0x08))
{
Store (Zero, Local0)
If (Arg1)
{
Store (0xFF, Local0)
}

If (LEqual (Arg2, 0x0200))
{
Store (Local0, G200)
}

If (LEqual (Arg2, 0x0208))
{
Store (Local0, G208)
}
}
}

Method (RDMA, 3, NotSerialized)
{
}
Slice
Zero HPET memory is wrong.
For Intel chipset it must be
CODE
                        Memory32Fixed (ReadWrite,
                            0xFED00000,         // Address Base
                            0x00000400,         // Address Length
                            )
                        IRQNoFlags ()
                            {0}
                        IRQNoFlags ()
                            {8}

Consulting with your chipset vendor if you have HPET.
But may be you have dynamically assigned HPET address. Don't know if it works in MacOSX.

About DSDT warning: you use very old iasl. Take new one here
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.