ACPI error: Namespace lookup failure

atanvarno

Donator
Donator
AMD OS X Member
Joined
May 2, 2020
Messages
228
I was checking my log for ACPI errors and found this:

Code:
Timestamp                       Thread     Type        Activity             PID    TTL  
2021-10-16 13:20:43.358082+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2021-10-16 13:20:43.358083+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2021-10-16 13:20:43.358084+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB_.PCI0.LPC0.EC0_]
2021-10-16 13:20:43.358085+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB_.PCI0.LPC0.EC0_]
2021-10-16 13:20:43.358085+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  Namespace lookup failure, AE_NOT_FOUND
2021-10-16 13:20:43.358086+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  Namespace lookup failure, AE_NOT_FOUND
2021-10-16 13:20:43.358087+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/dswload-292)
2021-10-16 13:20:43.358087+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/dswload-292)
2021-10-16 13:20:43.358088+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Exception: AE_NOT_FOUND,
2021-10-16 13:20:43.358089+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Exception: AE_NOT_FOUND,
2021-10-16 13:20:43.358089+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) During name lookup/catalog
2021-10-16 13:20:43.358090+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) During name lookup/catalog
2021-10-16 13:20:43.358091+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/psobject-310)
2021-10-16 13:20:43.358091+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/psobject-310)
2021-10-16 13:20:43.358104+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Exception: AE_NOT_FOUND,
2021-10-16 13:20:43.358105+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Exception: AE_NOT_FOUND,
2021-10-16 13:20:43.358106+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) (SSDT:QOGIRASL) while loading table
2021-10-16 13:20:43.358106+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) (SSDT:QOGIRASL) while loading table
2021-10-16 13:20:43.358107+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/tbxfload-319)
2021-10-16 13:20:43.358108+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/tbxfload-319)
2021-10-16 13:20:43.359396+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2021-10-16 13:20:43.359397+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2021-10-16 13:20:43.359398+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) 1 table load failures, 12 successful
2021-10-16 13:20:43.359398+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) 1 table load failures, 12 successful
2021-10-16 13:20:43.359399+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/tbxfload-342)
2021-10-16 13:20:43.359400+0200 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/tbxfload-342)

It seems to me something is looking up \_SB_.PCI0.LPC0 which does not exists in my DSDT. I checked the DSDT of actual MacPro7,1 and it also does not have LPC0 device.

The build is working on its own as it is; I am simply wondering is this something to be looked into.
 

atanvarno

Donator
Donator
AMD OS X Member
Joined
May 2, 2020
Messages
228
Looking at all DSDT / SSDT from ASRock ACPI, I found it. In one of the SSDTs there's:

Code:
    Scope (\_SB.PCI0.LPC0.EC0)
    {
        Method (XQ51, 0, NotSerialized)
        {
            \_GPE.EE1B ()
        }

        Method (XQ52, 0, NotSerialized)
        {
            \_GPE.EE1B ()
        }
    }

However, neither LPC0 nor EC0 are present anywhere, looked through all DSDT and SSDTs. So have no idea what the hell is this supposed to be. It does look like it tries to reference EC, which really does not exist in this ACPI.

So either MacIASL / iasl fail to parse ACPI binaries from this board or ASRock ACPI is super buggy and incomplete.
 

Aluveitie

Donator
Donator
AMD OS X Member
Joined
May 2, 2020
Messages
895
I think iGPU said the same thing when he was working on getting Thunderbolt to work on ASRock... :D
Wouldn't surprise me if ASRock had buggy ACPI, they have some weird behaviour in the BIOS too.
 

Shaneee

The AMD Guy
Staff member
Administrator
Joined
Mar 13, 2020
Messages
2,136
I had the same error. Turns out the EC shouldn't be on the LPCB it should be SBRG. Here's what I use now,

Markdown (GitHub flavored):
    External (_SB_.PCI0.SBRG, DeviceObj)
    External (_SB_.PCI0.SBRG.EC0_, DeviceObj)

    Scope (\_SB.PCI0.SBRG.EC0)
    {
        Method (_STA, 0, NotSerialized)  // _STA: Status
        {
            If (_OSI ("Darwin"))
            {
                Return (Zero)
            }
            Else
            {
                Return (0x0F)
            }
        }
    }
 

atanvarno

Donator
Donator
AMD OS X Member
Joined
May 2, 2020
Messages
228
I am wondering something: do BIOS changes influence the ACPI tables MaciASL is able to extract? I will test this at some point in Windows, by reseting BIOS to defaults and then extract ACPI tables there.

Reason for such thinking: there are 19 (!) unknown external methods in this one manufacturer SSDT extracted from ACPI. So it looks like a lot of stuff is missing. There are couple more uknown external methods in few other ASRock's SSDTs. Or at least those SSDTs are not added by me - I'm not sure if OpenCore or various other kexts (Lilu, VirtualSMC etc) are inserting SSDTs on their own.
 

atanvarno

Donator
Donator
AMD OS X Member
Joined
May 2, 2020
Messages
228
Checked in Windows, there's definitely no EC device on this motherboard. ACPI tables are identical, regardless of BIOS settings.
I am tempted to just suppress these two SSDT tables as it looks a bunch of leftover garbage, probably from some other board. Maybe even Z490 of the same name :)
 

Attachments

  • SSDT_5-7.zip
    15.4 KB · Views: 3
Top Bottom
  AdBlock Detected
Sure, ad-blocking software does a great job at blocking ads, but it also blocks some useful and important features of our website. For the best possible site experience please take a moment to disable your AdBlocker.