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
17 minutes ago, tyufhl said:

@Andres ZeroCross iMac — fw (3).zip I disable it through the iDisplay Audio Disconnect variable and the device turns off completely. Like in Apple.585297802_2019-07-2920_59_55.thumb.png.f909aacc8591706e6113fbf788deb3c8.png

 


Nice,, honestly i don't know how to set this variable. Can you write a guide?

  • 2 weeks later...
  • 1 month later...
1 minute ago, DearTanker said:

How to disable HDMI Audio in Catalina ? must be fix from the bios ?


Just remove 
 

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

From _DSM of your HDEF in DSDT or HDEF properties in config.plist

4 minutes ago, Andres ZeroCross said:


Just remove 
 


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

From _DSM of your HDEF in DSDT or HDEF properties in config.plist

 

I don't find anything like this with in config.plist.

config.plist.zip

Just now, DearTanker said:

 

I don't find anything like this with in config.plist.

config.plist.zip

Then set it from your DSDT

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
16 minutes ago, tyufhl said:

@DearTanker can show a photo of the page "Setup" with the offset 0xF54?

 

 

I have set it to 0x1, and I have check two times to make sure I was right.

 

I will take the photo for u ...

IMG_4982.JPG

Edited by DearTanker
48 minutes ago, DearTanker said:

 

 

I have set it to 0x1, and I have check two times to make sure I was right.

 

I will take the photo for u ...

IMG_4982.JPG

can you change CFG Lock?

  • 2 weeks later...
On 7/29/2019 at 11:06 PM, tyufhl said:

@Andres ZeroCross iMac — fw (3).zip I disable it through the iDisplay Audio Disconnect variable and the device turns off completely. Like in Apple.585297802_2019-07-2920_59_55.thumb.png.f909aacc8591706e6113fbf788deb3c8.png

 

wow! just got fixed by using uefi tool and ru.efi. thanks @tyufhl.

  • Like 1
  • 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?

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
On 10/23/2019 at 11:04 PM, tyufhl said:

Thanks for posting this link!.. I've got my wake from sleep working now after following some of the fixes in that thread..

×
×
  • Create New...