Contribute
Register

AMD Radeon Performance Enhanced SSDT

Joined
Aug 18, 2014
Messages
74
Motherboard
Gigabyte Z490 Vision D
CPU
i7 10900K
Graphics
Vega VII
Mac
  1. iMac
  2. MacBook Pro
  3. Mac mini
  4. Mac Pro
Mobile Phone
  1. iOS
Introduction

A couple of weeks ago I got my hands on a new Navi GPU, The Sapphire RX 5500 XT 4 GB, everything was working but the performance was not there, everyone said it is on pair with the good old RX 580.

So I got my hands on the new macbook pro 16.1,mac pro 7.1, and looking into the ssdt, dsdt and ioreg I saw what was missing from my hackintosh machine.

With a few tweaks and frambuffer injection, the performance went up especially with metal apps, low power consumption too.

The RX 5700 XT SSDT.aml works with RX 5600/5700/5700XT.
The RX 5500 XT SSDT.aml works with RX 5500/5500XT.

This method tries to mimic a real working mac.



How to install

Right now I am using Open Core Bootloader, but it works with clover too.

There are 2 methods for this to work, same methods are used by Apple : SSDT.aml for headless installation or Property Injection method for advanced users ( just copy the things from the SSDT.aml and add into the Property Injection section).

For VEGA 56/64 and RX 580 do not use rename PEGP to EGP0.


Clover method
  1. First thing to do is to download the SSDT.aml file corresponding to your GPU and drag&drop into /Volumes/EFI/EFI/CLOVER/ACPI/patched
  2. Second thing to do is to download WhateverGreen and place it into /Volumes/EFI/EFI/CLOVER/kexts/Other -- this will fix the video ports
  3. Download the dummy kext dAGPM (made by @toleda) that will help with power management for the GPU and place it into /Volumes/EFI/EFI/CLOVER/kexts/Other
  4. Edit the Clover Config file from /Volumes/EFI/EFI/CLOVER and add this DSDT renaming : rename PEGP to EGP0 find : 50454750 replace : 45475030 also add boot args : agdpmod=pikera (fix black screen on some gpus, mine works without).View attachment 464763


Open Core method
  1. Download the SSDT.aml file corresponding to your GPU and drag&drop into /Volumes/EFI /EFI/OC/ACPI
  2. Second thing to do is to download WhateverGreen and place it into /Volumes/EFI /EFI/OC/Kexts
  3. Download the dummy kext dAGPM (made by @toleda) that will help with power management for the GPU and place it into /Volumes/EFI /EFI/OC/Kexts
  4. Edit the OC config file from /Volumes/EFI /EFI/OC and add this patch renaming TableSignature SSDT find: 50454750 replace : 45475030 comment: replace : 45475030 ---- also add boot args : agdpmod=pikera (fix black screen on some gpus, mine works without)

View attachment 464767 View attachment 464768


5. Add the SSDT.aml file and whatevegreen kext and dAGPM kext into the config file and enable it .

View attachment 464769 View attachment 464770 View attachment 464772View attachment 464773



Conclusion

As you can see in the pictures the performance improve very much, in open gl test there is no improvement, only in open cl and metal, sometimes after opening many apps the score went very high. The open cl score did match the one from Windows 10.
The best performance was achieved using SMBios iMac Pro 1.1, DRM works on all video output ports.

View attachment 464780View attachment 464781 View attachment 464787
Hi there! wonderful post, do you think this would work with Big Sur?

Cheers!
 
Joined
May 16, 2021
Messages
9
Motherboard
Gigabyte Z390 AORUS I Pro WiFi
CPU
i7-9700K
Graphics
RX 5700 XT
Edit:

I was unable to use your aml, but instead I created a custom power play table and injected it into device properties with great results.

I am using RADEON RX 5700 8G with flashed bios to 5700 XT

1. Find out PCI device path using Hackintool
2. Generate power play table using https://www.hackintosh-forum.de/for...overclocking-powerp/?postID=542113#post542113
3. Paste plist content into device properties, set your PCI device path
4. Edit ROM and EFI version, these can be found using GPU-Z in windows, however, they are only cosmetic and do not affect anything
5. If you generated a custom power play, paste it into PP_PhmSoftPowerPlayTable

Code:
<dict>
    <key>PciRoot(0x0)/Pci(0x3,0x1)/Pci(0x0,0x0)/Pci(0x0,0x0)/Pci(0x0,0x0)</key>
    <dict>
        <key>PP_PhmSoftPowerPlayTable</key>
        <data>
        igYMAAHiAccIAAAgOAAAfQAIAAAAGwAAAAAAAAAAAAB2AAAAAAAAAAAAAAAA
        AAEAAAAKAAAANAgAAPMEAAA+BAAA8wQAAPMEAABrAwAA8wQAAAQFAAAEBQAA
        KgMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwBAABkAAAAZAAAAGQAAAD7
        AQAAZAAAAPsBAAA0AQAALAEAACwBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
        AACAAAAADgAAAB4AAAABAQEBAQEBAQEAAQEBAQAAAAAAAAAAAAAAAAAAAAAA
        AGYIAABmCAAAZggAALAEAABmCAAAsAQAAGYIAACwBAAAtgMAADIAAABIDQAA
        SA0AAGQAAABuAAAAAgAAAAEAAAABAAAAAQAAAAEAAABkAAAAZAAAAGQAAABk
        AAAAZAAAAGQAAABkAAAAZAAAAGQAAABkAAAAAAAAAAAAAAAAAAAAIAMAACAD
        AAAgAwAA7gIAACADAADuAgAAIAMAAO4CAABxAgAAMgAAAEwEAABMBAAAGQAA
        ADIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABkAAAAKAAAAGQAAAAoAAAAZAAAA
        CgAAABkAAAAKAAAAGQAAAAoAAAAAAAAAAAAAAAAAAAAIAAAA/6/fsyMGAADc
        AAAAAAAAAAAAAAAAAAAAtAAAAAAAAAAAAAAAAAAAAA4AAAC9AAAAZABsAGkA
        cwBzAHMAcwAAAAAAAAAAAAAAAAAAAP5wAAABAAAAZABkAAAAAAAAAAAAVAtU
        C7gLuAvAEmgQTAAAAAEAAgAAAAAAAAAAAIEmgj6kcF2+tRoyPwEAAgAAAIA/
        AAAAAPG6Xj6rsm+9RfU2PwEBBAAAAIA/AAAAAPG6Xj6rsm+9RfU2PwEAAgDY
        8CQ/Ne8IPwAAAADUK8U+V1sRPwEAAgAKaAI/FK4XPwAAAACDUak+N4kRPwEA
        AgCcxKA/jgawvgAAAADjxwg/7C97PgEAAgBhVFI/1zRvPAAAAAD9h/Q+ylSB
        PgIAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAgAAAAAAAAAAAAAAAAAAAAAA
        AAAAACwBNAh4BXgFeAV4BXgFeAV4BXgFeAV4BXgFeAV4BXgFZADzBPME8wTz
        BPME8wTzBGQAPgQ+BD4EPgQ+BD4EPgT7AfMEtgO2A7YDtgO2A7YDZAD0AXEC
        awP7AfME8wTzBPME8wTzBPMENAEEBQQFBAUEBQQFBAUEBSwBBAWkBKQEpASk
        BKQEpAQsASoDKgMqAyoDKgMqAyoD0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB
        0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQATQI8wRr
        Az4E8wTzBAQFBAUqA9ABAAMDAzAB+wG4C7gLjApIDUgNSA2IExgVGBUYFSAD
        IAMgAwAAAADQAQAAAQIAAFsAABAAAAADBgZrAmsCAAAAAAAAAAAyADwAkAGQ
        AZABkAGQAZABkAGQAZABkAEaAA4GyghIDVkAIAMBAAECAAAAAAAAAAAAAAAA
        R+aRPKyoQb0TRF09AAAAAAAAAACPwvU8AAAAAAAAAAAAAAAAS8jHPZg0Rj1w
        QqG9r1oZO4yhHLv4Nr09AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
        AAAAAAAAAAAAAKAAoAABAQAAAAAAAKAAoAAAAgAAAAAAAAAAAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKkBhwCH
        AAAAAAAAAAAAAAAAAAAAGQAZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
        AAAAAAAAAAAA
        </data>
        <key>@0,name</key>
        <string>ATY,Adder</string>
        <key>@1,name</key>
        <string>ATY,Adder</string>
        <key>@2,name</key>
        <string>ATY,Adder</string>
        <key>@3,name</key>
        <string>ATY,Adder</string>
        <key>device_type</key>
        <string>ATY,AdderParent</string>
        <key>AAPL00,DualLink</key>
        <data>
        AQAAAA==
        </data>
        <key>AAPL,slot-name</key>
        <string>Slot-1</string>
        <key>ATY,Card#</key>
        <string>102-D32200-00</string>
        <key>ATY,Copyright</key>
        <string>Copyright AMD Inc. All Rights Reserved. 2005-2019</string>
        <key>ATY,DeviceName</key>
        <string>5700XT</string>
        <key>ATY,EFIVersion</key>
        <string>XXXX</string>
        <key>ATY,FamilyName</key>
        <string>Radeon</string>
        <key>ATY,Rom#</key>
        <string>113-D1990102-X02</string>
        <key>CAIL_EnableLBPWSupport</key>
        <integer>0</integer>
        <key>CAIL_EnableMaxPlayloadSizeSync</key>
        <integer>1</integer>
        <key>CFG_CAA</key>
        <integer>0</integer>
        <key>CFG_FB_LIMIT</key>
        <integer>0</integer>
        <key>CFG_FORCE_MAX_DPS</key>
        <integer>1</integer>
        <key>CFG_GEN_FLAGS</key>
        <integer>0</integer>
        <key>CFG_NO_MST</key>
        <integer>0</integer>
        <key>CFG_NVV</key>
        <integer>2</integer>
        <key>CFG_PAA</key>
        <integer>0</integer>
        <key>CFG_PULSE_INT</key>
        <integer>1</integer>
        <key>CFG_TPS1S</key>
        <integer>1</integer>
        <key>CFG_TRANS_WSRV</key>
        <integer>1</integer>
        <key>CFG_UFL_CHK</key>
        <integer>0</integer>
        <key>CFG_UFL_STP</key>
        <integer>0</integer>
        <key>CFG_USE_AGDC</key>
        <integer>1</integer>
        <key>CFG_USE_CP2</key>
        <integer>1</integer>
        <key>CFG_USE_CPSTATUS</key>
        <integer>1</integer>
        <key>CFG_USE_DPT</key>
        <integer>1</integer>
        <key>CFG_USE_FBC</key>
        <integer>0</integer>
        <key>CFG_USE_FBWRKLP</key>
        <integer>1</integer>
        <key>CFG_USE_FEDS</key>
        <integer>1</integer>
        <key>CFG_USE_LPT</key>
        <integer>1</integer>
        <key>CFG_USE_PSR</key>
        <integer>0</integer>
        <key>CFG_USE_SCANOUT</key>
        <integer>1</integer>
        <key>CFG_USE_SRRB</key>
        <integer>0</integer>
        <key>CFG_USE_STUTTER</key>
        <integer>1</integer>
        <key>CFG_USE_TCON</key>
        <integer>1</integer>
        <key>PP_DisableDIDT</key>
        <integer>1</integer>
        <key>PP_DisablePowerContainment</key>
        <integer>1</integer>
        <key>PP_DisableVoltageIsland</key>
        <integer>0</integer>
        <key>PP_FuzzyFanControl</key>
        <integer>1</integer>
        <key>hda-gfx</key>
        <string>onboard-1</string>
        <key>model</key>
        <string>Radeon RX 5700 XT</string>
        <key>name</key>
        <string>ATY_GPU</string>
    </dict>
</dict>
Tha
Before:
View attachment 478273

After:
View attachment 478274
Thank you for this! The turbines are now quiet, and Geekbench OpenCL score has improved.

Before adding soft power play tables.

Screen Shot 2021-05-21 at 11.57.18 AM.png


After

Screen Shot 2021-05-21 at 12.00.40 PM.png


I had to delete a few quirks to get rid of error messages on boot, but it seems to be running smoothly.
RX 5700 XT Red Dragon.
 
Last edited:
Joined
May 11, 2011
Messages
1,959
Motherboard
Gigabyte B550 Vision D
CPU
Ryzen 5900X
Graphics
RX 6800
Mac
  1. iMac
  2. MacBook
  3. MacBook Air
  4. MacBook Pro
  5. Mac mini
  6. Mac Pro
Classic Mac
  1. Power Mac
  2. PowerBook
Mobile Phone
  1. iOS
Joined
Sep 15, 2020
Messages
2
Motherboard
Asus X470 Prime
CPU
Ryzen 7 2700
Graphics
GTX 1070
One shot for Sapphire Nitro+ RX 5500 XT 8GB. Last 3 days, I tried many config files but never work with AMD gpu. This post saved me. Thanks.
hey can u send me your efi because i tried but not work pls send me here let me see how u do these to work these efi
 
Joined
Mar 28, 2021
Messages
1
Motherboard
GA Z590 Vision G
CPU
Core i5 10400
Graphics
GTX1660 super
Dear mattystonnie,

Thanks for sharing about

AMD Radeon Performance Enhanced SSDT​

I applied but the performance do not be enhanced. I get around 41k for OpenCL and 36k for Metal with geekbench 5.
The configuration of hackintosh with opencore 0.7.0
MOBO: Gigabyte z590 vision G rev 1.0
CPU: intel core I5 10400 2.9~4.3 Ghz
Ram: Kingston Fury X 32 Gb 2666 Ghz
SSD: WD 512Gb Blue M2 Nvme + WD 2Tb Blue + WD 256Gb Green
GPU: Gigabyte AMD radeon RX 5500 XT 4Gb D6 (rev 2.0)
MacOS: Catalina 10.15.7 19H1323 (lastest version)

Issue:
+ Scores with geekbench 5 is not right: OpenCL > Metal (Attach file)
+ CPU compute: single score and multi score is worse than real other (Attach file)
+ First boot, the effects and screen not smoot, it's lagging a little. Only restart (second boot) it will be smooth!

Note: I also try SMBIOS iMac19,1 iMac19,2 and MacPro7,1 but not increase

Please help me to fix it! i have attach image and opencore bootloader.
Thank you!
 

Attachments

  • EFI.zip
    9 MB · Views: 37
  • Screen Shot 2021-08-04 at 11.57.19.png
    Screen Shot 2021-08-04 at 11.57.19.png
    290.8 KB · Views: 37
  • Screen Shot 2021-08-11 at 12.19.36.png
    Screen Shot 2021-08-11 at 12.19.36.png
    113.4 KB · Views: 39
  • Pham’s iMac.ioreg
    12 MB · Views: 16
Last edited:
Joined
Sep 9, 2021
Messages
1
Motherboard
Gigabyte Z490 Gaming X AX
CPU
i5 11600
Graphics
Rx5500xt 4gb
Hello everyone, maybe someone has a similar config like mine? help with the correct spelling of the video card for Big sur openkore 0.7.2 Gigabyte RX5500XT 4GB video card, the temperature and fans of the video card are not displayed in the sensors, Mac pro 7.1 since I have an i5 11600 processor, there is no built-in percentage emulated in the 10th generation
 
Joined
Mar 8, 2012
Messages
134
Motherboard
ASUS ROG Maximus XI Hero Z390
CPU
i9-9900K
Graphics
Radeon VII
Mac
  1. iMac
Has anyone tried this with the RX6800/6800XT?
Yes. It actually made my RX 6800XT stop working. As soon as I removed the ssdt and kext for the 5700 xt it was fine again.
 
Top