Jump to content

Sandy Bridge-E Power Management [Big Sur 11.2.1] && [Big Sur 11.4]


verdazil
 Share

59 posts in this topic

Recommended Posts

This information is for get a working CPU Power Management on Chinese motherboards X79 with Sandy Bridge-E CPU.

We need 7 patches (2 patches for 11.4) for AppleIntelCPUPowerManagement.kext (See samples in attachment)

In addition to the standard post-install recommendations you should use your own prepared:

- DSDT.aml

- SSDT.aml, generated for your CPU by ssdtPRGen.sh script

and SSDT-PLUG.aml from OpenCore set

 

Tested work in

OpenCore, v 0.6.7, Big Sur v 11.2.1 (20D75), PC Build II in my profile

OpenCore, v 0.7.0, Big Sur v 11.4 (20F71), PC Build II in my profile

 

SandyBridge-E-11.2.1-PM.plist SandyBridge-E-11.4-PM.plist

Edited by verdazil
Update
  • Like 4
Link to comment
Share on other sites

  • 1 month later...

Hello, I'm wondering what/how I need to change the kernel patches for 11.2.3?  OpenCore says patches 1 + 4 couldn't be applied if I read correctly fast enough, and then I get a kernel panic. 

 

Is there a method for finding what the patches need to be?

 

Thanks,

 

IlikeTech

Link to comment
Share on other sites

Hello, IlikeTech. The patches were originally developed for Big Sur v 11.2.1 (20D75). They have been tested in 11.2.2 && 11.2.3 and still work for me successfully in 11.2.3. I assume they will be valid for all future Big Sur versions.

My guess is that the structure or content of the patches was broken when updating OC or some other manipulation with the OC config file.

If done correctly, everything should work fine.

Link to comment
Share on other sites

Okay, thanks for letting me know.  If I understand correctly:

 

Patches go in the Kernel -> Patch section

SSDT-PLUG gets added like other SSDTs

The ssdtPRGen SSDT is also added like the others.

 

It should work, correct?

 

Do I need to do anything special because of my Dual CPUs?

 

Thanks!

Link to comment
Share on other sites

IlikeTechyour problem is not with PM patches. These patches only fix CPU Power Management. They activate Turbo Boost and correct Speed Step. But the system can and should boot and work without them!

Can you boot to your desktop without patches?  If you can't, then, you need to look for a solution to the boot problem, which is related specifically to the dual CPU, and not to the patches.

Although I have no experience setting up systems with dual CPU, it is possible that if I saw yours EFI, I could say more.

Link to comment
Share on other sites

Yes, the system works fine, just with no power management before the patches are applied.  I can upload my EFI tomorrow, which currently contains no power management things at all.
 

As soon as the patches are applied, I get the above opencore error and a kernel panic during boot.

 

Thanks!  

Link to comment
Share on other sites

Here's a complete copy of my EFI, including my config.

 

In this state, I get this kernel panic on boot:

 

IMG_1844.thumb.jpeg.cb19b2e523060281d103e9366c162b22.jpeg

 

Also, I get the message about the prelinked patcher I showed earlier.

 

If I disable the patches, I get this kernel panic:

 

IMG_1845.thumb.jpeg.745bde0de73b03d30372d9b41e32b760.jpeg

 

Which happens much, much later in the boot process.

 

Thanks!

 

 

EFI.zip

Link to comment
Share on other sites

IlikeTechyou have a completely unconfigured OC.

It's clear that you can't just take mine EFI folder and use - we have different hardware - different CPU and different motherboard. You have to do everything yourself - from beginning to end.

If you want to have a properly configured and perfectly working system (for example, like mine), then you must do the following:

1. Extract DSDT and SSDT tables (e.g. via the F4 key in Clover)

2. Disassemble these tables (iasl)

3. Fix all errors in DSDT and rename the required devices (MaciASL)

4. Prepare a new, correct one USBPorts.kext - corresponding to your realities, and not taken from the Internet

5. And only when everything works without errors, you can apply PM patches. This - the cherry on the cake, the last action.

 

I know that all this is quite difficult, but there are only two options:

- someone has exactly the same hardware as you, he is a hackintosh guru and you just take his settings

- you yourself study every little thing and understand your settings 

Edited by verdazil
Link to comment
Share on other sites

I'm not sure where you're getting that idea from, the files you see in the folders there (unless I messed up and uploaded the wrong folder) are ones I created.  The USBMap.kext was created using CorpNewt's USBMap program and IS, in fact, for my board, and it works perfectly fine.  The EFI there was entirely set up and configured by myself following the OC Sandy Bridge E guide.

 

Where did you get the idea I just took an EFI folder and shoved it on to my hard drive?  That folder (provided I disable the power management things) works fine on my hardware.

 

IlikeTech

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
On 5/9/2021 at 4:46 PM, verdazil said:

Verdazil,

In 11.0.1 to 11.2.3 I achieved a great Energy Management using only 2 patches, both Clover and Open Core.
Do a test on your system to see if you can get a good Power Management with just these two patches.

Just to see if it works there too.

 

Note: At 11.3+ this patch does not work. I'm trying to find out which patches work well for Power Management on 11.3+.

 

1075555993_CapturadeTela2021-05-30s07_51_32.thumb.png.eb395cfec3372bd06541e24ce3fddf48.png

 

Note 2: If it does not boot, try to put this DSDT patch:

276768555_CapturadeTela2021-05-30s19_37_10.thumb.png.f2056e32a8a1813eae56b2ca833f7ae3.png

Edited by Vinicius P. Miranda
Link to comment
Share on other sites

On 7/15/2020 at 2:50 PM, stinga11 said:

This guide is for get a working Power Management on any X79
 
1. We need to patch the AICPM with the OMNI patch otherwise it will never work. (Is only if you have a Sandy Bridge-E if you have a Ivy Bridge-E skip this step)
 
Clover patch:


FF0F840F01
to
FF0F850F01


0100010F84
to
0100010F85


C974140F3225FF0F00006B
to
C9EB140F3225FF0F00006B


C974050F3283E01F4289443B
to
C9EB050F3283E01F4289443B


01745D
to
01EB5D


3E7538
to
3E9090


7511B9
to
EB11B9

Using clover configurator is easier. Your clover configurator have to see like this.
 1309829247_10.15power.thumb.png.600613dc234129f27ff0d64269a5034f.png

 

2. We need to patch the Msr lock. For this we need select "KernelPm and AppleIntelCPUPM" on Clover Configurator in the "Kernel and Kext Patches" section (Is only if you have a board with msr lock if you have a Asus or Asrock skip this step)

 

3. Finally we need to download the following dummy kext and put it in /Library/Extensions/

LegacyX86PlatformPlugin.kext 6.23 kB · 130 downloads

 

4. Now is time to create it a SSDT for our cpu.

 

a. If you have a Sandy Bridge-E download this zip file, Inside you will found your SSDT

X79 SSDT.zip 6.15 kB · 88 downloads

 

b. If you have have a Ivy Bridge-E you need download the ssdtPRGen for your CPU.


curl -o ~/ssdtPRGen.sh https://raw.githubusercontent.com/Piker-Alpha/ssdtPRGen.sh/Beta/ssdtPRGen.sh

chmod +x ~/ssdtPRGen.sh

~/ssdtPRGen.sh

 

5. Download Hackintool open it and go to the "Utilities" section and at the bottom select "Rebuild KextCache and Repair Permission"

 

I have an i7 3930k and a Rampage IV Extreme. It was using your "com.apple.driver.AppleIntelCPUPowerManagement" patches and Power Management worked fine until Big Sur 11.2.3.
Specifically, I only used these two patches to make Power Management work very well:
7511B9 to EB11B9
3E7538 to 3E9090
I don't know why but the others weren't needed, and SSDT wasn't needed either, I used it, but if I removed it from Clover, PM would still work fine.

After I upgrade to 11.3, 11.3.1 and 11.4, Power Management no longer works. It always gets 99% CPU (I believe it's only on the first core) and always 3.2Ghz (no Turbo booster). I put all patches back in, but nothing has changed. I removed all patches and nothing has changed (but enter in the system). I redid the SSDT but nothing helped.
I'm lost, I don't know where to look to try to find the new patches for Power Management to work properly.
I did several benchmarks and Single Core dropped almost by half, multicore dropped around 20%.
Can you help me by telling me how do I go about searching and finding the new patches that have changed in 11.3+ so I can get back to having good Power Management?

I don't even know where to look, if I knew, I would look for it.

 

11.3.1.thumb.png.0c2c8bcb4e76d8a48c07130f55fd6362.png

Link to comment
Share on other sites

  • 2 weeks later...
On 6/22/2021 at 12:00 PM, PPCnostalgic said:

Didn't try Monterey, PM works with Big Sur 11.4  My EFI folder in attachment, removed serials so just put yours.

 

EFI.zip 13.55 MB · 2 downloads

I couldn't solve the 99% CPU problem. I tried to copy almost everything from your Clover, but nothing helped.
Your processor is not the 3930k right? It's a 10 core Xeon. There must be something different that makes your processor Power Management well.
I think just a Kext Patch will make my management work, but I don't know how to make these patches. I will keep searching.

Link to comment
Share on other sites

My CPU is a Xeon-E5 2696v2. If I use iMac (not iMacPro) my CPU runs at 100% all the time, this happen with all iMac SMBIOS from 15,1 to 20,2. It seems that only iMacPro1,1 and MacPro6,1 work properly.

So I suggest you to try other SMBIOS, start with MacPro6,1 and then try several other types (e.g. iMac 15,1 16,1 17.1.........) til you find the one that works.

  • Like 1
Link to comment
Share on other sites

22 hours ago, PPCnostalgic said:

My CPU is a Xeon-E5 2696v2. If I use iMac (not iMacPro) my CPU runs at 100% all the time, this happen with all iMac SMBIOS from 15,1 to 20,2. It seems that only iMacPro1,1 and MacPro6,1 work properly.

So I suggest you to try other SMBIOS, start with MacPro6,1 and then try several other types (e.g. iMac 15,1 16,1 17.1.........) til you find the one that works.

I've always used MacPro 6.1. I tested all SMBios, all with the same 99% CPU problem.
I believe the solution will be a patch of "com.apple.driver.AppleIntelCPUPowerManagement", but I have no idea how to look for this patch.
What I had, worked since Catalina but stopped working in 11.3.
Do you know of a tutorial that teaches you how to find patches?

Link to comment
Share on other sites

On 6/25/2021 at 4:30 PM, Vinicius P. Miranda said:

I've always used MacPro 6.1. I tested all SMBios, all with the same 99% CPU problem.
I believe the solution will be a patch of "com.apple.driver.AppleIntelCPUPowerManagement", but I have no idea how to look for this patch.
What I had, worked since Catalina but stopped working in 11.3.
Do you know of a tutorial that teaches you how to find patches?

BTW you should wait for Big Sur 11.5 release to see if that release will solve, before going mad...

Link to comment
Share on other sites

On 6/7/2021 at 6:48 AM, Vinicius P. Miranda said:

Specifically, I only used these two patches to make Power Management work very well:
7511B9 to EB11B9
3E7538 to 3E9090

 

I'm in the process of trying out Big Sur on my X79/3930k now that I have a Metal-capable graphics card in it. Noticed that CPUPM wasn't working and did some digging in the absence of a working set of patches.

 

Here are the two patches you listed updated for 11.4:

 

7513B9 to EB13B9

3E7539 to 3E9090

 

I'll do some more digging and try to find the new strings for the rest of the patches (as you can see with just two patches it shows 5.7GHz for Core REQ). But for now these two will get speedstep working with a 3930k.

 

These might work for 11.3 too but I don't have it to check.

 

pm-quickfix.thumb.png.7e23f892b00b159d5e17d71e6ce0f377.png

 

After some more digging I think I've found the 7 updated strings. However two of them don't appear patchable in any recognisable way (to me at least):

 

FF0F841A01 to FF0F851A01

0100010F84 to 0100010F85 (this string hasn't changed since Yosemite)

0600000F3225FF0F00006B to ?

0600000F3283E01F4289443B to ?

01745E to 01EB5E

3E7539 to 3E9090

7513B9 to EB13B9

 

If I enable any of the three in red I get kernel panics on boot. The last of these looks right to me based on previous patches but it may be dependent on the other two which I can't see how to patch. The previous versions of these started with C974 which was patched to C9EB. But now they're 0600 so I'm stumped. 

 

Experimental!:

 

The string FC02740D appears a little before the first two strings in red above. It's the closest set of bytes to the strings that have a 74 in them and they only appear above those two strings. Replacing those two patches with a single patch changing FC02740D to FC02EB0D boots with no panic. However my Big Sur volume has gotten corrupted and Disk Utility can't repair it so I probably have to do a wipe and reinstall which I don't have time for tonight. I've had to boot the recovery image to check this new patch for panics.

 

Enabling the 01745E patch still results in a panic though.

Edited by Riley Freeman
  • Like 2
Link to comment
Share on other sites

 Share

×
×
  • Create New...