Jump to content
Mieze

Tracing back the AMD GPU wakeup issue to its origin

365 posts in this topic

Recommended Posts

I found an interesting find.

I’m on ryzen 10.13.2 beta 5 and what happened is I always updated my clover and even my fakesmc.kext

I used the latest lilu and whatevergreen. When I wanted to put the computer to sleep it would turn off the monitor and reboot.

 

So I went my old hard drive (10.13.1) using this efi and was getting the same results. Reboot on sleep. Which was very odd for me because steep worked at great when I was in 10.13.1

 

I played around with a lot of files and ended up using my old efi which contained and older version of clover and fakesmc.kext.

Using this old efi and the latest lilu and whatevergreen sleep worked again!!!

 

I’m still playing around with the files I will try on 10.13.2 beta which gave me reboot when I put it to sleep.

 

I’ll report back

I have the same issue after the 10.13.2, did you  get sleep working with lastest Clover?

Share this post


Link to post
Share on other sites
Advertisement

I have the same issue after the 10.13.2, did you get sleep working with lastest Clover?

I have not tried but I don’t think it has to do with clover

Share this post


Link to post
Share on other sites

I have not tried but I don’t think it has to do with clover

Reading the latest commit from Whatevergreen, the developer says "Starting with 10.13.2 AAPL hardcodes framebuffer limit in certain kexts"

So I add:

 

"CFG,CFG_FB_LIMIT",

0x06,

 

And now it sleeps fine.

SSDT-RX-480.zip

Share this post


Link to post
Share on other sites

Reading the latest commit from Whatevergreen, the developer says "Starting with 10.13.2 AAPL hardcodes framebuffer limit in certain kexts"

So I add:

 

"CFG,CFG_FB_LIMIT",

0x06,

 

And now it sleeps fine.

good to know thanks! 

Share this post


Link to post
Share on other sites

Reading the latest commit from Whatevergreen, the developer says "Starting with 10.13.2 AAPL hardcodes framebuffer limit in certain kexts"

So I add:

 

"CFG,CFG_FB_LIMIT",

0x06,

 

And now it sleeps fine.

 

I just saw a similar fix using Clover Arbitrary injection in devices section.

Share this post


Link to post
Share on other sites

I just saw a similar fix using Clover Arbitrary injection in devices section.

hi. amd rx 580 can use fb of dayman or oricnoc to boot into system sucessfully...so which fb can i use ?

Share this post


Link to post
Share on other sites

hi. amd rx 580 can use fb of dayman or oricnoc to boot into system sucessfully...so which fb can i use ?

Mork uses Orinoco, he has 5 ports, I use Baladi it depends on which OS, Sierra or High Sierra? I think Dayman works ok for Sierra but for HS Orinoco.

Share this post


Link to post
Share on other sites

I just saw a similar fix using Clover Arbitrary injection in devices section.

How to fix it in Clover config.plist for RX-560 or AMD Radeon HD 6870 ?

Share this post


Link to post
Share on other sites

Mork uses Orinoco, he has 5 ports, I use Baladi it depends on which OS, Sierra or High Sierra? I think Dayman works ok for Sierra but for HS Orinoco.

hi,,i have 4 ports,:one hdmi and three dp...i use high sierra.

Share this post


Link to post
Share on other sites

Can someone explain, wats the use of this kext AMDRadeonX4000HWServices !

 

And Meize thanks, sleep works grt :)

Share this post


Link to post
Share on other sites

How to fix it in Clover config.plist for RX-560 or AMD Radeon HD 6870 ?

 

Here it is test it and report back please, it goes in Clover "Devices" section in Arbitrary.

 

post-1753549-0-61211100-1513723643_thumb.png

is  AMDRadeonX4000HWServices come from 10.13.2 or 10.13.1 ?

I get wake issues after sleep from 10.13.1 .

 

It is a new addition to High Sierra, there are device IDs in the info.plist.    In Sierra there were only device IDs 0x68101002 (example) in the controlerkext and AMDX000kext.     Now in HS there are 3 IDs, one in Controllerkext, one in X000kext, and now one in the AMDRadeonx4000HWkext and AMDRadeonx5000HWkext.    The vAMD3000kext seems to be like the older Sierra layout.     Maybe this is the new Metal2 kext layout.

 

Its really weird, the 4100, 4150, 4200, and 4250 kexts have device IDs in them for the same cards in many cases ie... 0x67ef, 0x67ff, 0x67df but only one kext gets assigned.

Share this post


Link to post
Share on other sites

Hi @Gigamaxx thanks for the explanation, btw how to change the "value" from CFG, CFG_LIMIT_FB

in my case HD 7790 I get wake problem too

 

ioreg -lw0 | grep CFG_FB_LIMIT

 

 

ioreg -lw0 | grep CFG_FB_LIMIT
| | | | | "CFG_FB_LIMIT" = 0
| | | | | "ATY,Exmoor" = {"aty_config"={"CFG_USE_AGDC"=Yes,"CFG_DEF_DITH"=0,"CFG_DIAG_LED"=1,"CFG_PTPL2_TBL"=<5a000000520000004c00000047000000430000003f0000003b00000037000000330000002f0000002b00000027000000230000001f0000001b00000017000000>,"CFG_NVV"=2,"CFG_FB_LIMIT"=6}}
| | | | | "aty_config" = {"CFG_PTPL2_MIN"=30,"CFG_FORCE_HDMI"=No,"CFG_NO_MST"=No,"CFG_FORCE_MAX_DPS"=No,"CFG_USE_DPT"=Yes,"CFG_NO_HDCP"=No,"CFG_CAA"=0,"CFG_APER_MODE"=1,"CFG_PULSE_INT"=Yes,"CFG_PTPL2_MAX"=150,"CFG_USE_STUTTER"=No,"CFG_FB_LIMIT"=0,"CFG_USE_FEDS"=Yes,"CFG_USE_FBC"=No,"DALUseUrgencyWaterMarkOffset"=0,"CFG_NODM"=Yes,"DALReadDelayStutterOff"=4,"CFG_USE_REGAMMA"=Yes,"CFG_USE_AGDC"=No,"CFG_GEN_FLAGS"=0,"CFG_INT_SSPC"=25,"CFG_TRANS_WSRV"=Yes,"CFG_NO_SLS"=No,"CFG_USE_TCON"=No}


 

Share this post


Link to post
Share on other sites

Hi @Gigamaxx thanks for the explanation, btw how to change the "value" from CFG, CFG_LIMIT_FB

in my case HD 7790 I get wake problem too

 

ioreg -lw0 | grep CFG_FB_LIMIT

 

 

ioreg -lw0 | grep CFG_FB_LIMIT

| | | | | "CFG_FB_LIMIT" = 0

| | | | | "ATY,Exmoor" = {"aty_config"={"CFG_USE_AGDC"=Yes,"CFG_DEF_DITH"=0,"CFG_DIAG_LED"=1,"CFG_PTPL2_TBL"=<5a000000520000004c00000047000000430000003f0000003b00000037000000330000002f0000002b00000027000000230000001f0000001b00000017000000>,"CFG_NVV"=2,"CFG_FB_LIMIT"=6}}

| | | | | "aty_config" = {"CFG_PTPL2_MIN"=30,"CFG_FORCE_HDMI"=No,"CFG_NO_MST"=No,"CFG_FORCE_MAX_DPS"=No,"CFG_USE_DPT"=Yes,"CFG_NO_HDCP"=No,"CFG_CAA"=0,"CFG_APER_MODE"=1,"CFG_PULSE_INT"=Yes,"CFG_PTPL2_MAX"=150,"CFG_USE_STUTTER"=No,"CFG_FB_LIMIT"=0,"CFG_USE_FEDS"=Yes,"CFG_USE_FBC"=No,"DALUseUrgencyWaterMarkOffset"=0,"CFG_NODM"=Yes,"DALReadDelayStutterOff"=4,"CFG_USE_REGAMMA"=Yes,"CFG_USE_AGDC"=No,"CFG_GEN_FLAGS"=0,"CFG_INT_SSPC"=25,"CFG_TRANS_WSRV"=Yes,"CFG_NO_SLS"=No,"CFG_USE_TCON"=No}

 

 

 

 

 

 

Using Clover Configurator in the Devices section, thats where the Arbitrary injection can be placed.    Try the example above in the pic to see if it works for sleep, it was reported to work on RX 580.

Share this post


Link to post
Share on other sites

Yes I know how to inject but the value = 5 why 5

 

Picos-Mac-Pro:~ pico$ /Users/pico/Downloads/lsframebuffer-master/lsframebuffer-ati
Prt Conect CtrFlg Conect Display
 0. 0x0400 0x0304 DP     NONE
 1. 0x0800 0x0204 HDMI   LCD
 2. 0x0004 0x0004 DL-DVI NONE
 3. 0x0004 0x0014 DL-DVI NONE
 4. 0x0400 0x0100 DP     NONE
 5. 0x0400 0x0100 DP     NONE

 

its mean I use 5 too or 4 cause my card only 4 (1 HDMI, 2 DVI, 1 DP)

thanks for advance

Share this post


Link to post
Share on other sites

Using Clover Configurator in the Devices section, thats where the Arbitrary injection can be placed.    Try the example above in the pic to see if it works for sleep, it was reported to work on RX 580.

hi ,, i find there is no difference between using orinoco and dayman..

Share this post


Link to post
Share on other sites

Yes I know how to inject but the value = 5 why 5

 

Picos-Mac-Pro:~ pico$ /Users/pico/Downloads/lsframebuffer-master/lsframebuffer-ati

Prt Conect CtrFlg Conect Display

 0. 0x0400 0x0304 DP     NONE

 1. 0x0800 0x0204 HDMI   LCD

 2. 0x0004 0x0004 DL-DVI NONE

 3. 0x0004 0x0014 DL-DVI NONE

 4. 0x0400 0x0100 DP     NONE

 5. 0x0400 0x0100 DP     NONE

 

its mean I use 5 too or 4 cause my card only 4 (1 HDMI, 2 DVI, 1 DP)

thanks for advance

 

 

Yes just edit it to 4 instead of 5.    this example was for a RXD 580 Saphire Nitro with 5 IO ports.

Share this post


Link to post
Share on other sites

Here it is test it and report back please, it goes in Clover "Devices" section in Arbitrary.

 

attachicon.gifupload_2017-12-11_23-12-28.png

 

It is a new addition to High Sierra, there are device IDs in the info.plist.    In Sierra there were only device IDs 0x68101002 (example) in the controlerkext and AMDX000kext.     Now in HS there are 3 IDs, one in Controllerkext, one in X000kext, and now one in the AMDRadeonx4000HWkext and AMDRadeonx5000HWkext.    The vAMD3000kext seems to be like the older Sierra layout.     Maybe this is the new Metal2 kext layout.

 

Its really weird, the 4100, 4150, 4200, and 4250 kexts have device IDs in them for the same cards in many cases ie... 0x67ef, 0x67ff, 0x67df but only one kext gets assigned.

Do you mean that I need edit the value according to GPU's port number ?

For example there are 4 ports (2 DP, 1 HDMI & 1 DVI) need edit it to 4 .

Share this post


Link to post
Share on other sites

Do you mean that I need edit the value according to GPU's port number ?

For example there are 4 ports (2 DP, 1 HDMI & 1 DVI) need edit it to 4 .

 

Yes, that is what I meant.

hi ,, i find there is no difference between using orinoco and dayman..

 

There are many others to try.    see here the AMD9250Controller with the 67DF and 67EF IDs.   There are more kexts too look at and try to find the best fit for frame buffer.   Look at the data for CARONI, ELQUI and FLORIN.     These may be for Apple specific cards and you may stumble onto a fit for your card.

 

post-1753549-0-84736000-1513742450_thumb.pngpost-1753549-0-39206800-1513742489_thumb.png

Share this post


Link to post
Share on other sites

Here it is test it and report back please, it goes in Clover "Devices" section in Arbitrary.

 

attachicon.gifupload_2017-12-11_23-12-28.png

 

It is a new addition to High Sierra, there are device IDs in the info.plist.    In Sierra there were only device IDs 0x68101002 (example) in the controlerkext and AMDX000kext.     Now in HS there are 3 IDs, one in Controllerkext, one in X000kext, and now one in the AMDRadeonx4000HWkext and AMDRadeonx5000HWkext.    The vAMD3000kext seems to be like the older Sierra layout.     Maybe this is the new Metal2 kext layout.

 

Its really weird, the 4100, 4150, 4200, and 4250 kexts have device IDs in them for the same cards in many cases ie... 0x67ef, 0x67ff, 0x67df but only one kext gets assigned.

Can we do the same thing to disable AGDC? For fixing black screen after wake. How do I fill up those boxes?

 

"CFG,CFG_USE_AGDC", Buffer () {

0x00

}

Share this post


Link to post
Share on other sites

Yes, that is what I meant.

 

Thanks for this patch which works for RX-560 at 10.13.3 DB2 (17D25b) with value=03 in Intel Z87 hackintosh.

It also works for Radeon HD 6870 at 10.13.2 (17C88) & 10.13.3 DB2 (17D25b) with value=05 in AMD FX-6300 hackintosh.

Share this post


Link to post
Share on other sites

On XFX R9 280X 10.12.6 Clover r439. Checked RadeonDeinit in Clover Configurator and deleted WhateverGreen from Kexts/Other. Graphics working but have lost Display Port audio.

Share this post


Link to post
Share on other sites

On XFX R9 280X 10.12.6 Clover r439. Checked RadeonDeinit in Clover Configurator and deleted WhateverGreen from Kexts/Other. Graphics working but have lost Display Port audio.

DP/HDMI audio requires either Lilu+Whatevergreen or customized SSDT, note with a SSDT it is also required to have ATIInject=yes in Clover config.

Share this post


Link to post
Share on other sites

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.

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
×