InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   Trying to fix my DSDT warnings... (http://infinitemac.com/showthread.php?t=3911)

chris7519 09-03-2009 12:53 AM

Trying to fix my DSDT warnings...
 
Well after doing some searching around, it looks as though patching my DSDT for GFX (9600M GT), audio (Intel IDT 111D76B2), and sleep support is the way to go. However, it seems that trying to find DSDT information as it pertains to my system it quite difficult. I figured I would try to start small and fix the warnings I get when running DSDT patcher and then tackling supporting my hardware once I have a grasp on what I'm doing. When running DSDT, I encounter 31 warnings:

Code:

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  1341:            Method (_HOT, 0, Serialized)
Warning  1087 -                                ^ Not all control paths return a value (_HOT)

./dsdt_fixed.txt  1341:            Method (_HOT, 0, Serialized)
Warning  1080 -                                ^ Reserved method must return a value (_HOT)

./dsdt_fixed.txt  1364:            Method (_CRT, 0, Serialized)
Warning  1087 -                                ^ Not all control paths return a value (_CRT)

./dsdt_fixed.txt  1364:            Method (_CRT, 0, Serialized)
Warning  1080 -                                ^ Reserved method must return a value (_CRT)

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

./dsdt_fixed.txt  1417:            Method (_PSV, 0, NotSerialized)
Warning  1080 -                                ^ Reserved method must return a value (_PSV)

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

./dsdt_fixed.txt  7886:                    Method (_GTM, 0, NotSerialized)
Warning  1080 -    Reserved method must return a value ^  (_GTM)

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

./dsdt_fixed.txt  8046:                        Method (_GTF, 0, NotSerialized)
Warning  1080 -        Reserved method must return a value ^  (_GTF)

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

./dsdt_fixed.txt  8114:                        Method (_GTF, 0, NotSerialized)
Warning  1080 -        Reserved method must return a value ^  (_GTF)

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

./dsdt_fixed.txt  8187:                    Method (_GTM, 0, NotSerialized)
Warning  1080 -    Reserved method must return a value ^  (_GTM)

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

./dsdt_fixed.txt  8347:                        Method (_GTF, 0, NotSerialized)
Warning  1080 -        Reserved method must return a value ^  (_GTF)

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

./dsdt_fixed.txt  8415:                        Method (_GTF, 0, NotSerialized)
Warning  1080 -        Reserved method must return a value ^  (_GTF)

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

./dsdt_fixed.txt  8520:                    Method (_GTM, 0, NotSerialized)
Warning  1080 -    Reserved method must return a value ^  (_GTM)

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

./dsdt_fixed.txt  8680:                        Method (_GTF, 0, NotSerialized)
Warning  1080 -        Reserved method must return a value ^  (_GTF)

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

./dsdt_fixed.txt  8748:                        Method (_GTF, 0, NotSerialized)
Warning  1080 -        Reserved method must return a value ^  (_GTF)

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

./dsdt_fixed.txt  8821:                    Method (_GTM, 0, NotSerialized)
Warning  1080 -    Reserved method must return a value ^  (_GTM)

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

./dsdt_fixed.txt  8981:                        Method (_GTF, 0, NotSerialized)
Warning  1080 -        Reserved method must return a value ^  (_GTF)

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

./dsdt_fixed.txt  9049:                        Method (_GTF, 0, NotSerialized)
Warning  1080 -        Reserved method must return a value ^  (_GTF)

./dsdt_fixed.txt  9937:                Store (Package (0x02)
Warning  1099 -            Statement is unreachable ^

ASL Input:  ./dsdt_fixed.txt - 11379 lines, 401564 bytes, 5477 keywords
AML Output: ././dsdt.aml - 46711 bytes, 975 named objects, 4502 executable opcodes

Compilation complete. 0 Errors, 31 Warnings, 0 Remarks, 40 Optimizations

Starting at the beginning, it looks as through the Method (_HOT, 0, Serialized) If (LGreaterEqual (OSYS, 0x07D6)) should be returning a value, but it's not.

Code:

ThermalZone (TZ01)
        {
            Method (_HOT, 0, Serialized)
            {
                If (LGreaterEqual (OSYS, 0x07D6))
                {
                    If (LEqual (\_SB.PCI0.LPC.EC0.QUAD, One))
                    {
                        Return (0x0E94)
                    }
                    Else
                    {
                        If (LEqual (TJMX, 0x64))
                        {
                            Return (0x0EC6)
                        }
                    }

                    If (LEqual (TJMX, 0x55))
                    {
                        Return (0x0E30)
                    }
                }
            }

At this point, I find myself looking at random numerous solutions, but I'm not sure what will work for my system, and how I'm able to tell if a particular fix would do more damage than good. For example, I found this webpage and it shows what I believe to be a possible solution. So I replace the original Method with:
Code:

      Method (_HOT, 0, Serialized)
            {
                If (LEqual (OSYS, 0x07D6))
                {
                    If (LEqual (\_SB.TJ85, Zero))
                    {
                        Return (Add (0x0AAC, Multiply (TPC, 0x0A)))
                    }
                    Else
                    {
                        Return (Add (0x0AAC, Multiply (TP85, 0x0A)))
                    }
                }
            }

Afterwards I receive 82 errors, so obviously that's not correct! Any help with general warning corrections... or if you're up to patching my GFX card, audio, and sleep issues :D ... would be very much appreciated!!! I'm just looking for someone to point me in the right direction...