Jump to content
Mieze

Tracing back the AMD GPU wakeup issue to its origin

365 posts in this topic

Recommended Posts

Slice sir, I've done as per ur advice, but no luck  :(

 

What I've done so far,

 

1. Change 4 kext + AMD6000.kext and DeInit=Yes

2. Applied diff SMBIOS 

3. Patch DSDT to Inject AMD (InjectATI=No is in clover)

4. Applied many FB patches

5. Sir I've tried ur SSDT-AML, n i see some thing diff(white background instead of black) , but it didn't made AMD work  :(

 

Sir Does MCFG.aml has any role to play coz i have to drop it! to get my radeon working.

 

sir can u plz share this 4 kext plz  :), one last try before "I QUIT"  :(

Share this post


Link to post
Share on other sites
Advertisement

Hi, can you please look at my attached ioreg screenshots and tell me if I set my radeon r9 290x GPU PM correctly. AGPM shows under ATY,AMD,RadeonFramebuffer@0 but my display is registered under ATY,AMD,RadeonFramebuffer@3. I have disabled IGPU in BIOS, set ASPM for PEG only and didn't use framebuffer injection or patching since i'm using only one LCD. Sorry if this is too much OT and thanks to all the developers for their priceless work

 

I use iMac13,2 as SMBIOS. In AGPM of  that there are only Nvidia type gpus (GFX0 ...).

If i look on AGPM part of iMac18,x there are AMD Gpus which have other keys in GFX0...

 

I use RX 460 with sucess in Sierra - works- only use whatevergreen, nothing more :).

But i am sure AGPM with unmodded iMac13,2 will make nothing for AMD because keys +IDs there  in GFX0 are for Nvidia gpu.

 

Below yo see my the .plist of AppleAGPM in which a marked my used iMac13,2 blue (second, lower ) and some iMac18 (has AMD) (first, upper)

Would it make sense to use the GFX0 from iMac18 in the iMac13,2 ? ( I have IVY CPU, so for CPU want stay this Modell)

 

post-110586-0-39529100-1511623722_thumb.jpg

Share this post


Link to post
Share on other sites

can i have this kext from 10.12.5 or 10.12.6 or both

AMDRadeonX3000.kext
AMDRadeonX3000GLDriver.bundle
IOAccelerator2D.plugin
IOAcceleratorFamily2.kext

does 10.12.6 n 10.13.1 kext behave same, coz i want it for AMD Radeon HD 7650M GPU

Share this post


Link to post
Share on other sites

SiddRamesh,

Cancel the spam!


I think I injected as Device Properties, take a look.

Hey Pavo!

SSDT is not a DeviceProperties protocol.

I asked one or another and you answered that you are using ACPI method not DeviceProperties method.

Share this post


Link to post
Share on other sites

OK, SO M KILLIN OS X HIGH SIERA AS My AMD Radeon HD 7650M Is not able to get QE/CI

 

ALL HPOE IS GONE :(

 

GOODBYE :(

Share this post


Link to post
Share on other sites

In High Sierra's AMD kexts, I'm curious about what differences there are between ATIFramebuffer and IOFreambuffer. I think there is no ATIFramebuffer in Sierra's AMD kexts. Is it the reason there are cards that works on Sierra but don't work on High Sierra??

I made a topic http://www.insanelymac.com/forum/topic/329602-no-acceleration-for-radeon-rx460/.

Share this post


Link to post
Share on other sites

OK, SO M KILLIN OS X HIGH SIERA AS My AMD Radeon HD 7650M Is not able to get QE/CI

 

ALL HPOE IS GONE :(

 

GOODBYE :(

This laptop doesn't have an iGPU?

Share this post


Link to post
Share on other sites

Here it is

Thanks a lot bro, :)

 

But i can't open it, can u send me .txt 

 

n would u like suggest me sloutuin for my AMD 7650M on 10.13.1 to get QE/CE!

Share this post


Link to post
Share on other sites

Thanks a lot bro, :)

 

But i can't open it, can u send me .txt 

 

n would u like suggest me sloutuin for my AMD 7650M on 10.13.1 to get QE/CE!

I'll send you a PM. Let's keep this thread clean.

Share this post


Link to post
Share on other sites

Have you tried to remove all the ATI injections and let the macOS default framebuffer to be loaded? What happens if you remove the KextToPatches as well?

 

Just keep the RadeonDeInit and remove the rest. and let me know

Share this post


Link to post
Share on other sites

Have you tried to remove all the ATI injections and let the macOS default framebuffer to be loaded? What happens if you remove the KextToPatches as well?

 

Just keep the RadeonDeInit and remove the rest. and let me know

AMD 6000 n X3000 Controller Loads but on 4mb VRam no QE/CI

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
External (_SB_.PCI0.GFX0.PEGP, DeviceObj)

Should be 

External (_SB_.PCI0.PEG0.PEGP, DeviceObj)

or 

 External (_SB_.PCI0.PEG0.GFX0, DeviceObj)

You either use PEGP or GFX0 not both, if you are replacing PEGP with GFX0 in ACPI patching you don't want _SB_.PCI0.PEG0.GFX0 also in SSDT

 

 

@pavo, can you please explain what you mean by "you don't want _SB_.PCI0.PEG0.GFX0 also in SSDT" ?

I patch ACPI PEGP -> GFX0 in Clover and having the same issue.

 

I cannot get a clean boot via my SSDT-AMD.aml for RX580 8GB

I see the Apple logo and the loading bar. Then the halfway through, the screen flashes partially white and back to half loading bar and the screen freezes. Non of the ports on the GPU work but macOS is up as I can shell via SSH into it remotely.

 

If I use use RadeonDeInit=true and no SSDT, then all is fine.

But I like to find out why my SSDT is not working.

 

Attached my config.plist & SSDT files.

 

I'm using Clover r4318

MacNB-config.plist.zip

SSDT-AMD.aml.zip

Share this post


Link to post
Share on other sites

@pavo, can you please explain what you mean by "you don't want _SB_.PCI0.PEG0.GFX0 also in SSDT" ?

I patch ACPI PEGP -> GFX0 in Clover and having the same issue.

 

I cannot get a clean boot via my SSDT-AMD.aml for RX580 8GB

I see the Apple logo and the loading bar. Then the halfway through, the screen flashes partially white and back to half loading bar and the screen freezes. Non of the ports on the GPU work but macOS is up as I can shell via SSH into it remotely.

 

If I use use RadeonDeInit=true and no SSDT, then all is fine.

But I like to find out why my SSDT is not working.

 

Attached my config.plist & SSDT files.

 

I'm using Clover r4318

In order for SSDT injection method to work you also must use InjectATI=True in config, using RadeonDeInit will not allow SSDT injection method to work. What I meant by "you don't want _SB_.PCI0.PEG0.GFX0 also in SSDT" is if in your clover config you have ACPI PEGP -> GFX0 in ACPI patching, then you only want _SB_.PCI0.PEG0 in your SSDT, because the ACPI patch is looking in your injected SSDT during patching process for PEGP to patch to GFX0, if you have _SB_.PCI0.PEG0.GFX0 then the ACPI patch will make it result in _SB_.PCI0.GFX0.GFX0 because you have it renaming PEGP to GFX0.

 

Wow you have a TON of fixes that you probably don't need, what is this system specs? You SSDT you attached is not complete at all, nothing is being injected. Try these.

MacNB-config.plist.zip

SSDT-RX-580.zip

Share this post


Link to post
Share on other sites

:poster_oops:

In order for SSDT injection method to work you also must use InjectATI=True in config, using RadeonDeInit will not allow SSDT injection method to work. What I meant by "you don't want _SB_.PCI0.PEG0.GFX0 also in SSDT" is if in your clover config you have ACPI PEGP -> GFX0 in ACPI patching, then you only want _SB_.PCI0.PEG0 in your SSDT, because the ACPI patch is looking in your injected SSDT during patching process for PEGP to patch to GFX0, if you have _SB_.PCI0.PEG0.GFX0 then the ACPI patch will make it result in _SB_.PCI0.GFX0.GFX0 because you have it renaming PEGP to GFX0.

 

Wow you have a TON of fixes that you probably don't need, what is this system specs? You SSDT you attached is not complete at all, nothing is being injected. Try these.

 

Thanks for your help. 

Does not quite make sense. My ACPI patch was PEGP to GFX0 and not PEG0 to GFX0. So if I have _SB.PCI0.PEG0.GFX0, then the ACPI patch process should NOT patch that to _SB.PCI0.GFX0.GFX0 because I did NOT ask it to patch PEG0 to GFX0.

 

My system spec is Z77X-UP5-TH with i7-3770K with RX580.

 

Any way, I solved my problem. Feel like an idiot   :poster_oops:  :blush:

I placed my file : EFI/Clover/ACPI/Patched/SSDT-RX580.aml and assumed Clover will automatically inject it.
It wasn't for some reason. The only reason I can think of was that in config.plist ACPI->SortedOrder, the file was called SSDT-AMD.aml which Clover could not find but it ignored the SSDT-RX580.aml that was there.
Interestingly, Clover will load DSDT.aml even if you explicitly name BLAH-BLAH.aml in config.plist ACPI->DSDT->Name->BLAH-BLAH.aml. That is, it will not find BLAH-BLAH.aml but will find DSDT.aml and load it.

​As soon as I corrected the SortedOrder filename, my SSDT is loaded and I have the correct GPU board name, Framebuffers and HDMI audio without using RadeonDeInit.

 

Also, with the SSDT method, the System Profiler states " Metal: Supported, feature set macOS GPUFamily1 v3" but with RadeonDeInit method, it says " Metal: Supported"

Share this post


Link to post
Share on other sites

:poster_oops:

 

 

Thanks for your help. 

Does not quite make sense. My ACPI patch was PEGP to GFX0 and not PEG0 to GFX0. So if I have _SB.PCI0.PEG0.GFX0, then the ACPI patch process should NOT patch that to _SB.PCI0.GFX0.GFX0 because I did NOT ask it to patch PEG0 to GFX0.

 

My system spec is Z77X-UP5-TH with i7-3770K with RX580.

 

Any way, I solved my problem. Feel like an idiot   :poster_oops:  :blush:

I placed my file : EFI/Clover/ACPI/Patched/SSDT-RX580.aml and assumed Clover will automatically inject it.It wasn't for some reason. The only reason I can think of was that in config.plist ACPI->SortedOrder, the file was called SSDT-AMD.aml which Clover could not find but it ignored the SSDT-RX580.aml that was there.Interestingly, Clover will load DSDT.aml even if you explicitly name BLAH-BLAH.aml in config.plist ACPI->DSDT->Name->BLAH-BLAH.aml. That is, it will not find BLAH-BLAH.aml but will find DSDT.aml and load it.

​As soon as I corrected the SortedOrder filename, my SSDT is loaded and I have the correct GPU board name, Framebuffers and HDMI audio without using RadeonDeInit.

 

Also, with the SSDT method, the System Profiler states " Metal:[/size] [/size]Supported, feature set macOS GPUFamily1 v3[/size]" but with RadeonDeInit method, it says " Metal:[/size] [/size]Supported[/size]"

Do you have IGPU partially enabled? The macOS GPUFamily1 status is a rare achievement unless using Intel igpu in some way.

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 DiddyKong
      Fully optimizing DSDT & SSDT for OS X Sierra POST INSTALL on a Dell345MT with a i7 - 920(first gen) 
       
      I know how this forum feels about 3rd party software, but that was just a crutch, I'm 100% vanilla now which is why I'm now posting for help because I eliminated the possibility having to do with 3rd party. Anyways, with that said I just have a couple things I want to be sure of.
       
      I used a n---bistro to get a App Store copy of Sierra, as I didn't know there were other ways of getting it now from a windows10 machine. anyways, I was able to build a vanilla usb. I couldn't figure the EFI out on my vanilla Sierra-usb, but the EFI on the usb-ni---bistro I had would boot my pre-install and post-install. so I was able to install Sierra. After a few days of figuring out how to remake a EFI and config, I broke my EFI.
      So back to my windows10 SSD and I found BootDiskUtility, and that made a EFI usb with the newest version of clover(r4895). So then swapped SSDs back to my OS X, plugged in the BDU-usb, after trial and error I got back into my Sierra. Now with the newest version of clover and no traces of ni---bistro anymore. Then copied the BDU-usb to my SSD EFI and was able to boot without a usb again!! YAY.
       
      Then starting working on fixing my web drivers for my gtx 1050 2gb. Installed the os update so i'm at 10.12.6, pulled my hair out figuring out the web drivers, eventually got them installed and the cuda fixed.
       
      Now all 3 of my screens work, yet windows can't sit 'between' screens, I just simply haven't looked for that fix yet as I want the sys itself running like a top first.
      My screen saver works, I don't get stuck in screensaver, I did once before, I believe lilu.kext and whatevergreen.kext fixed that.
      Now with all that I felt it was time to give my config.plist a diet cos it was bloated, I generated a config copied the clover settings check for check instead of coping text cos I'm trying to shrink it.
      Config.plist boots my system with DSDT-1FE7B5D7
       
      So after the above, This is now where I'm stuck
       a 100% correct DSDT and SSDT, from my understanding with a patched DSDT I wouldn't need any options selected in clover on the ACPI page?
       
      So with the patching part that I think I understand how to do it now, but when I extract with F4 every file has RSDT in front of it, I have one that says RSDP.aml and RSDT.aml
      so would I just erase the RSDT from the beginning of each file then go from their, which would then leave me with a DSDT.aml and 17 SSDTs?
      I know I have to decompile and patch them, but with my file names[DSDT table extract] not matching tutorials online I'm having a difficult time understanding which files I need.
      IS the RDST-DSDT.aml my DSDT? it is the biggest file.
      which ones that have SSDT in the filename is the SSDT(s) I need to patch?
       
      also how do I know if everything is patched correctly? like if my CPU is fully working and not just sorta working that way when I start running software like photoshop, unity, 10 chrome tabs, my hackintosh doesn't crash
       
      System details
      i7 920 (first gen) very similar to nehelam
      GeForce 1050 2Gb (3 monitors connected all work, one acer on HD connection, two HP s2031 on HD, using adapters to change all ports on GPU card to HD for screens)
          display port, HDMI, and HD
      4x 1Gg + 2x 8Gb RAM running at 1066 after injecting smbios with ram info macOS sees all my ram correctly
      Samsung SSD 860 EVO 500Gb
       
      Thanks to anyone that can help me out, I've been working on my system for about two weeks and this is basically the wall I finally can't seem to figure out how to pass
      I can post another info also if it helps
       
      Boot.log
      DSDTdump.Log

    • By gk12345
      hello to everyone, i managed to install mojave on my asus ux303ub with i5 cpu and now sleep does not work when i press sleep display turns black and pc stays on and then i have to force shut down by holding power button in order to restart pc ,by the way i used the clover folder from a guide on the internet, any help would be appreciated, thanks
    • By mikmavros
      Thanks for accepting
      I recently installed Sierra  and I encounter the following problem ... When I restart or I start up my machine return to BIOS. If anyone knows and can any help be valuable Thank you very much. (When I boot from a Capitan disk in the same machine all  is running well.) Both discs with Clover in Legacy mode.
      gigabyte z68x-ud5-b3 F8
      I7 2600K
      GT 620 ( την βλέπει κανονικά χωρίς Web drivers)
      16 GB ddr3 1600 


    • By vin047
      I have a Kingston HyperX Predator PCIE-SSD (model: SHPM2280P2H) matched with an X58 motherboard (legacy bios). The card has a Marvell 88SS9293 controller with an Option ROM which allows it to be detected on my motherboard as a bootable drive - listed as "IDE: Kingston SHPM". As my BIOS is non-UEFI, I assume the Option ROM presents it in IDE mode instead of AHCI.
       
      I use Clover legacy with BiosBlockIO to get around this, and it works well - Clover detects my drive and allows me to install macOS onto it and use it as a boot drive. macOS detects the drive correctly as a SATA AHCI drive. I guess Clover correctly detects (configures?) the Option ROM into AHCI mode and presents it as such to macOS - getting full speed read Read/Write performance. All is well.
       
      Except waking from sleep. When waking from sleep, depending on clover config options + dsdt, I either get an immediate reboot or hang on black screen that requires hard reset. I eventually realised that nothing after entering sleep mode is recorded in the logs, its completely empty until next boot up. This makes me think that on resume from sleep, macOS isn't seeing the drive anymore (hence can't even write to logs). My assumption here is that the Option ROM is presenting/configuring the card in IDE mode, which is not what macOS is expecting.
       
      This post describes the problem: 
       
      and also has a solution: in dsdt, simply write the correct values to 0x40, 0x41, 0x42 (which must be the BAR0 register?) to configure Option ROM to use AHCI mode. But I have no idea what address BAR0 is on the Marvell 88SS9293 - there appears to be no documentation whatsoever on this controller available online!
       
      I managed to dump the ROM using Linux sysfs, but don't have the skills to disassemble/decipher the binary to find the correct addresses. Anyone with such experience able to help?? I've attached the ROM dump and lspci output.
       
      Thanks in advance!
      rom.bin
      lspci_output.txt
    • By vin047
      Hi, have an old Asrock X58 Deluxe motherboard with an i7-920 Nehalem CPU (yes old board ) + AMD RX460 . As per the title, i've managed to get Mojave installed and running with Speed Step working too!
       
      Final issue i'm having is with sleep - it sleeps fine and even responds to keyboard/mouse event, but instead of waking up to the desktop it restarts and loads from BIOS boot screen. When finally booted into macos, it restores as if restored from unexpected shutdown (though no error is shown).
       
      I've tried for days to get it working, sometimes depending on clover config changes, I can get it to wake up without reboot, but it just remains at a black screen and is unresponsive. 
       
      I have no custom DSDT, i've tried writing one but don't know really know what i'm looking for? Currently relying on clover patches. I've uploaded my original DSDT (dumped from Clover, F4 option) + current config. Anyone have any ideas?
      dsdt original.zip
      config.plist.zip
×