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.

  • Similar Content

    • By Ade866
      Hi everyone, I have been optimizing my Asus x54h for some time. But now I find myself with sierra 10.12.6 installed with the problem of sleep, well: as soon as I put the PC to sleep the fans keep running, after a while they stop for a second and then start to turn again waking up the PC. What do you think the problem is? The notebook is equipped with: Amd 6470M CPU intel core i3 2330m. 4gb Ram DDR3 SDRAM. Clover legacy bootloader.
      config.plist
      SSDT.aml
      DSDT.aml
      Andrea’s iMac.zip
    • By fantomas1
      Hi InsanelyMacaholics   

      Use this thread to link / talk about of the future Nvidia Web Driver updates for macOS Sierra.
       
      10.12.6
      Nvidia Web Driver - 378.05.05.25f15 --> build 16G1918 (thanks to BreBo) New!
      Nvidia Web Driver - 378.05.05.25f14 --> build 16G1917 (thanks to BreBo)
      Nvidia Web Driver - 378.05.05.25f13 --> build 16G1815 (thanks to flowrider)
      Nvidia Web Driver - 378.05.05.25f12 --> build 16G1710 (thanks to BreBo)
      Nvidia Web Driver - 378.05.05.25f11 --> build 16G1618 (thanks to Frank Nitty)
      Nvidia Web Driver - 378.05.05.25f10 --> build 16G1510 (thanks to BreBo) 
      Nvidia Web Driver - 378.05.05.25f09 --> build 16G1408 (thanks to BreBo)
      Nvidia Web Driver - 378.05.05.25f08 --> build 16G1314 (thanks to BreBo)
      Nvidia Web Driver - 378.05.05.25f07 --> build 16G1314 (thanks to haring)
      Nvidia Web Driver - 378.05.05.25f06 --> build 16G1212 (thanks to WeBeRiO)
      Nvidia Web Driver - 378.05.05.25f04 --> build 16G1114 (thanks to lukazm)
      Nvidia Web Driver - 378.05.05.25f03 --> build 16G1036 (thanks to Gradou)
      Nvidia Web Driver - 378.05.05.25f01 --> build 16G29 (thanks to Badruzeus)
       
       
      10.12.5
      Nvidia Web Driver - 378.05.05.15f01 --> build 16F73 (see this post)
       
       
      10.12.4
      Nvidia Web Driver - 378.05.05.05f02 --> build 16E195(thanks to crachmaster4999)
      Nvidia Web Driver - 378.05.05.05f01 --> build 16E195 (thanks to Moviemakergr)  Pascal support!!!
      Nvidia Web Driver - 367.15.10.45f01 --> build 16E195 (thanks to Lanc)
       
       
      10.12.3

      Nvidia Web Driver - 367.15.10.35f01 --> build 16D32 (thanks to shatterhenner)
       
       
      10.12.2
      Nvidia Web Driver - 367.15.10.25f02 --> build 16C68 (see this post)
      Nvidia Web Driver - 367.15.10.25f01 --> build 16C67 (see this post)
      Nvidia Web Driver - 367.15.10.25b06 --> build 16C60b/16C63a (see this post)
       
       
      10.12.1
      Nvidia Web Driver - 367.15.10.15f03 --> build 16B2657/16B2659 (thanks to Moviemakergr).
      Nvidia Web Driver - 367.15.10.15f01 --> build 16B2555 (thanks to Moviemakergr)
       
       
      10.12.0
      Nvidia Web Driver - 367.15.10.05f01 --> build 16A323 (thanks to phi777)
       
       
      GM
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A323 (same driver since DP4/PB3)
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A322 (see this post)
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A320 (see this post)
       
       
      DP/PB
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A313a (DP8 & PB7) (see this post)
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A304a (DP7 & PB6) (see this post)
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A294a (DP6 & PB5) (see this post)
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A286a (DP5 & PB4) (see this post)
      Nvidia Web Driver - 367.10.10.05b01 --> build 16A270f (DP4 & PB3) (thanks to TheRacerMaster)
      Nvidia Web Driver - 367.05.10.05b07 --> build 16A254g (DP3 & PB2) (see this post)
      Nvidia Web Driver - 367.05.10.05b07 --> build 16A238m (PB1) (thanks to Faun) 
      Nvidia Web Driver - 367.05.10.05b07 --> build 16A239j (DP2) (thanks to Faun)
      Nvidia Web Driver - 367.05.10.05b03 --> build 16A201w (DP1) (thanks to Xmedik)
       
    • By mossy
      Hi i have old laptop and i wanted to install os x i looked online for some TUT's but i didnt understand some people say works some say no 
       
      i being trying all day boots me to install menu for sierra but i cant move the mouse or the keyboard so can some plz help me 
       
      ASUS K50IN Intel® Core™2 Duo Processor T6500 2.10 GHz
       
      NVIDIA® GeForce® G102M, with 512MB VRAM
       
       
    • By slapbass_
      NO AUDIO/SIN SONIDO/ NO HDMI_MOJAVE 10.14.4_AYUDA POR FAVOR
       
      Hola compañeros, buen dia, espero que esten bien en todo,
       
      necesito de su ayuda por favor,
      no lógro activar el sonido de mi laptop eh aqui las especificaciones:
      Dell Inspiron 14 5000 series (5458)
       
      - Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
      - Ram 4GB»
      - Intel HD Graphics 5500
      - Red PCI :
      Intel Dual Band Wireless-AC 3160 AC HMC WiFi Adapter
      Realtek RTL8139/810x Fast Ethernet Adapter
       
      - Audio
      Intel Broadwell HDMI @ Intel Broadwell - Mini HD Audio
       
      Realtek ALC255 @ Intel Wildcat Point-LP PCH High defi.....
       
      alguien de ustedes que pueda darme una mano para ACTIVAR y que funcione todo el sonido y hdmi de mi laptop, les estare infinitamente agradecido con ustedes...
      aqui les dejo mi EFI
      https://www4.zippyshare.com/v/eBhG3AEy/file.html
      saludos
      Dios les bendiga n.n
    • By slapbass_
      Hello colleagues, good morning, I hope they are good in everything,
       
      I need your help please,
      I do not logically activate the sound of my laptop here specifications:
      Dell Inspiron 14 5000 series (5458)
       
      - Intel (R) Core (TM) i5-5200U CPU @ 2.20GHz
      - Ram 4GB »
      - Intel HD Graphics 5500
      - PCI Network:
      Intel Dual Band Wireless-AC 3160 AC HMC WiFi Adapter
      Realtek RTL8139 / 810x Fast Ethernet Adapter
       
      - Audio
      Intel Broadwell HDMI @ Intel Broadwell - Mini HD Audio
       
      Realtek ALC255 @ Intel Wildcat Point-LP PCH High defi .....
       
      Someone of you who can give me a hand to ACTIVATE and let all the sound and hdmi of my laptop work, I will be infinitely grateful to you ...
      Here is my EFI
      https://www4.zippyshare.com/v/eBhG3AEy/file.html
      regards
      God bless you n.n
×