Enable all cores R9 Fury cards

Discussion in 'Graphics' started by cdrhoek, Dec 15, 2016.

  1. cdrhoek

    cdrhoek

    Joined:
    Jan 28, 2013
    Messages:
    183
    Mobo:
    Asrock Z97 Extreme 6
    CPU:
    i7 4770K
    Graphics:
    AMD Fury X
    Mac:
    iMac, MacBook Pro
    Mobile Phone:
    iOS
    Dec 15, 2016 at 7:20 PM #1
    cdrhoek

    cdrhoek

    Joined:
    Jan 28, 2013
    Messages:
    183
    Mobo:
    Asrock Z97 Extreme 6
    CPU:
    i7 4770K
    Graphics:
    AMD Fury X
    Mac:
    iMac, MacBook Pro
    Mobile Phone:
    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
     
  2. Fl0r!an

    Fl0r!an Moderator

    Joined:
    Jul 6, 2010
    Messages:
    2,675
    Mobo:
    Asus Z170M-Plus
    CPU:
    Intel i5-6600K
    Graphics:
    AMD Radeon R9 280
    Mac:
    MacBook Pro, Mac Pro
    Mobile Phone:
    iOS
    Dec 15, 2016 at 8:02 PM #2
    Fl0r!an

    Fl0r!an Moderator

    Joined:
    Jul 6, 2010
    Messages:
    2,675
    Mobo:
    Asus Z170M-Plus
    CPU:
    Intel i5-6600K
    Graphics:
    AMD Radeon R9 280
    Mac:
    MacBook Pro, Mac Pro
    Mobile Phone:
    iOS
    Nice! I'll leave a link to the original thread here, okrasit definitely deserves credit for figuring that out.

    A similar hack should make the Polaris GPUs fly.
     
    Celtan likes this.
  3. Fl0r!an

    Fl0r!an Moderator

    Joined:
    Jul 6, 2010
    Messages:
    2,675
    Mobo:
    Asus Z170M-Plus
    CPU:
    Intel i5-6600K
    Graphics:
    AMD Radeon R9 280
    Mac:
    MacBook Pro, Mac Pro
    Mobile Phone:
    iOS
    Dec 15, 2016 at 9:01 PM #3
    Fl0r!an

    Fl0r!an Moderator

    Joined:
    Jul 6, 2010
    Messages:
    2,675
    Mobo:
    Asus Z170M-Plus
    CPU:
    Intel i5-6600K
    Graphics:
    AMD Radeon R9 280
    Mac:
    MacBook Pro, Mac Pro
    Mobile Phone:
    iOS
    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: Dec 16, 2016
  4. Gigamaxx

    Gigamaxx

    Joined:
    May 15, 2016
    Messages:
    1,453
    Mobo:
    GIGABYTE Z170M D3H
    CPU:
    I5 6500
    Graphics:
    AMD RX 480
    Mac:
    iMac
    Dec 15, 2016 at 9:07 PM #4
    Gigamaxx

    Gigamaxx

    Joined:
    May 15, 2016
    Messages:
    1,453
    Mobo:
    GIGABYTE Z170M D3H
    CPU:
    I5 6500
    Graphics:
    AMD RX 480
    Mac:
    iMac
    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?
     
  5. Gigamaxx

    Gigamaxx

    Joined:
    May 15, 2016
    Messages:
    1,453
    Mobo:
    GIGABYTE Z170M D3H
    CPU:
    I5 6500
    Graphics:
    AMD RX 480
    Mac:
    iMac
    Dec 15, 2016 at 9:09 PM #5
    Gigamaxx

    Gigamaxx

    Joined:
    May 15, 2016
    Messages:
    1,453
    Mobo:
    GIGABYTE Z170M D3H
    CPU:
    I5 6500
    Graphics:
    AMD RX 480
    Mac:
    iMac
    Very nice, Thank you! I will try to test this tonight.
     
    aseem.singh likes this.
  6. bailout00

    bailout00

    Joined:
    Dec 9, 2013
    Messages:
    8
    Dec 15, 2016 at 10:19 PM #6
    bailout00

    bailout00

    Joined:
    Dec 9, 2013
    Messages:
    8
    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?
     
  7. Gigamaxx

    Gigamaxx

    Joined:
    May 15, 2016
    Messages:
    1,453
    Mobo:
    GIGABYTE Z170M D3H
    CPU:
    I5 6500
    Graphics:
    AMD RX 480
    Mac:
    iMac
    Dec 15, 2016 at 10:21 PM #7
    Gigamaxx

    Gigamaxx

    Joined:
    May 15, 2016
    Messages:
    1,453
    Mobo:
    GIGABYTE Z170M D3H
    CPU:
    I5 6500
    Graphics:
    AMD RX 480
    Mac:
    iMac
    AMD41200kext. You need to use find and replace options.
     
    aseem.singh likes this.
  8. bailout00

    bailout00

    Joined:
    Dec 9, 2013
    Messages:
    8
    Dec 15, 2016 at 10:31 PM #8
    bailout00

    bailout00

    Joined:
    Dec 9, 2013
    Messages:
    8
    I found 2/3 of those strings int he AMDRadeonX4100.kext/MacOS/AMDRadeonX4100 file, rebooting...
     
    Gigamaxx likes this.
  9. bailout00

    bailout00

    Joined:
    Dec 9, 2013
    Messages:
    8
    Dec 15, 2016 at 10:41 PM #9
    bailout00

    bailout00

    Joined:
    Dec 9, 2013
    Messages:
    8
    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 likes this.
  10. Gigamaxx

    Gigamaxx

    Joined:
    May 15, 2016
    Messages:
    1,453
    Mobo:
    GIGABYTE Z170M D3H
    CPU:
    I5 6500
    Graphics:
    AMD RX 480
    Mac:
    iMac
    Dec 15, 2016 at 10:45 PM #10
    Gigamaxx

    Gigamaxx

    Joined:
    May 15, 2016
    Messages:
    1,453
    Mobo:
    GIGABYTE Z170M D3H
    CPU:
    I5 6500
    Graphics:
    AMD RX 480
    Mac:
    iMac
    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?
     

Share This Page