Nick Posted August 13, 2012 Share Posted August 13, 2012 Hello, I am close to zero error when compiling my DSDT but i really struggle for one last ; i don't know where to put the return zero. Any idea ? Errors : Â /Users/Nicolas/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 9372: Method (_DSM, 4, Serialized) Warning 1088 - Not all control paths return a value ^ (_DSM) /Users/Nicolas/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 9372: Method (_DSM, 4, Serialized) Warning 1081 - Reserved method must return a value ^ (_DSM) Â And section : Â Method (_DSM, 4, Serialized) { Name (DRET, Buffer (0x04) { 0x00 }) If (LEqual (Arg0, Buffer (0x10) { /* 0000 */ 0xE1, 0x75, 0x39, 0x6F, 0x82, 0x7A, 0x67, 0x4F, /* 0008 */ 0x8B, 0x97, 0x15, 0xBE, 0xE0, 0x60, 0xBE, 0xDF })) { If (LEqual (Arg2, Zero)) { CreateWordField (DRET, Zero, F0SS) Store (0x02, F0SS) Return (DRET) } If (LEqual (Arg2, One)) { If (LEqual (^^PEG0.PEGP.LNKV, 0x03)) { Return (Zero) } Return (One) } } } } } Scope (_PR) Â Best regards. Quote Asus Maximus V Formula, i7 2600K, MSI GTX 580 Lightning Mountain Lion 10.8 <-- trashed : back to SL ; Chameleon r2070 Link to comment Share on other sites More sharing options...
Cassio Posted August 13, 2012 Share Posted August 13, 2012 Just insert a return in all control paths, but it won't make a difference (other than suppressing the compiler warning) Method (_DSM, 4, Serialized) { Name (DRET, Buffer (0x04) { 0x00 }) If (LEqual (Arg0, Buffer (0x10) { /* 0000 */ 0xE1, 0x75, 0x39, 0x6F, 0x82, 0x7A, 0x67, 0x4F, /* 0008 */ 0x8B, 0x97, 0x15, 0xBE, 0xE0, 0x60, 0xBE, 0xDF })) { If (LEqual (Arg2, Zero)) { CreateWordField (DRET, Zero, F0SS) Store (0x02, F0SS) Return (DRET) } If (LEqual (Arg2, One)) { If (LEqual (^^PEG0.PEGP.LNKV, 0x03)) { Return (Zero) } Return (One) } [color=#FF0000]Return (Zero)[/color] } [color=#FF0000]Return (Zero)[/color] } } } Scope (_PR) Quote -Donations- PayPal HERE - Stripe HERE - BuyMeaCoffee HERE - Mercado Livre HERE Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com Premium Users HERE - Problems with Paypal HERE Link to comment Share on other sites More sharing options...
Nick Posted August 14, 2012 Author Share Posted August 14, 2012 Thank you What do you mean by it won't make a difference ? The DSDT compil with only one return zero, do you advice to put two return zero ? Â Method (_DSM, 4, Serialized) { Name (DRET, Buffer (0x04) { 0x00 }) If (LEqual (Arg0, Buffer (0x10) { /* 0000 */ 0xE1, 0x75, 0x39, 0x6F, 0x82, 0x7A, 0x67, 0x4F, /* 0008 */ 0x8B, 0x97, 0x15, 0xBE, 0xE0, 0x60, 0xBE, 0xDF })) { If (LEqual (Arg2, Zero)) { CreateWordField (DRET, Zero, F0SS) Store (0x02, F0SS) Return (DRET) } If (LEqual (Arg2, One)) { If (LEqual (^^PEG0.PEGP.LNKV, 0x03)) { Return (Zero) } Return (One) } } Return (Zero) } Â EDIT : I still can't compil my dsdt when i try to inject a device : Â /Users/Nicolas/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 9384: Method (_DSM, 4, Serialized) Error 4057 - Name already exists in scope ^ (_DSM) Â I am swimming.. Quote Asus Maximus V Formula, i7 2600K, MSI GTX 580 Lightning Mountain Lion 10.8 <-- trashed : back to SL ; Chameleon r2070 Link to comment Share on other sites More sharing options...
Cassio Posted August 14, 2012 Share Posted August 14, 2012 What do you mean by it won't make a difference ? The DSDT compil with only one return zero, do you advice to put two return zero ? I mean warnings don't avoid compilation.  I still can't compil my dsdt when i try to inject a device : Error 4057 - Name already exists in scope ^ (_DSM) As the message says, _DSM already exists in scope. You can't have two objects with same name in same scope. Quote -Donations- PayPal HERE - Stripe HERE - BuyMeaCoffee HERE - Mercado Livre HERE Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com Premium Users HERE - Problems with Paypal HERE Link to comment Share on other sites More sharing options...
Nick Posted August 14, 2012 Author Share Posted August 14, 2012 Ok i got it ; and second method is removed ; i guess i don't have an alternate solution, but at least HD 3000 injection compil this time Quote Asus Maximus V Formula, i7 2600K, MSI GTX 580 Lightning Mountain Lion 10.8 <-- trashed : back to SL ; Chameleon r2070 Link to comment Share on other sites More sharing options...
imarun Posted August 17, 2012 Share Posted August 17, 2012 I also have Asus Maximus V Formula motherboard and I was making DSDT for the board. Mainly I have two issues: 1. Front panel usb ports don't work unless I edit HPET to assign more interrupts (which breaks wake from sleep). 2. I could not get the front panel audio to work. You can look at my thread for details : http://Olarila.com/forum/viewtopic.php?f=19&t=1831 Do you have any such issues with this motherboard? What patches did you apply in your dsdt? Quote Mountain Lion (10.8) Asus Maximus V Formula (with patched BIOS 804) Core i7 3770K EVGA GTX 680 4GB Corsair H100 CPU cooler Coolermaster Haf 922 chasis Microsoft wireless 5000 keyboard and mouse Link to comment Share on other sites More sharing options...