Contribute
Register

Skylake HWP Enable

Joined
Oct 26, 2013
Messages
941
Motherboard
MSI B250M PRO-VHD
CPU
i3-7100
Graphics
RX 570
Maybe better than before? (appleintelinfo attached below)
Performance dropped down a bit:
View attachment 319956 View attachment 319957
Compared output appleintelinfo file with yours, your P-States is start from 8x then jump to 17x while load applied, different seems to be related to BIOS ACPI code, or sample kext frequency vector not fit your CPU (4 main stage scale may not match), sample kext is supposed to be use for testing and as universal not optimized to any CPU.
 
Joined
Jan 13, 2018
Messages
76
Motherboard
GA-Z170X-UD3
CPU
i5-6600
Graphics
RX 460 /w HD530
Mac
MacBook
Mobile Phone
iOS
Compared output appleintelinfo file with yours, your P-States is start from 8x then jump to 17x while load applied, different seems to be related to BIOS ACPI code, or sample kext frequency vector not fit your CPU (4 main stage scale may not match), sample kext is supposed to be use for testing and as universal not optimized to any CPU.
Can you answer me? ( post #214 )
[...]
I read instruction about CPUFriend kext from this link: https://github.com/PMheart/CPUFriend/blob/master/Instructions.md
I don't understand how to edit the Mac-XXXX.plist (Mac-B809C3757DA9BB8D in my case) file.
[...]
 
Joined
Oct 26, 2013
Messages
941
Motherboard
MSI B250M PRO-VHD
CPU
i3-7100
Graphics
RX 570
Can you answer me? ( post #214 )
Start from post # 150 to #156, find out SMBIOS plist meet or close to your CPU frequency, iMac 17,1 does not support HWP not suitable use it as template, try other SMBIOS.

Then add/edit HWP support and frequency vector table to plist.

Frequency Vectors table contents.
The first 932 bytes are frequency vector settings, need search from AppleLife site.
The last 576 bytes are XCPM and HWP settings, you can find some examples from 150 to 156.

Finally step convert SMBIOS plist to CPUFriendDataProvider.kext.

Edit: attached files may be useful for Frequency Vector Table editing, first 932 bytes block layout and description.
 

Attachments

Last edited:
Joined
Jan 13, 2018
Messages
76
Motherboard
GA-Z170X-UD3
CPU
i5-6600
Graphics
RX 460 /w HD530
Mac
MacBook
Mobile Phone
iOS
Start from post # 150 to #156, find out SMBIOS plist meet or close to your CPU frequency, iMac 17,1 does not support HWP not suitable use it as template, try other SMBIOS.

Then add/edit HWP support and frequency vector table to plist.

Frequency Vectors table contents.
The first 932 bytes are frequency vector settings, need search from AppleLife site.
The last 576 bytes are XCPM and HWP settings, you can find some examples from 150 to 156.

Finally step convert SMBIOS plist to CPUFriendDataProvider.kext.

Edit: attached files may be useful for Frequency Vector Table editing, first 932 bytes block layout and description.
Thank you very much but finally I'll go for Clover HWP with HWPEnabler kext (last one will be implemented after solved this problem).
But at the moment I still can't get turbo modes work (see attached appleintelinfo output) , maybe do I have to change something in BIOS?

E/C/config.plist:
  • ACPI/SSDT/Generate/PluginType=YES
  • CPU/HWPEnable=YES
  • CPU/UseARTFrequency=YES
  • CPU/HWPValue=0x20002701 (27hex=39)
  • Kernel and Kext Patches/FakeCPUID=0x0306A0 (*)
  • SMBIOS = iMac14,2
E/C/kexts/Other:
  • NullCPUPowerManagement.kext (*)

(*) - To definitely disable XCPM.
 

Attachments

Joined
Oct 26, 2013
Messages
941
Motherboard
MSI B250M PRO-VHD
CPU
i3-7100
Graphics
RX 570
Thank you very much but finally I'll go for Clover HWP with HWPEnabler kext (last one will be implemented after solved this problem).
But at the moment I still can't get turbo modes work (see attached appleintelinfo output) , maybe do I have to change something in BIOS?

E/C/config.plist:
  • ACPI/SSDT/Generate/PluginType=YES
  • CPU/HWPEnable=YES
  • CPU/UseARTFrequency=YES
  • CPU/HWPValue=0x20002701 (27hex=39)
  • Kernel and Kext Patches/FakeCPUID=0x0306A0 (*)
  • SMBIOS = iMac14,2
E/C/kexts/Other:
  • NullCPUPowerManagement.kext (*)

(*) - To definitely disable XCPM.
Try set max CPU frequency from Auto to 3.9 GHz in BIOS or Clover Cpu section, I remember from 10.12.3 or 10.12.5, Clover UseARTFrequency no longer work, always 8000FF01 reported by AppleIntelInfo.
 
Joined
Jan 13, 2018
Messages
76
Motherboard
GA-Z170X-UD3
CPU
i5-6600
Graphics
RX 460 /w HD530
Mac
MacBook
Mobile Phone
iOS
Try set max CPU frequency from Auto to 3.9 GHz in BIOS or Clover Cpu section, I remember from 10.12.3 or 10.12.5, Clover UseARTFrequency no longer work, always 8000FF01 reported by AppleIntelInfo.
I set config.plist/Cpu/Frequency MHz=3900 but cpu still at 3.6Ghz constantly.
Maybe it's a settings from BIOS that block this but I doubt it... I can't edit max cpu frequency option in BIOS it's set to Auto that equal 3.9GHz (BIOS pages screenshots below).

Update: Removed HWP options from config.plist , added HWPEnabler.kext to /L/E .
Now HWP_REQUEST is correct but still not get over 3,6GHz.
Screen Shot 2018-03-23 at 14.28.21.png
What's wrong?
 

Attachments

Last edited:
Joined
Oct 26, 2013
Messages
941
Motherboard
MSI B250M PRO-VHD
CPU
i3-7100
Graphics
RX 570
I set config.plist/Cpu/Frequency MHz=3900 but cpu still at 3.6Ghz constantly.
Maybe it's a settings from BIOS that block this but I doubt it... I can't edit max cpu frequency option in BIOS it's set to Auto that equal 3.9GHz (BIOS pages screenshots below).

Update: Removed HWP options from config.plist , added HWPEnabler.kext to /L/E .
Now HWP_REQUEST is correct but still not get over 3,6GHz.
View attachment 320434
What's wrong?
In theory Z170 mobo should allow all cores set to it's max turbo ratio 39x, which equal to non turbo CPU 39x, have you try it.

Seems to be Clover HWP have trouble with ACPI CpuSsdt table, try override system CpuSsdt by drop table CpuSsdt, normally used by overclocker.
upload_2018-3-24_1-12-1.png


Clover HWPEnable use same method as HWPEnabler by goodwin_c, enable 0x770 and store ARTFrequency value to 0x774 register.

Option 1
1, Uncheck Clover HWPEanble and install HWPEnabler to L/E (This step let you use Pike ssdtprgen.sh or Clover Generate PStates and CStates)
2. Check all Clover/ generate options from Generate PStates to PluginType (when Clover HWPEnable is checked, no Pstates and States will be generated by clover).

Option 2
1, Uncheck Clover HWPEanble and install HWPEnabler to L/E.
2, Uncheck Clover Generate Options from Generate PStates to PluginType
3, Use Pike ssdtprgen.sh script generate PM ssd.aml, and place it into Clover/ACPI/patched.
 
Joined
Jan 13, 2018
Messages
76
Motherboard
GA-Z170X-UD3
CPU
i5-6600
Graphics
RX 460 /w HD530
Mac
MacBook
Mobile Phone
iOS
In theory Z170 mobo should allow all cores set to it's max turbo ratio 39x, which equal to non turbo CPU 39x, have you try it.
How can I allow it? I don't see setting like this in BIOS.

Seems to be Clover HWP have trouble with ACPI CpuSsdt table, try override system CpuSsdt by drop table CpuSsdt, normally used by overclocker.
View attachment 320461
Done.
Screen Shot 2018-03-23 at 19.24.07.png
Clover HWPEnable use same method as HWPEnabler by goodwin_c, enable 0x770 and store ARTFrequency value to 0x774 register.

Option 1
1, Uncheck Clover HWPEanble and install HWPEnabler to L/E (This step let you use Pike ssdtprgen.sh or Clover Generate PStates and CStates)
2. Check all Clover/ generate options from Generate PStates to PluginType (when Clover HWPEnable is checked, no Pstates and States will be generated by clover).

Option 2
1, Uncheck Clover HWPEanble and install HWPEnabler to L/E.
2, Uncheck Clover Generate Options from Generate PStates to PluginType
3, Use Pike ssdtprgen.sh script generate PM ssd.aml, and place it into Clover/ACPI/patched.
Tried both options, not work: 3.6GHz is the max frequency that I get, very frustrating... :crazy:
 
Joined
Oct 26, 2013
Messages
941
Motherboard
MSI B250M PRO-VHD
CPU
i3-7100
Graphics
RX 570
How can I allow it? I don't see setting like this in BIOS.
Z series mobo support overclock, should work, have you try highlight CPU Clock Ratio Auto and type 39, highlight Turbo Ratio Auto and type 39 for all cores, in BIOS M.I.T sub menu, if support Auto should change to desired ratio 39.
 
Last edited:
Joined
Jan 13, 2018
Messages
76
Motherboard
GA-Z170X-UD3
CPU
i5-6600
Graphics
RX 460 /w HD530
Mac
MacBook
Mobile Phone
iOS
Z series mobo support overclock, should work, have you try highlight CPU Clock Ratio Auto and type 39, highlight Turbo Ratio Auto and type 39 for all cores, in BIOS M.I.T sub menu, if support Auto should change to desired ratio 39.
Done, max frequency from Intel gadget 3.6Ghz , so at this point BIOS settings aren't the problem right?
Code:
MSR_TURBO_RATIO_LIMIT............(0x1AD) : 0x27272727
------------------------------------------
- Maximum Ratio Limit for C01.......... : 27 (3900 MHz)
- Maximum Ratio Limit for C02.......... : 27 (3900 MHz)
- Maximum Ratio Limit for C03.......... : 27 (3900 MHz)
- Maximum Ratio Limit for C04.......... : 27 (3900 MHz)
From Appleintelinfo:
Screen Shot 2018-03-24 at 10.19.41.png
Does HWP_STATUS value is correct even if it's enabled?
Code:
IA32_PM_ENABLE...................(0x770) : 0x1 (HWP Supported and Enabled)
 
Last edited:
Top