Contribute
Register

Skylake HWP Enable

Status
Not open for further replies.
using Clover Method + HWPEnabler.kext , HWP work after wake from sleep

but same like using SMBIOS method, after wake from sleep

Fan speed always at high RPM and very noisy

before sleep , fan speed is ok, follow the frequency and cpu load , and quite

any solution? fan sound is very annoying for me



from PikerAlpha blog, using this command to check XCPM

sysctl machdep.xcpm

if
machdep.xcpm.mode: 1

XCPM is enabled
 
Last edited:
using Clover Method + HWPEnabler.kext , HWP work after wake from sleep

but same like using SMBIOS method, after wake from sleep

Fan speed always at high RPM and very noisy

before sleep , fan speed is ok, follow the frequency and cpu load , and quite

any solution? fan sound is very annoying for me



from PikerAlpha blog, using this command to check XCPM

sysctl machdep.xcpm

if
machdep.xcpm.mode: 1

XCPM is enabled

Everything normal for me, fan speed is normal, fan speed should be control by EC, maybe laptop EC is different, I do not know how to fix it.

Using SMBIOS method, XCPM always on.
sysctl -n machdep.xcpm.mode
return is 1.
For me, the best is return 0 but never success with SMBIOS method

I edited Piker ssdt, change Store ("machdep.xcpm.mode.....: 0”, Debug) for better HWP control, need to prevent it calling more XCPM functions which are partially disabled by X86PlatformPlugin, you can change back to 1 but HWP control became worse, I tested and compared, both skylake and kabylake same.
 
using Clover Method + HWPEnabler.kext , HWP work after wake from sleep

but same like using SMBIOS method, after wake from sleep

Fan speed always at high RPM and very noisy

before sleep , fan speed is ok, follow the frequency and cpu load , and quite

any solution? fan sound is very annoying for me



from PikerAlpha blog, using this command to check XCPM

sysctl machdep.xcpm

if
machdep.xcpm.mode: 1

XCPM is enabled

I double check Mac-473D31EABEB93F9B.plist, it does not contain any fan control, problem probably cause by DSDT patch, I remember my old Dell Vostro 5460 had similar issue fan speed too high, I use attached DSDT patch to fix it.
 

Attachments

  • battery_Dell-Vostro-15xx.txt
    4.6 KB · Views: 143
I modified MBP 13.2 Mac-66E35819EE2D0D05.plist for Pentium CPU, G4400 unit and G4500 unit were tested with several days, stable at 10.11.6 and 10.12.5.

Pentium G4400 & G4500 can work with SMBIOS HWP enable method, need enable XCPM control first.
For 10.11.x, check -xcpm boot flag from config.plist.

For 10.12.x,
KernelToPatch
Find: 83c3c483 fb22
Replace: 83c3c683 fb22
Comment: XCPM bootstrap 10.12

CPU G4400 in 10.12.5, IA frequency look like a straight line, stable at 0.8 GHz while idling.
upload_2017-5-25_21-24-21.png


I also tested above plist with i3 7100, better than previous plist base on MBP 14.3, supported CPU frequency up to 3.6 GHz, mine 3.9 GHz also work at full frequency, power consumption have significantly improve in each load steps, Geekbench Multi-core score slightly increase but Single-core score had slightly reduce.

Testing condition same as Pentium, also use 0x0306a0 & apply XCPM bootstrap patch.
CPU i3 7100 in 10.12.5
upload_2017-5-25_21-26-45.png


Attached X86PlatformPluginInjector.kext for SMBIOS iMac14.1, base on MBP 13.2, EPP setting 80.
 

Attachments

  • X86PlatformPluginInjector.kext.zip
    44.5 KB · Views: 125
  • 3300_3500_3600_EPP_80.plist
    36.5 KB · Views: 227
  • 3300_3500_3600_EPP_C0.plist
    36.5 KB · Views: 221
I modified MBP 13.2 Mac-66E35819EE2D0D05.plist for Pentium CPU, G4400 unit and G4500 unit were tested with several days, stable at 10.11.6 and 10.12.5.

Pentium G4400 & G4500 can work with SMBIOS HWP enable method, need enable XCPM control first.
For 10.11.x, check -xcpm boot flag from config.plist.

For 10.12.x,
KernelToPatch
Find: 83c3c483 fb22
Replace: 83c3c683 fb22
Comment: XCPM bootstrap 10.12

CPU G4400 in 10.12.5, IA frequency look like a straight line, stable at 0.8 GHz while idling.
View attachment 257172

I also tested above plist with i3 7100, better than previous plist base on MBP 14.3, supported CPU frequency up to 3.6 GHz, mine 3.9 GHz also work at full frequency, power consumption have significantly improve in each load steps, Geekbench Multi-core score slightly increase but Single-core score had slightly reduce.

Testing condition same as Pentium, also use 0x0306a0 & apply XCPM bootstrap patch.
CPU i3 7100 in 10.12.5
View attachment 257173

Attached X86PlatformPluginInjector.kext for SMBIOS iMac14.1, base on MBP 13.2, EPP setting 80.

is it stable for 10.12.4?

Can you exlain step by step?

1. ssdt --> machdep.xcpm.mode.....: 1
2. using smbios 13,2 and edit plist vector frequency
3. Add kerneltopatch in clover

no need fakecpuid, nullcpupower , uncheck HWP Enabled in clover

is the step true?
 
is it stable for 10.12.4?

Can you exlain step by step?

1. ssdt --> machdep.xcpm.mode.....: 1
2. using smbios 13,2 and edit plist vector frequency
3. Add kerneltopatch in clover

no need fakecpuid, nullcpupower , uncheck HWP Enabled in clover

is the step true?

I do not test with 10.12.4, all my hackintoshs updated to 10.12.5.

1, no, I always use "ssdt --> machdep.xcpm.mode.....: 0".

2, yes, but I think use SMBIOS MB 9,1 as template maybe better, now I try to mixed plists settings with MBP 14,3 iMac 17,1, MB 9,1, and results are more close to Clover HWP enable method.

3, XCPM bootstrap patch is for unsupported Pentium CPU used FakeCPUID 0x0306a0, not necessary for Core CPU. I use same settings for Core i3 7100, because I want to simulate unsupported Kabylake Pentium CPU.

4, yes, for supported Core CPU, no need fakecpuid, nullcpupower , uncheck HWP Enabled in clover.
 
How can I find the optimal frequency vectors for my i5-7500 and put them in the plist of the X86PlatformPluginInjector.kext?
 
How can I find the optimal frequency vectors for my i5-7500 and put them in the plist of the X86PlatformPluginInjector.kext?

Download freqVectorsEdit.sh, run below command from terminal,

./freqVectorsEdit.sh -d 1
type e for exit
copy data from terminal, reference for fine tune frequency vectors.

Choose desired plist refer to copied data, you can find it from below.
/System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/PlugIns/X86PlatformPlugin.kext/Contents/Resources
 
Download freqVectorsEdit.sh, run below command from terminal,

./freqVectorsEdit.sh -d 1
type e for exit
copy data from terminal, reference for fine tune frequency vectors.

Choose desired plist refer to copied data, you can find it from below.
/System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/PlugIns/X86PlatformPlugin.kext/Contents/Resources

Yes, but freqVectorsEdit.sh won't enable HWP nor other parameters . The frequencyVectors from your 3300_3500_3600_EPP_80.plist actually work better.
 
Yes, but freqVectorsEdit.sh won't enable HWP nor other parameters . The frequencyVectors from your 3300_3500_3600_EPP_80.plist actually work better.

Everythings start from ./freqVectorsEdit.sh -d 1, it extract default settings from plist, see below

Thanks to Pike R.

Examining data of: Mac-551B86E5744E2388.plist (MacBookPro14,3) ...

-----------------------------------------------------------------

Max Turbo Boost: 3900 MHZ (FrequencyVectors @ 1) Converted to: /tmp/Mac-551B86E5744E2388-3900.bin (7668 bytes)

Settings: Low Frequency Mode: 1300 MHz

BACKGROUND, KGROUND, REALTIME_SHORT, KERNEL, THRU_TIER2, THRU_TIER3, THRU_TIER4, THRU_TIER5

hard-rt-ns (4000000), ubpc (1), off (0), on (0), hwp (1), epp (128), perf-bias (5), utility-tlvl (53), non-focal-tlvl (250)

iocs_engage (20000000), iocs_disengage (15000000), iocs_cstflr (8), iocs_rtrigger (10)

ring_mbd_ns (10000), ring_ratio (35), ratioratelimit (3000000), io_epp_boost (32)


For example,
65707000 00000000 00000000 00000000 00000000 80000000 where 80000000 EPP=128
02000000 0C000000 01000000 00000000 BC020000 00000000 where 0C000000 LFM=1300 MHz
696F5F65 70705F62 6F6F7374 00000000 00000000 20000000 where 20000000 io_epp_boost=32
72696E67 5F726174 696F0000 00000000 00000000 23000000 where 23000000 ring bus ratio=35
 
Status
Not open for further replies.
Back
Top