freecableguy / v3x4

Intel(R) Xeon(R) Processor Max Effort Turbo Boost UEFI DXE driver
GNU General Public License v3.0
157 stars 27 forks source link

❓ Is it possible to compile v3x4 driver into PEI? #9

Closed miyconst closed 3 years ago

miyconst commented 4 years ago

The current implementation is available in two forms:

The problem with the DXE driver is that this section is not loaded when the PC goes live from the sleep mode.

Would it be possible to produce a PEI driver, which can be injected into the BIOS section, which is executed upon wake up?

P.S. I apologize if this is a stupid question and the answer is obvious.

freecableguy commented 4 years ago

The following link should allow for conversion of DXE to FFS format for direct injection into BIOS. I am reliably informed this method is incompatible with dual CPU systems but does work for single CPU systems.

Perhaps do some investigating for us and report back what you learn.

https://github.com/pbatard/efifs/wiki/Adding-a-driver-to-a-UEFI-firmware

freecableguy commented 4 years ago

Lol. Is this your site?: http://www.miyconst.com/Blog/View/2081/xeon-e5-2600-v3-turbo-boost-unlock

I'm now unsure if I understood your inquiry. Please try again and use small words. :)

miyconst commented 4 years ago

Yes, that's my website 😄.

In short:

The DXE drivers are not executed when resuming from the sleep mode, that's why applying such hack effectively disables the sleep mode.

andrescera commented 4 years ago

@miyconst we are actually on the same boat, i've been trying to find the way to create a PEI driver since the turbo dies when the board resumes from sleep on both os x and windows

mxp100 commented 4 years ago

needed service listeners for wake up for reinitialize hacks https://www.uefi.org/sites/default/files/resources/PI_Spec_1_6.pdf may be help this docs....

miyconst commented 4 years ago

It seems to be done by a user called ser8989 - АНЛОК (Андервольтинг) турбобуста процессора Unlock turbo boost (Undervolting).

freecableguy commented 4 years ago

PEI embedding: https://forums.anandtech.com/threads/what-controls-turbo-core-in-xeons.2496647/post-40316855

freecableguy commented 3 years ago

Specific targets for more information on PEI embedding:

https://forums.overclockers.ru/viewtopic.php?p=17089770#p17089770 https://forums.overclockers.ru/viewtopic.php?p=17092454#p17092454

miyconst commented 3 years ago

Following this guide I was able to successfully implement PEI embedding into a Machinist X99Z / X99-K9 BIOS. The BIOS is available in the Mi899 tool.

Closing the issue as the PEI embedding solution is available and tested.