Contribute
Register

Enable all cores R9 Fury cards

Joined
Jan 28, 2013
Messages
225
Motherboard
Asrock Z370 Taichi
CPU
8700K
Graphics
AMD Fury X/Intel UHD 630
Mac
  1. iMac
  2. MacBook Pro
Mobile Phone
  1. iOS
I found this on the other site. Thanks to Okrasit for working this out.

Patch for AMDRadeonX4100.Kext

Find: 48 B8 02 00 00 00 01 00 00 00 48 89 43 54 C7 43 7C 08 00 00 00

Replace: 48 B8 04 00 00 00 01 00 00 00 48 89 43 54 C7 43 7C 20 00 00 00



Find: 0F 42 C8 89 8B 80 00 00 00 44 88 B3 99 00 00 00 44 88 73 20

Replace: 90 90 90 89 8B 80 00 00 00 44 88 B3 99 00 00 00 44 88 73 20



Find: E8 49 85 FE FF BE 48 01 00 00 4C 89 F7

Replace: E8 73 02 01 00 BE 48 01 00 00 4C 89 F7


Clover kext patching didn't work. I had to directly patch the kext with a hex editor


Huge improvement in GeekBench compute score and Luxmark score

GeekBench.jpg
LuxMark.jpg
 

Fl0r!an

Moderator
Joined
Jul 6, 2010
Messages
2,681
Motherboard
Asus Z170M-Plus
CPU
i5-6600K
Graphics
R9 280
Mac
  1. MacBook Pro
  2. Mac Pro
Mobile Phone
  1. iOS
A similar hack should make the Polaris GPUs fly.
So let's give it a go (search & replace with hex editor, fix permissions afterwards):

Change number of CU's from 16 to 36:
48 B8 02 00 00 00 01 00 00 00 48 89 43 54 C7 43 7C 08 00 00 00
48 B8 04 00 00 00 01 00 00 00 48 89 43 54 C7 43 7C 12 00 00 00

Remove CU limit (didn't alter for P10):
0F 42 C8 89 8B 80 00 00 00 44 88 B3 99 00 00 00 44 88 73 20
90 90 90 89 8B 80 00 00 00 44 88 B3 99 00 00 00 44 88 73 20

Change init function to Ellesmere instead of Baffin:
E8 49 85 FE FF BE 48 01 00 00 4C 89 F7
E8 46 E4 00 00 BE 48 01 00 00 4C 89 F7

Didn't test it, since I don't own any Polaris GPU's. Should unlock full OpenCL capabilities on Polaris 10 cards (RX 480 / 470). Could also crash the system, who knows. :lol:

Again, credits to okrasit for the original hack!

Edit: One more thing to test, try setting "PP_DisablePowerContainment" in AMD9500Controller.kext to "1".
 
Last edited:

Gigamaxx

Moderator
Joined
May 15, 2016
Messages
6,054
Motherboard
GIGABYTE X470 Arous Gaming 7 WiFi
CPU
Ryzen R9 3900X
Graphics
RX 480
Mac
  1. iMac
So let's give it a go (search & replace with hex editor, fix permissions afterwards):

Change number of CU's from 16 to 36:
48 B8 02 00 00 00 01 00 00 00 48 89 43 54 C7 43 7C 08 00 00 00
48 B8 04 00 00 00 01 00 00 00 48 89 43 54 C7 43 7C 12 00 00 00

Remove CU limit (didn't alter for P10):
0F 42 C8 89 8B 80 00 00 00 44 88 B3 99 00 00 00 44 88 73 20
90 90 90 89 8B 80 00 00 00 44 88 B3 99 00 00 00 44 88 73 20

Change init function to Ellesmere instead of Baffin:
E8 49 85 FE FF BE 48 01 00 00 4C 89 F7
E8 46 E4 00 00 BE 48 01 00 00 4C 89 F7

Didn't test it, since I don't own any Polaris GPU's. Should unlock full OpenCL capabilities on Polaris 10 cards (RX 480 / 470). Could also crash the system, who knows. :lol:

Again, credits to okrasit for the original hack!

I'll be home in a few hours and will give it a go, sounds awesome, thanks.

I wonder if doing this will eliminate the need to edit the 4100kext ID?
 

Gigamaxx

Moderator
Joined
May 15, 2016
Messages
6,054
Motherboard
GIGABYTE X470 Arous Gaming 7 WiFi
CPU
Ryzen R9 3900X
Graphics
RX 480
Mac
  1. iMac
I found this on the other site. Thanks to Okrasit for working this out.

Patch for AMDRadeonX4100.Kext

Find: 48 B8 02 00 00 00 01 00 00 00 48 89 43 54 C7 43 7C 08 00 00 00

Replace: 48 B8 04 00 00 00 01 00 00 00 48 89 43 54 C7 43 7C 20 00 00 00



Find: 0F 42 C8 89 8B 80 00 00 00 44 88 B3 99 00 00 00 44 88 73 20

Replace: 90 90 90 89 8B 80 00 00 00 44 88 B3 99 00 00 00 44 88 73 20



Find: E8 49 85 FE FF BE 48 01 00 00 4C 89 F7

Replace: E8 73 02 01 00 BE 48 01 00 00 4C 89 F7


Clover kext patching didn't work. I had to directly patch the kext with a hex editor


Huge improvement in GeekBench compute score and Luxmark score

View attachment 225264 View attachment 225265

Very nice, Thank you! I will try to test this tonight.
 
Joined
Dec 9, 2013
Messages
8
Mac
Classic Mac
Mobile Phone
I would be happy to try this, I have a running Sierra machine with RX 480 via IOPCIMatch edit. What file are you editing inside the Kext exactly?
 

Gigamaxx

Moderator
Joined
May 15, 2016
Messages
6,054
Motherboard
GIGABYTE X470 Arous Gaming 7 WiFi
CPU
Ryzen R9 3900X
Graphics
RX 480
Mac
  1. iMac
I would be happy to try this, I have a running Sierra machine with RX 480 via IOPCIMatch edit. What file are you editing inside the Kext exactly?

AMD41200kext. You need to use find and replace options.
 
Joined
Dec 9, 2013
Messages
8
Mac
Classic Mac
Mobile Phone
I found 2/3 of those strings int he AMDRadeonX4100.kext/MacOS/AMDRadeonX4100 file, rebooting...
 
Joined
Dec 9, 2013
Messages
8
Mac
Classic Mac
Mobile Phone
Luxmark from 12k to 15k, noticably smoother all around. Valley bench is 40-70 fps, not a huge jump, hard to say for sure if it made a huge difference but I'll give it a shot for a while. As I said, I didn't find that third string anywhere... any ideas there?
 

Gigamaxx

Moderator
Joined
May 15, 2016
Messages
6,054
Motherboard
GIGABYTE X470 Arous Gaming 7 WiFi
CPU
Ryzen R9 3900X
Graphics
RX 480
Mac
  1. iMac
Luxmark from 12k to 15k, noticably smoother all around. Valley bench is 40-70 fps, not a huge jump, hard to say for sure if it made a huge difference but I'll give it a shot for a while. As I said, I didn't find that third string anywhere... any ideas there?

Download iHEX and use find replace option. go to edit and choose insert, its default is overwrite but that doesn't allow changes for me for some reason. Overwrite?

Thanks for reporting back, did you get 36 compute units listed in Luxmark?
 
Top