Jump to content
Mieze

Tracing back the AMD GPU wakeup issue to its origin

365 posts in this topic

Recommended Posts

Thanks, I have the SSDT-HDEF-HDAS-1.aml generated by toleda's audio_CloverHDMI, is that the SSDT you are referring to? I'm unfamiliar with ATIInject and is undocumented so bit aprehensive about trying that, will wait to hear your reply about the SSDT.

List your system specs and upload your entire EFI folder and I can fix it all up for you.

Share this post


Link to post
Share on other sites
Advertisement

List your system specs and upload your entire EFI folder and I can fix it all up for you.

hi,,rx580 can spin up to full speed when booting...this problem can be fixed?

Share this post


Link to post
Share on other sites

hi,,rx580 can spin up to full speed when booting...this problem can be fixed?

The fan speed is controlled by UEFI during booting process which is faster than autowattsman in macOS, thats why when you finally boot into macOS attowattsman takes over and your fan speeds slow down

Share this post


Link to post
Share on other sites

The fan speed is controlled by UEFI during booting process which is faster than autowattsman in macOS, thats why when you finally boot into macOS attowattsman takes over and your fan speeds slow down

OK.i get it...so.it is normal...

Share this post


Link to post
Share on other sites

unfortunately  my HD7790 (sea islands) still get wake problem in HS 10.13.2 with 2 method (radeoninit -> manual add value in CFG_USE_AGDC, CFG_FB_LIMIT)  or with whatevergreen v.1.1.4

Share this post


Link to post
Share on other sites

unfortunately my HD7790 (sea islands) still get wake problem in HS 10.13.2 with 2 method (radeoninit -> manual add value in CFG_USE_AGDC, CFG_FB_LIMIT) or with whatevergreen v.1.1.4

What evergreen and lilu?

 

From my experience ryzen is stubborn, it will only load certain kext from s/l/e

 

I had to boot up using my old nvidia gt210

Install kext in s/l/e then use kext utility.

Share this post


Link to post
Share on other sites

in HS 10.13 no problem sleep and wake, i see apple introduce 2 new kext,

 

Picos-Mac-Pro:~ pico$ kextstat | grep AMD
   91    0 0xffffff7f84402000 0x16000    0x16000    com.apple.kext.AMDRadeonX4000HWServices (1.6.0) 31741979-9408-3D2B-A7A4-E36F41355B73 <89 12 11 7 5 4 3 1>
   93    2 0xffffff7f8241a000 0x1f8000   0x1f8000   com.apple.kext.AMDSupport (1.6.0) 441E3318-2B41-3EC8-95CA-7A098B2801F5 <92 89 12 11 7 5 4 3 1>
   94    0 0xffffff7f82802000 0x1aa000   0x1aa000   com.apple.kext.AMD8000Controller (1.6.0) 196141DD-9534-3300-96A6-43EAD23D8C88 <93 92 89 12 11 5 4 3 1>
  114    0 0xffffff7f82b4e000 0x883000   0x883000   com.apple.kext.AMDRadeonX4000 (1.6.0) 1085F995-C89E-356B-B07B-29517534C345 <113 112 89 12 7 5 4 3 1>
  125    0 0xffffff7f83b75000 0x88d000   0x88d000   com.apple.kext.AMDRadeonX4050HWLibs (1.0) 572CF757-43AF-3814-8E03-FA0F237B307B <12 5 4 3 1>
  145    0 0xffffff7f83622000 0x28000    0x28000    com.apple.kext.AMDFramebuffer (1.6.0) 74616066-E134-31AD-AEE8-40BB1420567B <93 89 12 11 7 5 4 3 1>

Share this post


Link to post
Share on other sites

Hi Mieze

 

Thank you for sharing this excellent work


 

The Patch

 

Putting things together I created a DSDT patch to fix the incorrectly initialized registers. With this patch applied, I now have working wakeup with my R9 270X under Sierra (10.12.6) using UEFI VBIOS with CSM disabled in UEFI setup. No kext patches or additional kexts are needed anymore for sleep/wake to work properly with my R9 270X anymore. I can see the BIOS splash screen on my display and can access UEFI setup but the best of all is that there hasn't been a single wakeup issue since I applied this patch.

Device (PEGP)
{
    Name (_ADR, Zero)  // _ADR: Address
    OperationRegion (PCIB, PCI_Config, Zero, 0x0100)
    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)
    }
}

Does this initialization DSDT apply the same to all adapters? I have nothing in my ACPI tables for my graphics card (RX 560 4G) by default :( So just wondering if I can use the initialization method as is?

 

Thanks!

Share this post


Link to post
Share on other sites

I'm new to Hackintosh, can anyone tell me how to apply this patch? Thanks

 

If you use the latest Clover boot loader and then open your config.plist with the latest Clover Configurator app you can set it in Graphics settings.   This probably the easiest way to do it for newcomers see pic below.   

post-1753549-0-36386300-1515949086_thumb.png

Share this post


Link to post
Share on other sites

Well seems apple took this patch and built it into macos 10.13.4 beta 1 cause amd now works out of the box sleep and all So extra wicked job

 

I like Cats

Share this post


Link to post
Share on other sites

Well seems apple took this patch and built it into macos 10.13.4 beta 1 cause amd now works out of the box sleep and all So extra wicked job

so this patch pegp--gfx0 is needed?

Share this post


Link to post
Share on other sites

so this patch pegp--gfx0 is needed?

was needed as i said it seems to be included in 10.13.4

 

 

Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites

was needed as i said it seems to be included in 10.13.4

 

 

Sent from my iPhone using Tapatalk

i just updated to 10.13.4 after disabling this patch  but the device name is pegp not gfx0....

Share this post


Link to post
Share on other sites

i just updated to 10.13.4 after disabling this patch but the device name is pegp not gfx0....

does the gpu work oob ? Thats all that matters it does for me and sleep works also

 

 

Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites

i just updated to 10.13.4 after disabling this patch  but the device name is pegp not gfx0....

Could it be system definitions? Something I noticed with my Ryzen setup was with MacPro I couldn’t get GFX1 but when I changed to iMac 18.2 I got GFX0. But this was in previous 13.3 version.

Share this post


Link to post
Share on other sites

does the gpu work oob ? Thats all that matters it does for me and sleep works also

 

 

Sent from my iPhone using Tapatalk

this rx580 wokrs oob..but the device name is pegp not gfx0

Could it be system definitions? Something I noticed with my Ryzen setup was with MacPro I couldn’t get GFX1 but when I changed to iMac 18.2 I got GFX0. But this was in previous 13.3 version.

i just updated to 10.13.4   but the device name is pegp not gfx0

Share this post


Link to post
Share on other sites

this rx580 wokrs oob..but the device name is pegp not gfx0

 

i just updated to 10.13.4 but the device name is pegp not gfx0

apple patches it in another way it no longer needs that just be happy it works

 

 

Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites

apple patches it in another way it no longer needs that just be happy it works

 

 

Sent from my iPhone using Tapatalk

i now enable rx580 with only whatevergreen which renames gpu device to GFX0

Share this post


Link to post
Share on other sites

i now enable rx580 with only whatevergreen which renames gpu device to GFX0

switch to a ssdt for that im sure someone can help you

 

 

Sent from my iPhone using Tapatalk

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

Announcements

  • Similar Content

    • By MaLd0n
      First...
      If you need DSDT edits... -Extract tables with F4 key in Clover boot screen! -Run it and send me files! RunMe.app   Installation --Create a bootable copy of El Capitan /  Sierra / High Sierra / Mojave https://github.com/chris1111/Create-Install-Media/releases   --Install Clover in USB stick https://github.com/CloverHackyColor/CloverBootloader/releases   --Replace with my Clover folder https://www.olarila.com/topic/5676-clover-folder-for-all-chipsets/   --Install EL Capitan / Sierra / High Sierra and boot into system!     Post Installation   --Install Clover and replace with my folder   https://www.olarila.com/topic/5676-clover-folder-for-all-chipsets/     --Reboot and activate video!   Bingo! Now you need a fine tune! DSDT Time!   My DSDT GA P35-DS3   DSDT.MaLd0n.zip     Patches -FIX ERRORS AND WARNINGS -HPET -SATA -SLPB -DARWIN -LPC -HDEF -RTC -EHCI -UHCI -IRQs -SBUS -BUS1 -MCHC -ALS0 -SHUTDOWN -LAN -EC -PNLF --Native Power Management
       
      Use Clover, check Generate P and C States
       
      --Brightness
      Install .app, select the required permission and reboot. Work in F1 / F2 keys!
      NativeDisplayBrightness.app.zip


      https://github.com/Bensge/NativeDisplayBrightness/releases
      *in some cases .app don't work, check patches in config.plist inside Clover folder Post Install
       
      --AUDIO
       
      Device HDEF + AppleAlc + Lilu
       
      --install Lan driver by Mieze
        -Atheros   http://www.insanelymac.com/forum/files/file/313-atherose2200ethernet/   -Intel   http://www.insanelymac.com/forum/files/file/396-intelmausiethernet/   -Realtek   http://www.insanelymac.com/forum/files/file/88-realtekrtl8111-binary/   --Links   -FakeSMC   https://bitbucket.org/RehabMan/os-x-fakesmc-kozlek   -Audio   https://github.com/vit9696/AppleALC http://www.insanelymac.com/forum/topic/293863-applehda-patch-requests/   -Credits and thanks to the old and new people in the community who developed patches, kexts and bootloaders!   Slice, Kabyl, usr-sse2, jadran, Blackosx, dmazar, STLVNUB, pcj, apianti, JrCs, pene, FrodoKenny, skoczy, ycr.ru, Oscar09, xsmile, SoThOr, RehabMan, Download-Fritz, Zenit432, cecekpawon, Intel, Apple, Oracle, Chameleon Team, crazybirdy, Mieze, Mirone, Oldnapalm, netkas, Elconiglio, artut-pt, ErmaC, Pavo, Toleda, Master Chief and family, bcc9, The King, PMheart, Sherlocks, Micky1979, vit9696, vandroiy2013, Voodoo Team, Pike R. Alpha, lvs1974, Austere.J, CVad and many, many, many others!   We're all here to have fun and learn from each other!   ENJOY!  
    • By k.panic
      Hi to all, i've installed High Sierra (with Clover) on:
       
      Asrock H110 BTC+
      Intel G3900 (with FakeCPUID 0x0106E0)
      GeForce 710
       
      but he can't go in sleep. what should i fix? Thanks!
    • By dmpcoke
      Hi,
       
      I followed the OC guide, and installed Catalina 10.15.5 on my PC.
      The installation went very well. Most parts also work well after I login to the desktop except the following
      issue:
      Each time I tried to log back into the desktop from sleep, I would get a black screen very shortly after I entered the desktop.
      And black screen will last from a few seconds to a few minutes, no exact lasting time.
      Keyboards and mouse are still working during black screen, I can see the operations after the monitor works again.
       
      It connects LG monitor via DP port and I tried to modified the dp version between 1.2 and 1.4, got the same issue.
       
      Attached my entire OC folder, I'm so appreciated if someone could help me check it out, or tell me which part I should focus on.
       
      Thanks in advance!
       
      P.S. Here is my PC summary: Dell Optiplex 7060 MFF
       
      CPU Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz; 8th Gen, Coffee Lake GPU Intel(R) UHD Graphics 630 RAM Team Group 32 GB (2 × 16GB), 2400 MHz, DDR4 Chipset
      Intel 300 Series LPC (Q370) – A306 Audio Realtek ALC255/3234 (Codec ID: 0x10EC0255) Ethernet Intel(R) Ethernet Connection I219-LM WiFi/BT M.2 BCM43224 802.11a/b/g/n Storage Samsung SSD 970 EVO 500GB USB Ports Type-C × 1,USB 3.0 × 5 Video Output DP × 2 Monitor LG 4K 3840 x 2160 @ 60 Hz
      BIOS v1.4.2 OC.zip
    • By ThomasMattOnline
      Hello Everyone,

      Trying to get Hardware Acceleration working on my Hackintosh (HEVC Support) however I am such a noob, OpenCore is very new to me and would love some support.
      I have included screenshots and the EFI that is currently working on my System, I have USB 2 & 3.0 all working, however, the only thing I can fault is my GPU not being hardware acceleration enabled.

      Final Cut Pro X - Recognises GPU
      VideoProc - Doesn't recognise anything.
       
      (I am running the latest version of OpenCore 0.5.9)

      Things I've tried: I tried following the post https://www.tonymacx86.com/threads/catalina-10-15-2-update-lost-hevc-h265-acceleration.288563/ - No Luck
      I have also tried: https://forums.macrumors.com/threads/activate-amd-hardware-acceleration.2180095/page-53?post=28255048#post-28255048 - No luck either!

      My friend online tells me I shouldn't need such Kext as he has the same build as me but when I load his EFI on my system it boots with no USB 2 or 3.0 (I'm keeping his EFI off here as I've uploaded mine.)

      Please note: I appreciate all (any) pieces of advice and please do bear in mind that I am a noob and may need whatever you say simplifying as I can get easily confused.


      config.plist

    • By Fantome1S
      Finaly Success to boot on Sierra 10.12.6 (16G29) with Touchscreen working theres still things to fix but everything is almost working. During the Corvid StayAtHome Period I was able and have time to make this laptop boot on MacOS after a lot of attemps before going back to job. It was the hardest laptop hackintosh install attemp i've done so far and Sierra OS is the only that works. I tried El Capitan and Mojave and its never boot so I not even tested Catalina. I searched on the web and theres no install guide for this specific laptop or no Success install post on this laptop its look like a not very well supported laptop by hackintosh. Maybe some of you can help me correct the things that still not work. Audio work but with voodo (low sound and low quality) I want to make it work with AppleALC to get better quality sound. Thanks in advance
       
      Things that work:
       
      -Touchscreen
      -Trackpad (not the gesture for now) - Backlight Keyboard
      -EthernetPort and Wireless (with a wifi dongle. I will change to a broadcom wifi mini-pci chip)
      -Brightness Controls with FN key
      -Audio Voodoo ''low sound'' (will tried to change to AppleALC or AppleHDA fix method) 
      -USB 3.0
       
      Things that not work or need to be fixed:
       
      -Weird double long booting screen-first loading bar on the right. after real loading bar is visible ?
      -Audio (Voodoo) work but with low volume sound- still not success to make work AppleALC.kext method
      -SENSORS -CPU-HDD Temperatures, BATTERY LEVEL, ETC…
      - Sleep (Disabled): USB ports not works after wake from sleep
      -Trackpad Gestures
       
      Hardware:
       
      CPU: Intel Core i7-3687U, 2100 MHz
      GPU: Intel HD Graphics 4000
      RAM: 12 GB (4GB soldered + 8 GB Samsung DDR3 1600)
      Motherboard/Laptop model: Intel Panther Point QM77, Intel Ivy Bridge - (HP Revolve 810 G1)
      Audio Codec: IDT 92HD91BXX @ Intel Panther Point PCH - High Definition Audio Controller
      Ethernet Card: Intel(R) 82579LM Gigabit Network Connection
      Wifi/BT Card: Intel(R) Centrino(R) Advanced-N 6235
      HP hs2350 HSPA+ MobileBroadband Network Adapter
×