Contribute
Register

Invalid object type for reserved name (_PSD: found Integer at index 0, Package required)

Status
Not open for further replies.
Joined
May 10, 2012
Messages
146
Motherboard
Asus X299 PRO/SE
CPU
i9-10920X
Graphics
6900XT, W6600, W6800
Mac
  1. Mac Pro
I am trying to compile one SSDT, but it came with 120 errors. Most of which are:
Code:
924, 6105, Invalid object type for reserved name (_PSD: found Integer at index 0, Package required)
925, 6105, Invalid object type for reserved name (_PSD: found Integer at index 1, Package required)
926, 6105, Invalid object type for reserved name (_PSD: found Integer at index 2, Package required)
.....

Code:
  Method (_PSD, 0, NotSerialized)  // _PSD: Power State Dependencies
        {
            Return (Package (0x05)
            {
                0x05,
                0x00,
                0x00,
                0xFD,
                0x0C
            })
        }

..........

  Method (_PSD, 0, NotSerialized)  // _PSD: Power State Dependencies
        {
            Return (Package (0x05)
            {
                0x05,
                0x00,
                0x01,
                0xFD,
                0x0C
            })
        }
.......
 

Attachments

  • SSDT.dsl.zip
    38.3 KB · Views: 103
Do a search / replace.

Find: _PSD
Replace with: PSD
Wholly guacamole! 0 errors after replacement. The error message does not indicate this solution. What has package requirement to do with _?
 
Do a search / replace.

Find: _PSD
Replace with: PSD

_SB_ and _SB are the same.
All ACPI names are 4 characters. Always. It is so they can be handled as a 32-bit integer in the implementation (efficiency).
Shorter names are padded with underscore to make 4 characters.

So...
_SB is _SB_
XHC is XHC_
A is A___
AB is AB__
ABC is ABC_
 
Okey but _PSD is 4 characters, why is it not compiling properly? And It compiles with PSD which is 3 characters?
 
PSD should be PSD_.
 
PSD should be PSD_.
1592344875923.png

So everything with 3 letters has underscore upfront, but only PSD at the end?
 
Status
Not open for further replies.
Back
Top