Contribute
Register

Minor annoying bugs on Miix 720

Status
Not open for further replies.
Do some debugging of _REG in the EC (it is likely the method that sets ECON).
Yes, I have read through these code and related explanations in ACPI specs. It should perform with no exception.

For EC Operation Region, Arg0 is 3 which is the ID for EC, and Arg1 = 1 means "connect the handler" to allow data access in the region. The args may be passed by OS as no other ssdts calls _REG. I wonder if the delay is related to system so only workaround might be applied.

Code:
            Method (_REG, 2, NotSerialized)  // _REG: Region Availability
            {
                If (LEqual (Arg0, 0x03))
                {
                    Store (Arg1, ECAV)
                }

                If (LAnd (LEqual (Arg0, 0x03), LEqual (Arg1, One)))
                {
                    If (LEqual (OSYS, 0x07D6))
                    {
                        Store (One, Local0)
                    }

                    If (LEqual (OSYS, 0x03E8))
                    {
                        Store (0x02, Local0)
                    }

                    If (LEqual (OSYS, 0x07D9))
                    {
                        Store (0x03, Local0)
                    }

                    If (LEqual (OSYS, 0x07DC))
                    {
                        Store (0x04, Local0)
                    }

                    If (LEqual (OSYS, 0x07DD))
                    {
                        Store (0x05, Local0)
                    }

                    If (LEqual (OSYS, 0x07DF))
                    {
                        Store (0x06, Local0)
                    }

                    Store (One, ECON)
                    If (LEqual (Acquire (LFCM, 0xA000), Zero))
                    {
                        Store (Local0, OSTY)
                        If (LEqual (LSTE, Zero))
                        {
                            Store (Zero, ^^^IGPU.CLID)
                        }

                        If (LEqual (LSTE, One))
                        {
                            Store (0x03, ^^^IGPU.CLID)
                        }

                        Store (LSTE, LIDS)
                        Release (LFCM)
                    }
                }
            }
 
Yes, I have read through these code and related explanations in ACPI specs. It should perform with no exception.

For EC Operation Region, Arg0 is 3 which is the ID for EC, and Arg1 = 1 means "connect the handler" to allow data access in the region. The args may be passed by OS as no other ssdts calls _REG. I wonder if the delay is related to system so only workaround might be applied.

Code:
            Method (_REG, 2, NotSerialized)  // _REG: Region Availability
            {
                If (LEqual (Arg0, 0x03))
                {
                    Store (Arg1, ECAV)
                }

                If (LAnd (LEqual (Arg0, 0x03), LEqual (Arg1, One)))
                {
                    If (LEqual (OSYS, 0x07D6))
                    {
                        Store (One, Local0)
                    }

                    If (LEqual (OSYS, 0x03E8))
                    {
                        Store (0x02, Local0)
                    }

                    If (LEqual (OSYS, 0x07D9))
                    {
                        Store (0x03, Local0)
                    }

                    If (LEqual (OSYS, 0x07DC))
                    {
                        Store (0x04, Local0)
                    }

                    If (LEqual (OSYS, 0x07DD))
                    {
                        Store (0x05, Local0)
                    }

                    If (LEqual (OSYS, 0x07DF))
                    {
                        Store (0x06, Local0)
                    }

                    Store (One, ECON)
                    If (LEqual (Acquire (LFCM, 0xA000), Zero))
                    {
                        Store (Local0, OSTY)
                        If (LEqual (LSTE, Zero))
                        {
                            Store (Zero, ^^^IGPU.CLID)
                        }

                        If (LEqual (LSTE, One))
                        {
                            Store (0x03, ^^^IGPU.CLID)
                        }

                        Store (LSTE, LIDS)
                        Release (LFCM)
                    }
                }
            }

Use ACPIDebug.kext to check it.
 
I insert two names in EC and store Arg0 and Arg1 in _REG to them, the result is 0x3, 0x1, so the method itself seems working.

Code:
            Method (_REG, 2, NotSerialized)  // _REG: Region Availability
            {
                Store (Arg0, ESA0)
                Store (Arg1, ESA1)
                If (LEqual (Arg0, 0x03))
                {
                    Store (Arg1, ECAV)
                }

                If (LAnd (LEqual (Arg0, 0x03), LEqual (Arg1, One)))
 
Last edited:
I insert two names in EC and store Arg0 and Arg1 in _REG to them, the result is 0x3, 0x1, so the method itself seems working.

Code:
            Method (_REG, 2, NotSerialized)  // _REG: Region Availability
            {
                Store (Arg0, ESA0)
                Store (Arg1, ESA1)
                If (LEqual (Arg0, 0x03))
                {
                    Store (Arg1, ECAV)
                }

                If (LAnd (LEqual (Arg0, 0x03), LEqual (Arg1, One)))

No idea what you're referring to with "insert two names in EC".
You need to add RMDT calls to _REG to see if it executes beginning to end and stores the expected value in ECON.
 
Thank you, I had some misunderstanding related to that before and failed to watch the real process.

The method loops four time, the first two loops with Operation Region type 0 = SystemMemory, not 3 = EmbeddedControl.

Code:
            Name (LOOP, Zero)
            Method (_REG, 2, NotSerialized)  // _REG: Region Availability
            {
                \RMDT.P5 (LOOP, "Arg0", Arg0, "Arg1", Arg1)
                \RMDT.P3 (LOOP, "ECAV", ECAV)
                If (LEqual (Arg0, 0x03))
                {
                    Store (Arg1, ECAV)
                    \RMDT.P3 (LOOP, "ECAV Stored", ECAV)
                }

                If (LAnd (LEqual (Arg0, 0x03), LEqual (Arg1, One)))
                {
                    \RMDT.P2 (LOOP, "Loop 2 Passed")
                    If (LEqual (OSYS, 0x07D6))
                    {
                        Store (One, Local0)
                    }

                    If (LEqual (OSYS, 0x03E8))
                    {
                        Store (0x02, Local0)
                    }

                    If (LEqual (OSYS, 0x07D9))
                    {
                        Store (0x03, Local0)
                    }

                    If (LEqual (OSYS, 0x07DC))
                    {
                        Store (0x04, Local0)
                    }

                    If (LEqual (OSYS, 0x07DD))
                    {
                        Store (0x05, Local0)
                    }

                    If (LEqual (OSYS, 0x07DF))
                    {
                        Store (0x06, Local0)
                    }

                    \RMDT.P3 (LOOP, "Local0", Local0)
                    \RMDT.P3 (LOOP, "ECON", ECON)
                    Store (One, ECON)
                    If (LEqual (Acquire (LFCM, 0xA000), Zero))
                    {
                        \RMDT.P2 (LOOP, "LFCM Pass")
                        Store (Local0, OSTY)
                        \RMDT.P3 (LOOP, "LSTE", LSTE)
                        If (LEqual (LSTE, Zero))
                        {
                            Store (Zero, ^^^IGPU.CLID)
                        }

                        If (LEqual (LSTE, One))
                        {
                            Store (0x03, ^^^IGPU.CLID)
                        }

                        \RMDT.P3 (LOOP, "LIDS", LIDS)
                        Store (LSTE, LIDS)
                        Release (LFCM)
                    }
                }

                Increment (LOOP)
            }

Code:
2017-12-10 22:13:41.965944+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: Version 0.1.4 starting on OS X Darwin 17.3.
2017-12-10 22:13:41.966166+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x0, "Arg0", 0x1, "Arg1", 0x1, }
2017-12-10 22:13:41.966774+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x0, "ECAV", 0x0, }
2017-12-10 22:13:41.967082+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x1, "Arg0", 0x1, "Arg1", 0x1, }
2017-12-10 22:13:41.967496+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x1, "ECAV", 0x0, }
2017-12-10 22:13:41.967858+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "Arg0", 0x3, "Arg1", 0x1, }
2017-12-10 22:13:41.968242+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "ECAV", 0x0, }
2017-12-10 22:13:41.968589+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "ECAV Stored", 0x1, }
2017-12-10 22:13:41.968874+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "Loop 2 Passed", }
2017-12-10 22:13:41.969173+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "Local0", 0x6, }
2017-12-10 22:13:41.969558+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "ECON", 0x0, }
2017-12-10 22:13:41.970482+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "LFCM Pass", }
2017-12-10 22:13:41.970940+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "LSTE", 0x1, }
2017-12-10 22:13:41.971332+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "LIDS", 0x0, }
2017-12-10 22:13:41.972255+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "Arg0", 0x3, "Arg1", 0x1, }
2017-12-10 22:13:41.972649+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "ECAV", 0x1, }
2017-12-10 22:13:41.972949+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "ECAV Stored", 0x1, }
2017-12-10 22:13:41.973236+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "Loop 2 Passed", }
2017-12-10 22:13:41.973553+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "Local0", 0x6, }
2017-12-10 22:13:41.973846+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "ECON", 0x1, }
2017-12-10 22:13:41.974143+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "LFCM Pass", }
2017-12-10 22:13:41.974425+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "LSTE", 0x1, }
2017-12-10 22:13:41.974708+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "LIDS", 0x1, }

Also, there's no ACPIDebug logs output when I removed the _STA fix. And ACPIPlatform also reports EmbeddedControl errors four times.

Code:
2017-12-10 22:28:25.841068+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI:
2017-12-10 22:28:25.841069+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI:
2017-12-10 22:28:25.841071+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Executed 41 blocks of module-level executable AML code
2017-12-10 22:28:25.841072+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Executed 41 blocks of module-level executable AML code
2017-12-10 22:28:25.841074+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.841075+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.860800+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860801+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860804+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No handler for Region [ERAM] (ffffff8024a1e5a0) [EmbeddedControl]
2017-12-10 22:28:25.860805+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No handler for Region [ERAM] (ffffff8024a1e5a0) [EmbeddedControl]
2017-12-10 22:28:25.860808+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/evregion-252)
2017-12-10 22:28:25.860809+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/evregion-252)
2017-12-10 22:28:25.860810+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860811+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860812+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Region EmbeddedControl (ID=3) has no handler
2017-12-10 22:28:25.860813+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Region EmbeddedControl (ID=3) has no handler
2017-12-10 22:28:25.860815+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/exfldio-392)
2017-12-10 22:28:25.860816+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/exfldio-392)
2017-12-10 22:28:25.860820+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [_STA] @0000C #002D:
2017-12-10 22:28:25.860820+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [_STA] @0000C #002D:
2017-12-10 22:28:25.860822+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) E
2017-12-10 22:28:25.860823+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) E
2017-12-10 22:28:25.860824+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) M
2017-12-10 22:28:25.860824+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) M
2017-12-10 22:28:25.860825+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) O
2017-12-10 22:28:25.860825+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) O
2017-12-10 22:28:25.860826+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) D
2017-12-10 22:28:25.860827+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) D
2017-12-10 22:28:25.860828+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.860828+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.860830+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Local Variables are initialized for method [_STA]
2017-12-10 22:28:25.860831+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Local Variables are initialized for method [_STA]
2017-12-10 22:28:25.860832+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.860833+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.860834+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Arguments are initialized for method [_STA]
2017-12-10 22:28:25.860835+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Arguments are initialized for method [_STA]
2017-12-10 22:28:25.860837+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.860837+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.860839+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860840+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860841+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method parse/execution failed
2017-12-10 22:28:25.860842+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method parse/execution failed
2017-12-10 22:28:25.860844+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC.LID0._STA] (Node ffffff80255f1510)
2017-12-10 22:28:25.860845+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC.LID0._STA] (Node ffffff80255f1510)
2017-12-10 22:28:25.860847+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) , AE_NOT_EXIST
2017-12-10 22:28:25.860848+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) , AE_NOT_EXIST
2017-12-10 22:28:25.860850+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/psparse-632)
2017-12-10 22:28:25.860851+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/psparse-632)
2017-12-10 22:28:25.860854+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860855+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860857+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method execution failed
2017-12-10 22:28:25.860857+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method execution failed
2017-12-10 22:28:25.860860+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC.LID0._STA] (Node ffffff80255f1510)
2017-12-10 22:28:25.860861+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC.LID0._STA] (Node ffffff80255f1510)
2017-12-10 22:28:25.860863+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) , AE_NOT_EXIST
2017-12-10 22:28:25.860864+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) , AE_NOT_EXIST
2017-12-10 22:28:25.860866+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/uteval-183)
2017-12-10 22:28:25.860866+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/uteval-183)
2017-12-10 22:28:25.864956+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI: sleep states S0 S3 S4 S5
2017-12-10 22:28:25.870153+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870154+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870157+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No handler for Region [ERAM] (ffffff8024a1e5a0) [EmbeddedControl]
2017-12-10 22:28:25.870158+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No handler for Region [ERAM] (ffffff8024a1e5a0) [EmbeddedControl]
2017-12-10 22:28:25.870161+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/evregion-252)
2017-12-10 22:28:25.870162+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/evregion-252)
2017-12-10 22:28:25.870163+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870164+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870165+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Region EmbeddedControl (ID=3) has no handler
2017-12-10 22:28:25.870166+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Region EmbeddedControl (ID=3) has no handler
2017-12-10 22:28:25.870168+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/exfldio-392)
2017-12-10 22:28:25.870169+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/exfldio-392)
2017-12-10 22:28:25.870172+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [_STA] @0000C #002D:
2017-12-10 22:28:25.870173+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [_STA] @0000C #002D:
2017-12-10 22:28:25.870175+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) E
2017-12-10 22:28:25.870175+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) E
2017-12-10 22:28:25.870176+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) M
2017-12-10 22:28:25.870176+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) M
2017-12-10 22:28:25.870177+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) O
2017-12-10 22:28:25.870178+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) O
2017-12-10 22:28:25.870178+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) D
2017-12-10 22:28:25.870179+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) D
2017-12-10 22:28:25.870180+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.870180+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.870182+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Local Variables are initialized for method [_STA]
2017-12-10 22:28:25.870183+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Local Variables are initialized for method [_STA]
2017-12-10 22:28:25.870184+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.870185+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.870186+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Arguments are initialized for method [_STA]
2017-12-10 22:28:25.870187+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Arguments are initialized for method [_STA]
2017-12-10 22:28:25.870189+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.870189+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.870191+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870192+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870193+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method parse/execution failed
2017-12-10 22:28:25.870194+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method parse/execution failed
2017-12-10 22:28:25.870196+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC.LID0._STA] (Node ffffff80255f1510)
2017-12-10 22:28:25.870197+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC.LID0._STA] (Node ffffff80255f1510)
2017-12-10 22:28:25.870199+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) , AE_NOT_EXIST
2017-12-10 22:28:25.870200+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) , AE_NOT_EXIST
2017-12-10 22:28:25.870202+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/psparse-632)
2017-12-10 22:28:25.870202+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/psparse-632)
2017-12-10 22:28:25.870251+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870251+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870253+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No handler for Region [ERAM] (ffffff8024a1e5a0) [EmbeddedControl]
2017-12-10 22:28:25.870254+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No handler for Region [ERAM] (ffffff8024a1e5a0) [EmbeddedControl]
2017-12-10 22:28:25.870257+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/evregion-252)
2017-12-10 22:28:25.870258+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/evregion-252)
2017-12-10 22:28:25.870259+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870260+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870261+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Region EmbeddedControl (ID=3) has no handler
2017-12-10 22:28:25.870262+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Region EmbeddedControl (ID=3) has no handler
 
Thank you, I had some misunderstanding related to that before and failed to watch the real process.

The method loops four time, the first two loops with Operation Region type 0 = SystemMemory, not 3 = EmbeddedControl.

Code:
            Name (LOOP, Zero)
            Method (_REG, 2, NotSerialized)  // _REG: Region Availability
            {
                \RMDT.P5 (LOOP, "Arg0", Arg0, "Arg1", Arg1)
                \RMDT.P3 (LOOP, "ECAV", ECAV)
                If (LEqual (Arg0, 0x03))
                {
                    Store (Arg1, ECAV)
                    \RMDT.P3 (LOOP, "ECAV Stored", ECAV)
                }

                If (LAnd (LEqual (Arg0, 0x03), LEqual (Arg1, One)))
                {
                    \RMDT.P2 (LOOP, "Loop 2 Passed")
                    If (LEqual (OSYS, 0x07D6))
                    {
                        Store (One, Local0)
                    }

                    If (LEqual (OSYS, 0x03E8))
                    {
                        Store (0x02, Local0)
                    }

                    If (LEqual (OSYS, 0x07D9))
                    {
                        Store (0x03, Local0)
                    }

                    If (LEqual (OSYS, 0x07DC))
                    {
                        Store (0x04, Local0)
                    }

                    If (LEqual (OSYS, 0x07DD))
                    {
                        Store (0x05, Local0)
                    }

                    If (LEqual (OSYS, 0x07DF))
                    {
                        Store (0x06, Local0)
                    }

                    \RMDT.P3 (LOOP, "Local0", Local0)
                    \RMDT.P3 (LOOP, "ECON", ECON)
                    Store (One, ECON)
                    If (LEqual (Acquire (LFCM, 0xA000), Zero))
                    {
                        \RMDT.P2 (LOOP, "LFCM Pass")
                        Store (Local0, OSTY)
                        \RMDT.P3 (LOOP, "LSTE", LSTE)
                        If (LEqual (LSTE, Zero))
                        {
                            Store (Zero, ^^^IGPU.CLID)
                        }

                        If (LEqual (LSTE, One))
                        {
                            Store (0x03, ^^^IGPU.CLID)
                        }

                        \RMDT.P3 (LOOP, "LIDS", LIDS)
                        Store (LSTE, LIDS)
                        Release (LFCM)
                    }
                }

                Increment (LOOP)
            }

Code:
2017-12-10 22:13:41.965944+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: Version 0.1.4 starting on OS X Darwin 17.3.
2017-12-10 22:13:41.966166+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x0, "Arg0", 0x1, "Arg1", 0x1, }
2017-12-10 22:13:41.966774+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x0, "ECAV", 0x0, }
2017-12-10 22:13:41.967082+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x1, "Arg0", 0x1, "Arg1", 0x1, }
2017-12-10 22:13:41.967496+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x1, "ECAV", 0x0, }
2017-12-10 22:13:41.967858+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "Arg0", 0x3, "Arg1", 0x1, }
2017-12-10 22:13:41.968242+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "ECAV", 0x0, }
2017-12-10 22:13:41.968589+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "ECAV Stored", 0x1, }
2017-12-10 22:13:41.968874+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "Loop 2 Passed", }
2017-12-10 22:13:41.969173+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "Local0", 0x6, }
2017-12-10 22:13:41.969558+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "ECON", 0x0, }
2017-12-10 22:13:41.970482+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "LFCM Pass", }
2017-12-10 22:13:41.970940+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "LSTE", 0x1, }
2017-12-10 22:13:41.971332+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x2, "LIDS", 0x0, }
2017-12-10 22:13:41.972255+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "Arg0", 0x3, "Arg1", 0x1, }
2017-12-10 22:13:41.972649+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "ECAV", 0x1, }
2017-12-10 22:13:41.972949+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "ECAV Stored", 0x1, }
2017-12-10 22:13:41.973236+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "Loop 2 Passed", }
2017-12-10 22:13:41.973553+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "Local0", 0x6, }
2017-12-10 22:13:41.973846+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "ECON", 0x1, }
2017-12-10 22:13:41.974143+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "LFCM Pass", }
2017-12-10 22:13:41.974425+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "LSTE", 0x1, }
2017-12-10 22:13:41.974708+0800 0xc4       Default     0x0                  0      0    kernel: (kernel) ACPIDebug: { 0x3, "LIDS", 0x1, }

Also, there's no ACPIDebug logs output when I removed the _STA fix. And ACPIPlatform also reports EmbeddedControl errors four times.

Code:
2017-12-10 22:28:25.841068+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI:
2017-12-10 22:28:25.841069+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI:
2017-12-10 22:28:25.841071+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Executed 41 blocks of module-level executable AML code
2017-12-10 22:28:25.841072+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Executed 41 blocks of module-level executable AML code
2017-12-10 22:28:25.841074+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.841075+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.860800+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860801+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860804+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No handler for Region [ERAM] (ffffff8024a1e5a0) [EmbeddedControl]
2017-12-10 22:28:25.860805+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No handler for Region [ERAM] (ffffff8024a1e5a0) [EmbeddedControl]
2017-12-10 22:28:25.860808+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/evregion-252)
2017-12-10 22:28:25.860809+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/evregion-252)
2017-12-10 22:28:25.860810+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860811+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860812+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Region EmbeddedControl (ID=3) has no handler
2017-12-10 22:28:25.860813+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Region EmbeddedControl (ID=3) has no handler
2017-12-10 22:28:25.860815+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/exfldio-392)
2017-12-10 22:28:25.860816+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/exfldio-392)
2017-12-10 22:28:25.860820+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [_STA] @0000C #002D:
2017-12-10 22:28:25.860820+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [_STA] @0000C #002D:
2017-12-10 22:28:25.860822+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) E
2017-12-10 22:28:25.860823+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) E
2017-12-10 22:28:25.860824+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) M
2017-12-10 22:28:25.860824+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) M
2017-12-10 22:28:25.860825+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) O
2017-12-10 22:28:25.860825+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) O
2017-12-10 22:28:25.860826+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) D
2017-12-10 22:28:25.860827+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) D
2017-12-10 22:28:25.860828+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.860828+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.860830+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Local Variables are initialized for method [_STA]
2017-12-10 22:28:25.860831+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Local Variables are initialized for method [_STA]
2017-12-10 22:28:25.860832+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.860833+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.860834+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Arguments are initialized for method [_STA]
2017-12-10 22:28:25.860835+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Arguments are initialized for method [_STA]
2017-12-10 22:28:25.860837+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.860837+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.860839+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860840+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860841+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method parse/execution failed
2017-12-10 22:28:25.860842+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method parse/execution failed
2017-12-10 22:28:25.860844+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC.LID0._STA] (Node ffffff80255f1510)
2017-12-10 22:28:25.860845+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC.LID0._STA] (Node ffffff80255f1510)
2017-12-10 22:28:25.860847+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) , AE_NOT_EXIST
2017-12-10 22:28:25.860848+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) , AE_NOT_EXIST
2017-12-10 22:28:25.860850+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/psparse-632)
2017-12-10 22:28:25.860851+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/psparse-632)
2017-12-10 22:28:25.860854+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860855+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.860857+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method execution failed
2017-12-10 22:28:25.860857+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method execution failed
2017-12-10 22:28:25.860860+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC.LID0._STA] (Node ffffff80255f1510)
2017-12-10 22:28:25.860861+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC.LID0._STA] (Node ffffff80255f1510)
2017-12-10 22:28:25.860863+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) , AE_NOT_EXIST
2017-12-10 22:28:25.860864+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) , AE_NOT_EXIST
2017-12-10 22:28:25.860866+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/uteval-183)
2017-12-10 22:28:25.860866+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/uteval-183)
2017-12-10 22:28:25.864956+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI: sleep states S0 S3 S4 S5
2017-12-10 22:28:25.870153+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870154+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870157+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No handler for Region [ERAM] (ffffff8024a1e5a0) [EmbeddedControl]
2017-12-10 22:28:25.870158+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No handler for Region [ERAM] (ffffff8024a1e5a0) [EmbeddedControl]
2017-12-10 22:28:25.870161+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/evregion-252)
2017-12-10 22:28:25.870162+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/evregion-252)
2017-12-10 22:28:25.870163+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870164+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870165+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Region EmbeddedControl (ID=3) has no handler
2017-12-10 22:28:25.870166+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Region EmbeddedControl (ID=3) has no handler
2017-12-10 22:28:25.870168+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/exfldio-392)
2017-12-10 22:28:25.870169+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/exfldio-392)
2017-12-10 22:28:25.870172+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [_STA] @0000C #002D:
2017-12-10 22:28:25.870173+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [_STA] @0000C #002D:
2017-12-10 22:28:25.870175+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) E
2017-12-10 22:28:25.870175+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) E
2017-12-10 22:28:25.870176+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) M
2017-12-10 22:28:25.870176+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) M
2017-12-10 22:28:25.870177+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) O
2017-12-10 22:28:25.870178+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) O
2017-12-10 22:28:25.870178+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) D
2017-12-10 22:28:25.870179+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) D
2017-12-10 22:28:25.870180+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.870180+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.870182+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Local Variables are initialized for method [_STA]
2017-12-10 22:28:25.870183+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Local Variables are initialized for method [_STA]
2017-12-10 22:28:25.870184+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.870185+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.870186+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Arguments are initialized for method [_STA]
2017-12-10 22:28:25.870187+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No Arguments are initialized for method [_STA]
2017-12-10 22:28:25.870189+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.870189+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)
2017-12-10 22:28:25.870191+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870192+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870193+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method parse/execution failed
2017-12-10 22:28:25.870194+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Method parse/execution failed
2017-12-10 22:28:25.870196+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC.LID0._STA] (Node ffffff80255f1510)
2017-12-10 22:28:25.870197+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) [\_SB.PCI0.LPCB.EC.LID0._STA] (Node ffffff80255f1510)
2017-12-10 22:28:25.870199+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) , AE_NOT_EXIST
2017-12-10 22:28:25.870200+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) , AE_NOT_EXIST
2017-12-10 22:28:25.870202+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/psparse-632)
2017-12-10 22:28:25.870202+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/psparse-632)
2017-12-10 22:28:25.870251+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870251+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870253+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No handler for Region [ERAM] (ffffff8024a1e5a0) [EmbeddedControl]
2017-12-10 22:28:25.870254+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) No handler for Region [ERAM] (ffffff8024a1e5a0) [EmbeddedControl]
2017-12-10 22:28:25.870257+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/evregion-252)
2017-12-10 22:28:25.870258+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform)  (20160930/evregion-252)
2017-12-10 22:28:25.870259+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870260+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) ACPI Error:
2017-12-10 22:28:25.870261+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Region EmbeddedControl (ID=3) has no handler
2017-12-10 22:28:25.870262+0800 0x71       Default     0x0                  0      0    kernel: (AppleACPIPlatform) Region EmbeddedControl (ID=3) has no handler

If _STA is accessing EC registers, it must be corrected/patched. The ACPI runtime in macOS/OS X does not allow EC access in _STA as it is called prior to _REG. This is per ACPI spec, even though Windows seems to allow it.

And if _STA for the EC fails to return the correct value, _REG will never be called as the device is simply ignored.

So... seems like the root of the issue is an incorrectly coded _STA.
 
Very interesting. I have a Miix 720 that I was going to sell after getting a Thinkpad 25. I might just keep it if it can be successfully hackintoshed.
 
Status
Not open for further replies.
Back
Top