Contribute
Register

Enable all cores R9 Fury cards

Joined
Jan 28, 2013
Messages
223
Motherboard
Asrock Z370 Taichi
CPU
8700K
Graphics
AMD Fury X/Intel UHD 630
Mac
iMac, MacBook Pro
Mobile Phone
iOS
#1
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,722
Motherboard
Asus Z170M-Plus
CPU
Intel i5-6600K
Graphics
AMD Radeon R9 280
Mac
MacBook Pro, Mac Pro
Mobile Phone
iOS
#3
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:
Joined
May 15, 2016
Messages
3,870
Motherboard
GIGABYTE Z170M D3H
CPU
I5 6500
Graphics
RX 480
Mac
iMac
#4
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?
 
Joined
May 15, 2016
Messages
3,870
Motherboard
GIGABYTE Z170M D3H
CPU
I5 6500
Graphics
RX 480
Mac
iMac
#5
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
#6
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?
 
Joined
May 15, 2016
Messages
3,870
Motherboard
GIGABYTE Z170M D3H
CPU
I5 6500
Graphics
RX 480
Mac
iMac
#7
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
#9
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?
 
Joined
May 15, 2016
Messages
3,870
Motherboard
GIGABYTE Z170M D3H
CPU
I5 6500
Graphics
RX 480
Mac
iMac
#10
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