Jump to content
Gigamaxx

AMD Radeon Vii in macOS Mojave

224 posts in this topic

Recommended Posts

Well still no official Support in 10.14.4 final!

Share this post


Link to post
Share on other sites
Advertisement

I finally got 10.4.3 installed but is not updating to 10.4.4. So we will see if any drivers get developed. 

Share this post


Link to post
Share on other sites
Posted (edited)

Hey everyone. I created an injector kext so you don't have the need to manually edit the kext. It just injects the device ID into X5000 and X5000HWServices. It's under the GPL license. Enjoy!

AMDRadeonVII.kext.zip

 

Edit 1: In other news, I tried manually injecting framebuffers Kamarang and Iriri, with a black screen. They work for Vega 64, but not for Radeon VII. Maybe we need to inject the ID into some more kexts? We'll see. I'll look at the entire set of Radeon{X5000,10000}* kexts. I've got my iGPU on with the DVMT prealloc at 1024 MB and allowed set to MAX. It's got a connectorless ig-platform-id, but still I get freezes and KPs.

 

Edit 2: I tried putting the ID in all 3 kexts I found: 10000, and both X5000 via injector kexts. Freezing still happens.

Edited by Hameer Abbasi

Share this post


Link to post
Share on other sites
On 3/26/2019 at 10:29 AM, Hameer Abbasi said:

Hey everyone. I created an injector kext so you don't have the need to manually edit the kext. It just injects the device ID into X5000 and X5000HWServices. It's under the GPL license. Enjoy!

AMDRadeonVII.kext.zip

 

Edit 1: In other news, I tried manually injecting framebuffers Kamarang and Iriri, with a black screen. They work for Vega 64, but not for Radeon VII. Maybe we need to inject the ID into some more kexts? We'll see. I'll look at the entire set of Radeon{X5000,10000}* kexts. I've got my iGPU on with the DVMT prealloc at 1024 MB and allowed set to MAX. It's got a connectorless ig-platform-id, but still I get freezes and KPs.

 

Edit 2: I tried putting the ID in all 3 kexts I found: 10000, and both X5000 via injector kexts. Freezing still happens.

 

Let me give your AMDRadeonVII.kext Device ID injector some hype... :wink_anim:

 

For testing purposes, I am currently using a air flow Radeon VII in my X99 system, while on my X299 system a water blocked Nitro+ Vega 64 is still employed. However, the results presented below should also be fully valid for X299 systems. On both systems I use SMBIOS iMacPro1,1.

 

I employed your AMDRadeonVII.kext either in /S/L/E or /EFI/CLOVER/kexts/Other, in line with Lilu.kext 1.3.5, Whatevergreen.kext 1.2.7, AppleALC.kext 1.3.6 and my X99 System SSDTs SSDT-X99-Radeon-VII.aml, SSDT-X99-HDEF.aml and SSDT-DTPG.aml in my EFI-Folder, under both 10.14.4 (18E226) and 10.14.4 (18E2034) - special build, with exactly the same results:

 

1.) Radeon VII implemented including Hardware acceleration and working HDAU Audio.   

 

336071692_Screenshot2019-03-26at23_53_16.png.f89ab9ffe5566a07632ccf407e7efb6f.png

 

822654708_Screenshot2019-03-27at15_20_03.thumb.png.c5c96db87c1d888ddd65638758649fb2.png

 

53504674_Screenshot2019-03-27at15_21_21.thumb.png.f02cad1eb78fbb3891caf42d82c9b774.png

 

1764437177_Screenshot2019-03-27at15_21_54.thumb.png.ac79c34d59dca23dcd63bcbc8794d110.png

 

1620330580_Screenshot2019-03-27at15_36_47.thumb.png.b309167d5490761a1d719868ca576ae8.png

 

2.) Unfortunately, I have to confirm random system freezes during login, Geekbench Metal benchmarks or simple operation. Most inconvenient are immediate system freezes when reproducing simple youtube movies on Safari. 

 

3.) All DP and HDMI ports are working including system sleep/wake. Also multi-monitor support and DP display HotPlug work flawless. However as soon I employ your kext, I cannot switch from DP ports to the HDMI port without crashing the system. After booting the system with the monitor via HDMI, the Display works though also works via HDMI. No issues with DP/HDMI Display Hotplug without your kext.  

 

1602266147_Screenshot2019-03-27at17_17_48.thumb.png.5099d1800331bda1f178ee98630f789b.png

 

4.) Benchmarks: 

 

a.) Geekbench 

 

Radeon VII not properly recognised although OpenGL and Metal benchmarking is available. Sporadic system freezes during metal benchmarks.  First Scores are rather disappointing (although my load table might not be optimal and I have also "Above 4G decoding" enabled)

 

762303204_Screenshot2019-03-27at15_22_16.thumb.png.17cfc428ae081c7787a22f6afbdd7649.png

 

879841660_Screenshot2019-03-27at15_22_32.thumb.png.5dfb411e481b70eb406d1a556946a601.png

 

892302710_Screenshot2019-03-27at15_23_27.thumb.png.6a076029adb4bc974ba2196d503360f8.png

 

1756392678_Screenshot2019-03-27at15_24_29.thumb.png.5a59ce4b4672e93caf14994fdafb9b0f.png

 

b.) Also Cinebench benchmarks are currently below the scores obtained with a Vega 64 and Radeon VII is not recognised properly. 

 

1274930265_Screenshot2019-03-27at16_43_59.thumb.png.0e7b3a5eaaad4171a7953b3e22e43055.png

 

c.) High Score though with LuxMark, although reported errors in image validation and Radeon VII not properly recognised either.  

 

 679905879_Screenshot2019-03-27at16_29_20.png.6a4a3fca97f24ded775e86cb21d05d22.png

 

d.) For completeness also some Heaven and Valley benchmarks, which performed flawless at relatively low GPU temps (40-50 deg C).

 

72297111_Screenshot2019-03-27at16_34_37.png.df11b15852801d05a759d13f56559454.png

 

1105713742_Screenshot2019-03-27at16_38_40.png.20492c21d88fb1b98d860dd36281b982.png

 

Well that's basically all information I can provide for now in context to your AMDRadeonVII.kext implementation. 

 

BTW.. Anybody interested can download respective system SSDTs mentioned above from my respective X99 and X299 Github SSDT repositories. Although, respective SSDTs might have to be adopted depending on your motherboard and PCIe slot population and based on your respective original IOREG ACPI information. 

 

All the best, 

 

KGP  

Share this post


Link to post
Share on other sites
13 minutes ago, KGP-iMacPro said:

 

Let me give your AMDRadeonVII.kext Device ID injector some hype... :wink_anim:

 

For testing purposes, I am currently using a air flow Radeon VII in my X99 system, while on my X299 system a water blocked Nitro+ Vega 64 is still employed. However, the results presented below should also be fully valid for X299 systems. On both systems I use SMBIOS iMacPro1,1.

 

I employed your AMDRadeonVII.kext either in /S/L/E or /EFI/CLOVER/kexts/Other, in line with Lilu.kext 1.3.5, Whatevergreen.kext 1.2.7, AppleALC.kext 1.3.6 and my X99 System SSDTs SSDT-X99-Radeon-VII.aml, SSDT-X99-HDEF.aml and SSDT-DTPG.aml in my EFI-Folder, under both 10.14.4 (18E226) and 10.14.4 (18E2034) - special build, with exactly the same results:

 

1.) Radeon VII implemented including Hardware acceleration and working HDAU Audio.   

 

 

2.) Unfortunately, I have to confirm random system freezes during login, Geekbench Metal benchmarks or simple operation. Most inconvenient are immediate system freezes when reproducing simple youtube movies on Safari. 

 

3.) All DP and HDMI ports are working including system sleep/wake. Also multi-monitor support and DP display HotPlug work flawless. However as soon I employ your kext, I cannot switch from DP ports to the HDMI port without crashing the system. After booting the system with the monitor via HDMI, the Display works though also works via HDMI. No issues with DP/HDMI Display Hotplug without your kext.  

 

 

 

4.) Benchmarks: 

 

a.) Geekbench 

 

Radeon VII not properly recognised although OpenGL and Metal benchmarking is available. Sporadic system freezes during metal benchmarks.  First Scores are rather disappointing (although my load table might not be optimal and I have also "Above 4G decoding" enabled)

 

b.) Also Cinebench benchmarks are currently below the scores obtained with a Vega 64 and Radeon VII is not recognised properly.

 

c.) High Score though with LuxMark, although reported errors in image validation and Radeon VII not properly recognised either.  

 

 

 

d.) For completeness also some Heaven and Valley benchmarks, which performed flawless at relatively low GPU temps (40-50 deg C).

 

 

 

 

 

Well that's basically all information I can provide for now in context to your AMDRadeonVII.kext implementation. 

 

BTW.. Anybody interested can download respective system SSDTs mentioned above from my respective X99 and X299 Github SSDT repositories. Although, respective SSDTs might have to be adopted depending on your motherboard and PCIe slot population and based on your respective original IOREG ACPI information. 

 

All the best, 

 

KGP  


are you sure that "PP_PhmSoftPowerPlayTable" is the right one for radeon 7?

 

Share this post


Link to post
Share on other sites
48 minutes ago, KGP-iMacPro said:

3.) All DP and HDMI ports are working including system sleep/wake. Also multi-monitor support and DP display HotPlug work flawless. However as soon I employ your kext, I cannot switch from DP ports to the HDMI port without crashing the system. After booting the system with the monitor via HDMI, the Display works though also works via HDMI. No issues with DP/HDMI Display Hotplug without your kext. 

 

Radeon VII not properly recognised although OpenGL and Metal benchmarking is available. Sporadic system freezes during metal benchmarks.  First Scores are rather disappointing (although my load table might not be optimal and I have also "Above 4G decoding" enabled)

Hey KGP! It's an honour to be quoted by you. :D I'm also in Germany.

 

Can you tell me what procedures you follow to patch kexts such that DP/HDMI hotplug work (so that I can edit my kext accordingly), and do you have a fix for the freezes yet? Maybe I can put them into my kext, but not sure yet! Cheers!

Share this post


Link to post
Share on other sites
36 minutes ago, corint1 said:

are you sure that "PP_PhmSoftPowerPlayTable" is the right one for radeon 7?


 

 

You can remove it or modify it in any case. It can be optimized for sure. Just did a brief estimate with VGTab. My aim was not to achieve maximum performance but rather to check VII functionality based on the ID injector kext.

Share this post


Link to post
Share on other sites
Posted (edited)
1 hour ago, Hameer Abbasi said:

Hey KGP! It's an honour to be quoted by you. :D I'm also in Germany.

 

Can you tell me what procedures you follow to patch kexts such that DP/HDMI hotplug work (so that I can edit my kext accordingly), and do you have a fix for the freezes yet? Maybe I can put them into my kext, but not sure yet! Cheers!

 

The honor is at my side!  :thumbsup_anim:

I did not patch any kext for this for now. Everything else in my case is done with the 3 SSDTs linked above (+WEG), which should also work in your case after some adaptation. I have a small guideline which exactly explains how to do so. Please let me know about any progress with your kext, which is indeed important for the community and which I would like to promote in my respective X299 and X99 guides in the respective forums. I will be on holidays now until 3th of April and I am eagerly looking forward in finding big progress at your side when I am returning. Me personally I would prefer a kext which just helps with the yet not fully native VII macOS implementation including hardware acceleration, as I will continue to perform all other GPU  improvements by means of SSDTs. Most importantly one has to discover the source of the freezes when using your kext. There are no freezes without your kext but there is certainly also no hardware acceleration on X99 or X299 either in this case at present.. :D

Edited by KGP-iMacPro

Share this post


Link to post
Share on other sites
1 minute ago, xxtreatxx said:

Is this confirmed?

I don't have a Radeon VII but the accelerator is now there so..... I would assume it's confirmed.

Share this post


Link to post
Share on other sites
Posted (edited)

Success. I just hope there aren't any more freezes. Note that you do not need the kext in the public beta at all, everything is native.

 

https://browser.geekbench.com/v4/compute/3844879

 

Spoiler

Screenshot 2019-03-28 at 00.00.53.png

 

 

Spoiler

Screenshot 2019-03-27 at 23.59.46.png


 

Spoiler

 

Screenshot 2019-03-28 at 00.05.13.png

 

 

 

 

Even GeekBench Metal works:

https://browser.geekbench.com/v4/compute/3844952

Edited by Hameer Abbasi

Share this post


Link to post
Share on other sites
Posted (edited)
3 hours ago, xxtreatxx said:

Is this confirmed?

 

Great :thumbsup_anim:.. Can't confirm that by myself for now as I cannot update my X99 system to 10.14.5 beta because the XCPM_pkg_scope kernel patch seems broken with 10.14.5 beta, while all other kext and kernel patches continue working. On my X299 system I just have the water blocked Nitro+ Vega 64 and all other slots are occupied by water blocking, thus no way to add the air flow Radeon VII for testing after my already successfully update to 10.14.5 beta. @Pmheart seems not available at present to provide the necessary XCPM_pkg_scope kernel patch update for successfully booting X99 with 10.14.5 beta and in 4 hours I have to go to the airport and will not have any access to my computers for 6 days from now. 

 

Thus anybody else enjoy and have fun with the now natively implemented Radeon VII, while X99 users should wait for a XCPM_pkg_scope kernel patch update before updating to 10.14.5 beta. All other kext and kernel patches for X99 seem fine and continue working also under 10.14.5 beta.  :wink_anim: 

 

 

 

 

 

 

Edited by KGP-iMacPro

Share this post


Link to post
Share on other sites
6 hours ago, Hameer Abbasi said:

Success. I just hope there aren't any more freezes.

 

https://browser.geekbench.com/v4/compute/3844879

 

  Reveal hidden contents

Screenshot 2019-03-28 at 00.00.53.png

 

 

  Reveal hidden contents

Screenshot 2019-03-27 at 23.59.46.png


 

  Reveal hidden contents

 

Screenshot 2019-03-28 at 00.05.13.png

 

 

 

 

 

Even GeekBench Metal works:

https://browser.geekbench.com/v4/compute/3844952

 

6 hours ago, KGP-iMacPro said:

 

Great :thumbsup_anim:.. Can't confirm that by myself for now as I cannot update my X99 system to 10.14.5 beta because the XCPM_pkg_scope kernel patch seems broken with 10.14.5 beta, while all other kext and kernel patches continue working. On my X299 system I just have the water blocked Nitro+ Vega 64 and all other slots are occupied by water blocking, thus no way to add the air flow Radeon VII for testing after my already successfully update to 10.14.5 beta. @Pmheart seems not available at present to provide the necessary XCPM_pkg_scope kernel patch update for successfully booting X99 with 10.14.5 beta and in 4 hours I have to go to the airport and will not have any access to my computers for 6 days from now. 

 

Thus anybody else enjoy and have fun with the now natively implemented Radeon VII, while X99 users should wait for a XCPM_pkg_scope kernel patch update before updating to 10.14.5 beta. All other kext and kernel patches for X99 seem fine and continue working also under 10.14.5 beta.  :wink_anim: 

 

 

 

 

 

 

Hi,Guys.  Great thx to KGP and Hameer Abbasi. I followed KGP's guide  on x299 and successfully  build my x299-deluxe with 7900x. Wonderful  guiding. Now I'm using new Radeon Vii on Gigabyte Z390-designare. Likewise,the same frozen problem in 10.14.4 formal release and green backgroud in  luxmark test and Davinci 15 color grading(i've attached the screen shot). But today in the moring, I updated to 10.14.5beta1 and using Hameer's AMDRadeonVII.kext.zip. Amazing!the  frozen problem seems to gone away. OPEN CL and Mental works. still the green problem remains.! I've replace whatevergreen 1.2.7 the newest version, not working. Would you give me some help? By the way, I'm using IGPU in headless mode along  with Radeon Vii

green.jpg

Share this post


Link to post
Share on other sites
Posted (edited)
2 hours ago, bundog said:

 

Hi,Guys.  Great thx to KGP and Hameer Abbasi. I followed KGP's guide  on x299 and successfully  build my x299-deluxe with 7900x. Wonderful  guiding. Now I'm using new Radeon Vii on Gigabyte Z390-designare. Likewise,the same frozen problem in 10.14.4 formal release and green backgroud in  luxmark test and Davinci 15 color grading(i've attached the screen shot). But today in the moring, I updated to 10.14.5beta1 and using Hameer's AMDRadeonVII.kext.zip. Amazing!the  frozen problem seems to gone away. OPEN CL and Mental works. still the green problem remains.! I've replace whatevergreen 1.2.7 the newest version, not working. Would you give me some help? By the way, I'm using IGPU in headless mode along  with Radeon Vii

green.jpg

You don't need my kext in the developer beta, only on the 14.14.4 releases. Everything is native in the PB. Also try the -rad24 boot-flag if you have a 10-bit screen... If not, I'm not sure.

Edited by Hameer Abbasi

Share this post


Link to post
Share on other sites
52 minutes ago, Hameer Abbasi said:

You don't need my kext in the developer beta, only on the 14.14.4 releases. Everything is native in the PB. Also try the -rad24 boot-flag if you have a 10-bit screen... If not, I'm not sure.

gee! It works!hah, on 10.14.5beta1,EVERYTHING IS FINE,no more green,after I delete your kext and reboot. but one more problem there is: the IGPU workload is not full. when using vega64, It's full loaded. WHY?

thanks again
!

Share this post


Link to post
Share on other sites
Posted (edited)
18 hours ago, Pavo said:

I don't have a Radeon VII but the accelerator is now there so..... I would assume it's confirmed.

Yes it’s working with no freezes so far.   Geekbench went from 185,000 to 156,000 though.   I’m sure it will get better later.

 

The card still reads 350Mhz in Geekbench and Luxmark which suggests to me that it is 350(4) 1400Mhz.   Hopefully they will ramp it up to 1750Mhz which will increase performance of the drivers.    

OpenGL in Valley improved quite a bit.

Edited by Gigamaxx

Share this post


Link to post
Share on other sites
Posted (edited)

Okay well I deleted my question and was able to upgrade to 10.14.5 Beta WOOT! 

Edited by ITAngel

Share this post


Link to post
Share on other sites

Question how can I make my system do a reboot or shutdown without getting stuck in the end frozen during the process? 

Share this post


Link to post
Share on other sites
39 minutes ago, ITAngel said:

Question how can I make my system do a reboot or shutdown without getting stuck in the end frozen during the process? 

Don't think this is Radeon II related.

Share this post


Link to post
Share on other sites
On 3/28/2019 at 5:11 PM, Hameer Abbasi said:

You don't need my kext in the developer beta, only on the 14.14.4 releases. Everything is native in the PB. Also try the -rad24 boot-flag if you have a 10-bit screen... If not, I'm not sure.

 VII runs no problem on Z390 with IGPU enabled, though I don't see any improment in Davinci Resolve referring to vega64.But when switched to X299 without IGPU on board, VII works badly ,poor performance.much slower than Vega64

Does any one know why?

Share this post


Link to post
Share on other sites
On 3/30/2019 at 8:27 AM, bundog said:

 VII runs no problem on Z390 with IGPU enabled, though I don't see any improment in Davinci Resolve referring to vega64.But when switched to X299 without IGPU on board, VII works badly ,poor performance.much slower than Vega64

Does any one know why?

Try KGP's SSDT. I don't have an X299 system so I can't test.

Share this post


Link to post
Share on other sites
On 4/1/2019 at 10:29 AM, Hameer Abbasi said:

Try KGP's SSDT. I don't have an X299 system so I can't test.

Through really hardwork day and night, I now confirmed one thing: 10.14.5beta1 lost H.264 hardward decoding whether VII or Vega64. I have to roll back to 10.14.3.  What a painfull result! 

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

×