Tutorial New AMD macOS CoreCount patch Information

Shaneee

The AMD Guy
Staff member
Administrator
Joined
Mar 13, 2020
Messages
1,203
This is laid out in the AMD_Vanilla GitHub Readme but I'd thought I'd post here too incase of any questions.

Patches are now universal across 15h, 16h, 17h and 19h by utilising the OpenCore Kernel Quirk ProvideCurrentCpuInfo

Make sure to enable this quirk or the system won't boot.

This quirks provides the kernel with the CPU frequencies for macOS to boot.

Core Count patch needs modified to boot your system. Find the three algrey - Force cpuid_cores_per_package patches and alter the Replace value only.

Replace:
Code:
B8000000 0000
BA000000 0000
BA000000 0090
Becomes:
Code:
B8 <CoreCount> 0000 0000
BA <CoreCount> 0000 0000
BA <CoreCount> 0000 0090
substituting <CoreCount> with the hexadecimal value matching your physical core count.

Note: The three different values reflect the patch for different versions of macOS. Be sure to change all three if you boot macOS 10.13 to macOS 12

See the table below for the values matching your CPU Core Count.

CoreCountHexadecimal
6 Core06
8 Core08
12 Core0C
16 Core10
32 Core20

So for example a 6 Core 5600X Replace value would result in these replace values

Replace:
Code:
B8 06 0000 0000
BA 06 0000 0000
BA 06 0000 0090
Note the 06 for the 6 Core CPU.

It's quite simple but if you've any questions on how to do this simply ask.

Enjoy,
Shaneee
 
Last edited:

RyzeCooker

Donator
Donator
Joined
May 3, 2020
Messages
173
EDIT: I'll leave this up for my personal shame but I've completely ignored your BIG LETTER warning to enable ProvideCurrentCpuInfo. I was too focused on the patches to look any further. EDIT2: Works like a charm! Of course it does. :D

Curious, I've done it twice to be sure and tested the config on both my Catalina and Big Sur boot sticks. It doesn't go past the EXITBS stage. I have the Ryzen 7 3700X 8-Core Processor so these values should be okay, no?

Code:
B8080000 0000
BA080000 0000
BA080000 0090


patchesthingy.jpg

Only other thing I did was disable algrey - _mtrr_update_action fix PAT and activated yours. I'm not in a hurry to upgrade but I'd like to run the latest patches just in case drunk future me might press update. :D
 
Last edited:

savage001

Active member
Joined
Jun 4, 2020
Messages
116
So we will need new nightly version of OC that includes that quirk?


Sent from my iPhone using Tapatalk
 

sac23

Donator
Donator
Joined
May 12, 2020
Messages
52
hello thank u Shanee for this but i do have a question guys I'm on beta 3 but whatever i do i cant get beta 4 to show up any ideas guys thanks
 

Shaneee

The AMD Guy
Staff member
Administrator
Joined
Mar 13, 2020
Messages
1,203
If updates aren't showing make sure SIP is disabled and you've got this in your config for csr_active_config.



@savage001 The quirk has been present with the freq calculations since 0.7.1
 

AMDPUSH

Donator
Donator
Joined
May 2, 2020
Messages
137
Hi, i saw this tread but i don't understand what that mean exactly. What is the point ?
What improvement that is envolving ?
 

AudioGod

Guru
Guru
Joined
Nov 7, 2020
Messages
1,231
Hi, i saw this tread but i don't understand what that mean exactly. What is the point ?
What improvement that is envolving ?
The patches have been reworked so they are Monterey compatible and just better overall.
It’s worth doing bud.
 

AMDPUSH

Donator
Donator
Joined
May 2, 2020
Messages
137
The patches have been reworked so they are Monterey compatible and just better overall.
It’s worth doing bud.
In 7 days the 072 OC will be available, then can i wait and to do all the stuff at this moment, or i have really to do it right now ?
And this is very important for people on BigSur ?
 

AudioGod

Guru
Guru
Joined
Nov 7, 2020
Messages
1,231
In 7 days the 072 OC will be available, then can i wait and to do all the stuff at this moment, or i have really to do it right now ?
And this is very important for people on BigSur ?
Of course you can wait, Do whatever you like bro and the old patches work just fine on BigSur. 👍
 

iGPU

Donator
Donator
Joined
May 5, 2020
Messages
14
hello thank u Shanee for this but i do have a question guys I'm on beta 3 but whatever i do i cant get beta 4 to show up any ideas guys thanks

I've had the opposite observation from Shaneee and must keep SIP enabled to see auto updates , with csr-active-config kept at 00000000. This also assumes you've set up your system as a developer, allowing you to receive the latest betas, otherwise you'll not see any updates.

The image below from a config file for an X570 build shows the disable values commented out. They do vary with macOS versions, and this way I don't need to keep looking them up.

csr=00000000.jpeg
 

Shaneee

The AMD Guy
Staff member
Administrator
Joined
Mar 13, 2020
Messages
1,203
SIP is still enabled with what I shared. Some systems need it added there to work correctly.
 

iGPU

Donator
Donator
Joined
May 5, 2020
Messages
14
Hi how you change the processor name ?

After enabling the RestrictEvents kext in the Kernel section (note Max/Min-Kernel ranges), enter revcpuname as shown below within the NVRAM section, editing the actual name as desired.

Kernel Section:
restricteventskext.jpeg

NVRAM Section:
restrictevents.jpeg
 
Top Bottom