Jump to content

Fix Kernel Panic / Freeze because HDMI_DP AppleHDA after wake in Catalina with Connectorless ig-platfrom-id of IGPU + Supported eGPU


24 posts in this topic

Recommended Posts

So, i have wake issue in Catalina from DP 3 (Second Wake always Fail), but now in DP 4 i always get Kernel panic after wake about "AppleHDA HDMI_DP Driver fail to set power 0 -> 1."

But i thought i get solution now.

First take a look at this _DSM of HDEF in real iMac18,3.
 

Device (HDEF)
            {
                Name (_ADR, 0x001F0003)  // _ADR: Address
                OperationRegion (HDAR, PCI_Config, Zero, 0x60)
                Field (HDAR, WordAcc, NoLock, Preserve)
                {
                    VID0,   16, 
                    DID0,   16
                }

                Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
                {
                    If (Arg0 == ToUUID ("a0b5b7c6-1318-441c-b0c9-fe695eaf949b"))
                    {
                        If ((VID0 & 0xFFFF) != 0xFFFF)
                        {
                            Local0 = Package (0x04)
                                {
                                    "No-hda-gfx", 
                                    Buffer (0x08)
                                    {
                                         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00   /* ........ */
                                    }, 

                                    "No-idle-support", 
                                    Buffer (0x02)
                                    {
                                        "0"
                                    }
                                }
                            DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                            Return (Local0)
                        }
                    }

                    Return (0x80000002)
                }
            }

And if you check for IGPU device in Real iMac 18,3 you won't found "hda gfx" properties too.

I am sure, it because Real iMac18,3 didn't use HDMI Audio from IGPU (HDAU), just HDAU (HDMI audio) from AMD GPU only. 

Then both GFX0 and HDAU of Real iMac18,3 use this properties,
 

                               "hda-gfx", 
                                Buffer (0x0A)
                                {
                                    "onboard-1"
                                }

So i have added this code below and remove "hda-gfx onboard-1" properties from my HDEF device, and change "onboard-2" in my GFX0 and HDAU (AMD Graphics) to "onboard-1".

                                    "No-hda-gfx", 
                                    Buffer (0x08)
                                    {
                                         0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00   /* ........ */
                                    }, 

                                    "No-idle-support", 
                                    Buffer (0x02)
                                    {
                                        "0"
                                    }


Then problem is gone.

I can sleep and wake my Hackintosh PC for more then 10 times without Kernel Panic or Freeze.

Take a look different in IOREG :)
1652841281_ScreenShot2019-07-27at05_05_58.thumb.png.b338750c8d1f854bce9cadd8b06c3f63.png

Conclusions is "you need to disable your HDMI Audio of IGPU" if you don't use it (connector-less ig-platform-id). I don't know if people with multiple monitor from IGPU and EGPU still need to disable HDMI Audio in Catalina".

My computer specifications is in my signature

Edited by Andres ZeroCross
  • Like 5
  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
On 7/30/2019 at 12:42 AM, tyufhl said:

as an example https://github.com/acidanthera/AptioFixPkg#verifymsre2 

But for accessing variables, I use RU.efi http://ruexe.blogspot.com

PS. in pdf showed how to do it.iDisplay Audio Disconnect.zip

 

I have tried this way, still can find the HDMI audio with IOREG

Edited by DearTanker
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

I have a wake from sleep issue on my Z390 Aorus Ultra motherboard with just the igpu activated. Screen comes back to life, cursor will move around for a few seconds, and then the machine just locks with no kernel panic, just freezes in place. Wake from sleep works fine in Mojave, and this only happens in Catalina using the same EFI folder.

 

I've tried the various fixes in the thread, but none seem to disable the HDMI audio device. With regards to the iDisplay Audio Disconnect instructions in the pdf, how am I supposed to open the firmware in the first step? I have downloaded it from gigabyte to open, is this correct, or should I be opening u some other file in UEFITool?

Link to comment
Share on other sites

On 10/22/2019 at 3:44 AM, ks5z said:

I have a wake from sleep issue on my Z390 Aorus Ultra motherboard with just the igpu activated. Screen comes back to life, cursor will move around for a few seconds, and then the machine just locks with no kernel panic, just freezes in place. Wake from sleep works fine in Mojave, and this only happens in Catalina using the same EFI folder.

 

I've tried the various fixes in the thread, but none seem to disable the HDMI audio device. With regards to the iDisplay Audio Disconnect instructions in the pdf, how am I supposed to open the firmware in the first step? I have downloaded it from gigabyte to open, is this correct, or should I be opening u some other file in UEFITool?

https://github.com/acidanthera/bugtracker/issues/513

Edited by tyufhl
Link to comment
Share on other sites

 Share

×
×
  • Create New...