Jump to content
About Just Joined group Read more... ×
Mieze

Tracing back the AMD GPU wakeup issue to its origin

365 posts in this topic

Recommended Posts

Ive tried everything but no luck, Everyitme ATI is inject i get panic on 10.13.1, its working gr8 on 10.11.6.

N if i ignore ATI Inject, AMD6000 n AMD3000 controller load but no QE/CI.

 

1.FakeID

2.Mieze DSDT Patch

3.DeInit

4.AMD6000 Controller Patch

5.WhateverGreen 

6.replacing 4 kext as @slice said in one thread..

7.Directly patching Farmebuffer in AMD6000Controller 

 

m using AMDFrameBufferUtility App

 

The panic is regarding Legacy AMD ...

 

Share this post


Link to post
Share on other sites
Advertisement

Ive tried everything but no luck, Everyitme ATI is inject i get panic on 10.13.1, its working gr8 on 10.11.6.

N if i ignore ATI Inject, AMD6000 n AMD3000 controller load but no QE/CI.

 

1.FakeID

2.Mieze DSDT Patch

3.DeInit

4.AMD6000 Controller Patch

5.WhateverGreen 

6.replacing 4 kext as @slice said in one thread..

7.Directly patching Farmebuffer in AMD6000Controller 

 

m using AMDFrameBufferUtility App

 

The panic is regarding Legacy AMD ...

 

Looks like system can not extract EDID of the monitor. You should help it, by injecting EDID.

Share this post


Link to post
Share on other sites

Ive tried everything but no luck, Everyitme ATI is inject i get panic on 10.13.1, its working gr8 on 10.11.6.

N if i ignore ATI Inject, AMD6000 n AMD3000 controller load but no QE/CI.

 

1.FakeID

2.Mieze DSDT Patch

3.DeInit

4.AMD6000 Controller Patch

5.WhateverGreen 

6.replacing 4 kext as @slice said in one thread..

7.Directly patching Farmebuffer in AMD6000Controller 

 

m using AMDFrameBufferUtility App

 

The panic is regarding Legacy AMD ...

 

 

 

 

Try this kext. AMDRadeonX4000HWServiceskext.  It had ID 0x66411002, edited to 0x68411002, also edited the 0x68401002.   This new metal2 for High Sierra has 3 device IDs required for the AMD graphics kext bundles.   

AMDRadeonX4000HWServices.kext.zip

Share this post


Link to post
Share on other sites

Hi,

 

finally everything is almost working! Multimonitor is working perfectly now for my XFX RX 580 8GB ... with DeInit in Clover (v.4297) and Mieze's code in form of SSDT! Thanks Mieze, Slice, CyberDevs and Von Morks!  :thumbsup_anim: 

 

 

The problem is audio HDMI ... for some strange reason is not working while it was with WhatEverGreen kext... anyone has any hint? 

SSDT_RX580_XFX.zip

Share this post


Link to post
Share on other sites

Hi,

 

finally everything is almost working! Multimonitor is working perfectly now for my XFX RX 580 8GB ... with DeInit in Clover (v.4297) and Mieze's code in form of SSDT! Thanks Mieze, Slice, CyberDevs and Von Morks!  :thumbsup_anim:

 

 

The problem is audio HDMI ... for some strange reason is not working while it was with WhatEverGreen kext... anyone has any hint? 

Which value does the "hda-gfx" property of device HDEF have?

 

Mieze

Share this post


Link to post
Share on other sites

Your video card connector is: 3DP+1HDMI+1DVI, Orinoco FB definition connector is 2DP+2HDMI+1DVI, can work properly? Sorry for my poor english.

yeah, I know. I'm trying also with Dayman FB... but no luck...

Share this post


Link to post
Share on other sites

@hackaro: It's "onboard-1" but it should be "onboard-2" in case you use "onboard-1" for device HDAU and the AMD GPU because this property links the graphics device to the audio device.

 

Mieze

Share this post


Link to post
Share on other sites

@hackaro: It's "onboard-1" but it should be "onboard-2" in case you use "onboard-1" for device HDAU and the AMD GPU because this property links the graphics device to the audio device.

 

Mieze

still not working even with "onboard-2" in SSDT... do you need some more files?

Another thing that I feel to point out is that no matter what FB you specify in the SSDT it seems to me that it loads the AMDframebuffer one. That's to say the generic one... that's leading to have only 2 DP ports working out of 3... I didn't test the HDMI yet, but I will soon with 3 monitors attached... 

https://www.dropbox.com/s/nluayy5qzvc27hg/Screenshot%202017-11-17%2003.07.15.png?dl=0

 

here is the generic FB... 

Share this post


Link to post
Share on other sites

still not working even with "onboard-2" in SSDT... do you need some more files?

Another thing that I feel to point out is that no matter what FB you specify in the SSDT it seems to me that it loads the AMDframebuffer one. That's to say the generic one... that's leading to have only 2 DP ports working out of 3... I didn't test the HDMI yet, but I will soon with 3 monitors attached... 

This indicates that there is a problem with the SSDT regarding the GPU. Take a look at device GFX0's method _DSM. The lines

                        If (LEqual (Arg2, Zero))
                        {
                            Return (Buffer (One)
                            {
                                 0x03                                           
                            })
                        }

are missing. Without them it won't work. I must have missed that at first glance.

 

Mieze

Share this post


Link to post
Share on other sites

This indicates that there is a problem with the SSDT regarding the GPU. Take a look at device GFX0's method _DSM. The lines

                        If (LEqual (Arg2, Zero))
                        {
                            Return (Buffer (One)
                            {
                                 0x03                                           
                            })
                        }

are missing. Without them it won't work. I must have missed that at first glance.

 

Mieze

hi, no need to use ssdt if adding Radeondeinit=true in config.plist. right?

Share this post


Link to post
Share on other sites

This indicates that there is a problem with the SSDT regarding the GPU. Take a look at device GFX0's method _DSM. The lines

                        If (LEqual (Arg2, Zero))
                        {
                            Return (Buffer (One)
                            {
                                 0x03                                           
                            })
                        }

are missing. Without them it won't work. I must have missed that at first glance.

 

Mieze

 

ok, I modified as follow:

/*
 * Intel ACPI Component Architecture
 * AML/ASL+ Disassembler version 20161210-64(RM)
 * Copyright (c) 2000 - 2016 Intel Corporation
 * 
 * Disassembling to non-symbolic legacy ASL operators
 *
 * Disassembly of iASLneKcV3.aml, Thu Nov  9 19:45:36 2017
 *
 * Original Table Header:
 *     Signature        "SSDT"
 *     Length           0x000026B7 (9911)
 *     Revision         0x02
 *     Checksum         0xD4
 *     OEM ID           "PegSsd"
 *     OEM Table ID     "PegSsdt"
 *     OEM Revision     0x00001000 (4096)
 *     Compiler ID      "INTL"
 *     Compiler Version 0x20161210 (538317328)
 */
DefinitionBlock ("", "SSDT", 2, "PegSsd", "PegSsdt", 0x00001000)
{
    External (_SB_.GGOV, MethodObj)    // 1 Arguments (from opcode)
    External (_SB_.ISME, MethodObj)    // 1 Arguments (from opcode)
    External (_SB_.PCI0, DeviceObj)    // (from opcode)
    External (_SB_.PCI0.PEG0, DeviceObj)    // (from opcode)
    External (_SB_.PCI0.PEG0.PEGP, DeviceObj)    // (from opcode)
    External (_SB_.PCI0.PEG1, DeviceObj)    // (from opcode)
    External (_SB_.PCI0.PEG1.PEGP, DeviceObj)    // (from opcode)
    External (_SB_.PCI0.PEG2, DeviceObj)    // (from opcode)
    External (_SB_.PCI0.PEG2.PEGP, DeviceObj)    // (from opcode)
    External (_SB_.SGOV, MethodObj)    // 2 Arguments (from opcode)
    External (_SB_.SHPO, MethodObj)    // 2 Arguments (from opcode)
    External (GPRW, MethodObj)    // 2 Arguments (from opcode)

   If (CondRefOf (\_SB.PCI0.PEG0.PEGP))
    {
        Scope (\_SB.PCI0.PEG0.PEGP)
        {
            Device (AMD0)
            {
                Name (_ADR, 0x00080000)  // _ADR: Address
                Device (GFX0)
                {
                    Name (_ADR, Zero)  // _ADR: Address
                    OperationRegion (PCIB, PCI_Config, Zero, 0x0100) // <--- from here...
                    Field (PCIB, AnyAcc, NoLock, Preserve)
                    {
                        Offset (0x10), 
                        BAR0,   32, 
                        BAR1,   32, 
                        BAR2,   64, 
                        BAR4,   32, 
                        BAR5,   32
                    }

                    Method (_INI, 0, NotSerialized)  // _INI: Initialize
                    {
                        If (LEqual (BAR5, Zero))
                        {
                            Store (BAR2, Local0)
                        }
                        Else
                        {
                            Store (BAR5, Local0)
                        }

                        OperationRegion (GREG, SystemMemory, And (Local0, 0xFFFFFFFFFFFFFFF0), 0x8000)
                        Field (GREG, AnyAcc, NoLock, Preserve)
                        {
                            Offset (0x6800), 
                            GENA,   32, 
                            GCTL,   32, 
                            LTBC,   32, 
                            Offset (0x6810), 
                            PSBL,   32, 
                            SSBL,   32, 
                            PTCH,   32, 
                            PSBH,   32, 
                            SSBH,   32, 
                            Offset (0x6848), 
                            FCTL,   32, 
                            Offset (0x6EF8), 
                            MUMD,   32
                        }

                        Store (Zero, FCTL)
                        Store (Zero, PSBH)
                        Store (Zero, SSBH)
                        Store (Zero, LTBC)
                        Store (One, GENA)
                        Store (Zero, MUMD)
                    } // <--- to here is MIEZEs code to get it work w/o LILU and WhatEverGreen

                    Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method  // <--- from here...
                    {
                        If (LEqual (Arg2, Zero))
                {
                    Return (Buffer (One)
                    {
                         0x03                                           
                    })
                }

                        Return (Package (0x14)
                {
                    "AAPL,slot-name", 
                    Buffer (0x07)
                    {
                        "Slot-1"
                    }, 

                    "@0,AAPL,boot-display", 
                    Buffer (One)
                    {
                         0x00                                           
                    }, 

                    "@0,name", 
                    Buffer (0x0C)
                    {
                        "ATY,Orinoco"
                    }, 

                    "@1,name", 
                    Buffer (0x0C)
                    {
                        "ATY,Orinoco"
                    }, 

                    "@2,name", 
                    Buffer (0x0C)
                    {
                        "ATY,Orinoco"
                    }, 

                    "@3,name", 
                    Buffer (0x0C)
                    {
                        "ATY,Orinoco"
                    }, 

                    "ATY,VendorID", 
                    Buffer (0x02)
                    {
                         0x02, 0x10                                     
                    }, 

                    "ATY,DeviceID", 
                    Buffer (0x02)
                    {
                         0xD7, 0x67                                     
                    }, 

                    "model", 
                    Buffer (0x12)
                    {
                        "AMD Radeon RX 580"
                    }, 

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

                Device (HDAU)
                {
                    Name (_ADR, One)  // _ADR: Address
                    Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
                    {
                        If (LEqual (Arg2, Zero))
                        {
                            Return (Buffer (One)
                            {
                                 0x03                                           
                            })
                        }

                        Return (Package (0x04)
                        {
                            "layout-id", 
                            Buffer (0x04)
                            {
                                 0x01, 0x00, 0x00, 0x00                         
                            }, 

                            "hda-gfx", 
                            Buffer (0x0A)
                            {
                                "onboard-2"
                            }
                        })
                    }
                }
            } // <--- to here your specific GFX-Card values to be used

            Method (DTGP, 5, NotSerialized)
            {
                If (LEqual (Arg0, ToUUID ("e5c937d0-3553-4d7a-9117-ea4d19c3434d")))
                {
                    If (LEqual (Arg1, One))
                    {
                        If (LEqual (Arg2, Zero))
                        {
                            Store (Buffer (One)
                                {
                                     0x03                                           
                                }, Arg4)
                            Return (One)
                        }

                        If (LEqual (Arg2, One))
                        {
                            Return (One)
                        }
                    }
                }

                Store (Buffer (One)
                    {
                         0x00                                           
                    }, Arg4)
                Return (Zero)
            }

            Name (LTRE, Zero)
            OperationRegion (PCIS, PCI_Config, Zero, 0x0100)
            Field (PCIS, AnyAcc, NoLock, Preserve)
            {
                PVID,   16, 
                PDID,   16
            }

            Method (_PRW, 0, NotSerialized)  // _PRW: Power Resources for Wake
            {
                Return (GPRW (0x69, 0x04))
            }
        }
    }
}

but still no success. No HDMI audio and generic FB...

Share this post


Link to post
Share on other sites

but still no success. No HDMI audio and generic FB...

Use Clover to inject the framebuffer. This is the easy way. First, get the correct framebuffer working and, after that, fix the audio.

 

Mieze

Share this post


Link to post
Share on other sites

Use Clover to inject the framebuffer. This is the easy way. First, get the correct framebuffer working and, after that, fix the audio.

 

Mieze

 

Not possible, because the "RadeonDeInit" flag implies you have the ATI inject not ticked, therefore Clover won't load any frame buffer no matter what you specify. 

Share this post


Link to post
Share on other sites

Not possible, because the "RadeonDeInit" flag implies you have the ATI inject not ticked, therefore Clover won't load any frame buffer no matter what you specify. 

You can use Clover to inject the framebuffer and use the DSDT-patch/SSDT to fix the wakeup issue. That's the method I'm using.

 

Mieze

Share this post


Link to post
Share on other sites

You can use Clover to inject the framebuffer and use the DSDT-patch/SSDT to fix the wakeup issue. That's the method I'm using.

 

Mieze

https://www.dropbox.com/s/1el03q5chp2bl16/Screenshot%202017-11-17%2003.43.05.png?dl=0

 

probably not working with all the configurations ... because now it loads the FB but it says RX480 when it's 580 and there is still no sound ... I guess this method needs more work... 

@Mieze

 

Making a summary:

 

  • method works in solving black screen and wake/sleep issues
  • method works (partially) in multi monitor configurations. 2 DP ports working out of 3, HDMI not tested yet.
  • method is not working in loading the chosen FB
  • method is not working in giving HDMI output

if you need more files or dumps for investigating, I'm available. Thank for all your efforts! 

 

 

goodnight   :)

Share this post


Link to post
Share on other sites

@mieze 

This is mr ROM can u patch it for me plzzzzz

AMD Radeon HD 7650M 

 

N were should i put ur DSDT patch, should i make a new SSDT on add in My Native DSDT !

Archive.zip

Share this post


Link to post
Share on other sites

Not possible, because the "RadeonDeInit" flag implies you have the ATI inject not ticked, therefore Clover won't load any frame buffer no matter what you specify. 

No, RadeonDeInit works regardless of other conditions. You may set or not ATI inject.

Share this post


Link to post
Share on other sites

No, RadeonDeInit works regardless of other conditions. You may set or not ATI inject.

I mean a different thing: is you don't set ATI injection Clover won't load any FB.

Share this post


Link to post
Share on other sites

I mean a different thing: is you don't set ATI injection Clover won't load any FB.

Just ATY,AMD,RadeonFramebuffer which works almost perfect.

Share this post


Link to post
Share on other sites

if we are now working on connectors the 290x could use the biggest fix only dual monitors at a time when it can do 4 monitors would be greatful to anyone who gets me 3 screens not even WEG could fix this issues

Share this post


Link to post
Share on other sites

@Mieze @vit9696

I'm following with a lot of interest this thread. Maybe this will sound a bit naive, but I wonder how come the wathevergreen.kext could make HDMI audio working and Mieze's method  in some cases (like the hackaro's one) not. Is something missing there?

Besides that, this is really something. Thank you guys!

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

Announcements

  • Similar Content

    • By kokozaurs
      Hi all,
       
      I'm using ESXI 7.0b (did use 6.7 to try but with no difference).
       
      Right now on Catalina but I can't seem to try to get GPU (RX580) working properly.
       
      I pass it through to the VM(tried with windows before with no problems) and it appeared just as pci-device with no name.
       
      After that, I've applied whatevergreen + lilu kexts and it does properly recognize it under system report however that's all there is. It's listed at GFX0. See attached images.
       
      No hardware acceleration. Monitor also not turning on using either DP/HDMI. 
       
      Since it is being passed through to the VM, it seems that the problem is not on ESXi side but on macOS side. 
       
      Has anyone has been able to pass through an AMD GPU to ESXI VM? Can anyone suggest some pointers as to where I could find some solutions to this problem?
       
      Thanks! 
       
       



    • By b2550
      Currently my install is 100% working except that so far I have only been able to get one of my 1080p monitors working with a MiniDP to HDMI cable. I currently am getting a second MiniDP to HDMI cable but for now I am stuck with a DVI to HDMI cable.

      The monitor that is working is plugged in via the MiniDP to HDMI. The monitor that isn't working is using the DVI cable. However I also tried switching it to HDMI to HDMI which had the same result. The monitor wakes up but it's black. However for whatever reason, both monitors are still recognized in system preferences and hackintool.

      I know all my cables are good and work because I updated from an install of El Capitan (which I still have on it's original SSD just in case this install fails) as well as a Windows install. Both monitors worked fine on El Capitan for literally years. El Capitan is just too old now and I need to update to keep up with software updates.

      Problem reporting files should provide needed info about how I've configured this install. Build is in my signature.
      debug_22725.zip
    • By autantpourmoi
      I'm an happy user of a x99 built hackintosch since 6/7 years using it mainly for photoshop and fcpx ... Using new camera with better resolution and video in ProResRaw , my built start to struggle a bit 
      I'm thinking of making a new built and seeking for advices for this new built that I want evolutive and last at least as long as my previous built 
      I'll use a SSD M2 forth Generation so I need at least 2 to 3 SSD M2 PCI x4 slots
      then which proc to use , I was thinking about the AMD Ryzen 9 3900xt or the Intel I9 10900k ( don't have the money for AMD threadripper ) if you have better idea I'm really open to it as long as you explain it to me 
      then which chipset should I use:
      for Intel  , should I go to Z490 or X299 or W480
      For AMD , I think I have only the choice of X570
      I always used Gigabyte motherboard so it will be naturally my first choice but again I'm open to any suggestion
      I need at least usb 3,1 Gen 2 and TB3 is not necessary but an option and can be add later on with a PCI Card I think
      So I'll be pleased o read your opinion and the choices that you'll do for the purpose of this built 
      thanks in advance 
       
       
    • By asheenlevrai
      Hi
       
      I recently built my 1st ryzentosh.
      I also used Opencore (0.6.1) for the 1st time and followed the install guides on Dortania.
       
      Now I need to map my USB ports and apparently it's not achieved the same way on AMD platforms compared to what I was "used to" on Intel platforms.
       
      The guide on Dortania is a bit confusing to me since there is information that is not clearly labelled as "for Intel" or "for AMD" and I thus don't understand very well what I should and shouldn't do.
       
      Can anyone give me advice or point towards as comprehensive tutorial intended for AMD-based builds.
       
      Thank you very much in advance for your help.
       
      Best,
      -a-
×