Contribute
Register

device paths

Status
Not open for further replies.
Joined
Apr 28, 2015
Messages
143
Motherboard
Asus Rog Strix Z370-i
CPU
i7-8700
Graphics
GTX 1050 Ti
Mac
  1. iMac
  2. MacBook Pro
Classic Mac
  1. LC
  2. Power Mac
Mobile Phone
  1. Android
  2. iOS
Can somebody please explain how the different paths work in SSDT?

this is not working, I can not rename PEGP to GFX1
Code:
    Scope (\)
    {
        Scope (\_SB)
        {
            Scope (PCI0)
            {
                Scope (PEG0)
                {
                    Device (GFX1)
                    {
                           Name (_ADR, Zero) 
                           ...
                           Methods, etc.
                    // and finally removing PEGP
                    Scope (PEGP)
                    {
                        Name (_STA, Zero)                   // Removing factory EC0 device
                    }
...


this is working, I can rename PEGP to GFX1
Code:
DefinitionBlock ("", "SSDT", 1, "APPLE", "GFX1", 0x00001000)
{
    Device (\_SB.PCI0.PEG0.GFX1)
    {
        ...
    }

    Name (\_SB_.PCI0.PEG0.PEGP._STA, Zero)
}
 
In your first example you may need to use 'external'

Code:
External (\_SB.PCI0.PEG0, DeviceObj)

Scope (\_SB.PCI0.PEG0) {
Device (PEGP) {
...
}
Device (GFX0) {
...
}
}
 
Can somebody please explain how the different paths work in SSDT?

this is not working, I can not rename PEGP to GFX1
Code:
    Scope (\)
    {
        Scope (\_SB)
        {
            Scope (PCI0)
            {
                Scope (PEG0)
                {
                    Device (GFX1)
                    {
                           Name (_ADR, Zero)
                           ...
                           Methods, etc.
                    // and finally removing PEGP
                    Scope (PEGP)
                    {
                        Name (_STA, Zero)                   // Removing factory EC0 device
                    }
...


this is working, I can rename PEGP to GFX1
Code:
DefinitionBlock ("", "SSDT", 1, "APPLE", "GFX1", 0x00001000)
{
    Device (\_SB.PCI0.PEG0.GFX1)
    {
        ...
    }

    Name (\_SB_.PCI0.PEG0.PEGP._STA, Zero)
}

Note enough information provided above... (your indenting may be misleading, or may point out your mistake...)??
 
sorry for not providing enough infos.

Here I have the two SSDT-s, I have.
The SSDT-GPU.dsl is working fine, the SSDT.dsl is not, and I can not see why.

Impossible to know without native ACPI files, EFI/Clover, and ioreg.
For example, there may be an existing _INI at _SB._INI. And you're trying to declare a new one... it would cause the system to ignore the rest of your file...
 

Your Clover bootlog (extracted from ioreg) shows SSDT.aml does not exist in ACPI/patched.
Code:
2:080  0:000  === [ ACPIPatchedAML ] ====================================
2:080  0:000  Unsorted
2:080  0:000  Inserting ssdt-cpu.aml from EFI\CLOVER\ACPI\patched ... Success

You can't expect an SSDT to have any effect when it is not loading/not present in ACPI/patched.
 
Aargh, I guess this is a clover issue.
Now my ssdt is loading, but when using SortedOrder in SSDT.aml doesn't load.

Your Clover bootlog shows that SortedOrder does not include SSDT.aml...
Code:
8:084  0:000  === [ ACPIPatchedAML ] ====================================
8:084  0:000  Sorted
8:084  0:000  Inserting table[0]:SSDT-USB.aml from EFI\CLOVER\ACPI\patched ... Success
8:087  0:003  Inserting table[1]:SSDT-GPU.aml from EFI\CLOVER\ACPI\patched ... Success
8:090  0:002  Inserting table[2]:SSDT-HDEF.aml from EFI\CLOVER\ACPI\patched ... Success
8:092  0:002  Inserting table[3]:SSDT-CPU.aml from EFI\CLOVER\ACPI\patched ... Success

You should not expect files that are not in SortedOrder to load.
 
Status
Not open for further replies.
Back
Top