Win10论坛

Win10正式版系统下载主题平板

重定义Modern UI,打造完美Windows全新体验

Windows10下载|安装|新手宝典|必备软件

搜索
楼主: syscl

[原创内容] 开启完整HWP(SpeedShift)电源管理特性     [复制链接]

Rank: 7Rank: 7Rank: 7

UID
590471
帖子
1357
PB币
1934
贡献
0
技术
127
活跃
1859
发表于 2017-4-2 18:31:58 |显示全部楼层
口袋妖怪heart 发表于 2017-4-2 18:20
删掉 X86PlatformPluginInjector ,安装以下的 X17PlatformPlugin.kext 到 SLE 或者 LE。

用了你的有27个档位,还多了6个,需要关闭clover中HWP吗?

Rank: 2Rank: 2

UID
1818932
帖子
325
PB币
246
贡献
0
技术
0
活跃
891
发表于 2017-4-2 18:33:27 |显示全部楼层
请问如何检测是否完整的开启了HWP所有功能呢?我现在只在Clover中勾选了HWPEnable和UseARTFrequency,以及设置了HWPValue,这样下来用HWMonitor以及Intel Power Gadget检测变频都是有很多档,看起来HWP应该是开启了,另外两个x86也加载了。通过AppleIntelInfo.kext的日志看似乎HWP也是开启了。
  1. AppleIntelInfo.kext v2.5 Copyright © 2012-2017 Pike R. Alpha. All rights reserved.

  2. Settings:
  3. ------------------------------------------
  4. logMSRs..................................: 1
  5. logIGPU..................................: 0
  6. logCStates...............................: 1
  7. logIPGStyle..............................: 1

  8. Warning: Clover hw.busfrequency error detected : 17d78400
  9. InitialTSC...............................: 0xcf43e1f64aa (406 MHz)
  10. MWAIT C-States...........................: 1319200

  11. Processor Brandstring....................: Intel(R) Pentium(R) CPU G4500 @ 3.50GHz

  12. Processor Signature..................... : 0x506E3
  13. ------------------------------------------
  14. - Family............................... : 6
  15. - Stepping............................. : 3
  16. - Model................................ : 0x5E (94)

  17. Model Specific Registers (MSRs)
  18. ------------------------------------------

  19. MSR_CORE_THREAD_COUNT............(0x35)  : 0x0
  20. ------------------------------------------
  21. - Core Count........................... : 2
  22. - Thread Count......................... : 2

  23. MSR_PLATFORM_INFO................(0xCE)  : 0x80838F1012300
  24. ------------------------------------------
  25. - Maximum Non-Turbo Ratio.............. : 0x23 (3500 MHz)
  26. - Ratio Limit for Turbo Mode........... : 1 (programmable)
  27. - TDP Limit for Turbo Mode............. : 1 (programmable)
  28. - Low Power Mode Support............... : 0 (LMP not supported)
  29. - Number of ConfigTDP Levels........... : 0 (only base TDP level available)
  30. - Maximum Efficiency Ratio............. : 8
  31. - Minimum Operating Ratio.............. : 8

  32. MSR_PMG_CST_CONFIG_CONTROL.......(0xE2)  : 0x1E000006
  33. ------------------------------------------
  34. - I/O MWAIT Redirection Enable......... : 0 (not enabled)
  35. - CFG Lock............................. : 0 (MSR not locked)
  36. - C3 State Auto Demotion............... : 1 (enabled)
  37. - C1 State Auto Demotion............... : 1 (enabled)
  38. - C3 State Undemotion.................. : 1 (enabled)
  39. - C1 State Undemotion.................. : 1 (enabled)
  40. - Package C-State Auto Demotion........ : 0 (disabled/unsupported)
  41. - Package C-State Undemotion........... : 0 (disabled/unsupported)

  42. MSR_PMG_IO_CAPTURE_BASE..........(0xE4)  : 0x31814
  43. ------------------------------------------
  44. - LVL_2 Base Address................... : 0x1814
  45. - C-state Range........................ : 3 (C-States not included, I/O MWAIT redirection not enabled)

  46. IA32_MPERF.......................(0xE7)  : 0x577BAADD81
  47. IA32_APERF.......................(0xE8)  : 0x428FA37DB2

  48. MSR_FLEX_RATIO...................(0x194) : 0x0
  49. ------------------------------------------

  50. MSR_IA32_PERF_STATUS.............(0x198) : 0x25C200002300
  51. ------------------------------------------
  52. - Current Performance State Value...... : 0x2300 (3500 MHz)

  53. MSR_IA32_PERF_CONTROL............(0x199) : 0x2300
  54. ------------------------------------------
  55. - Target performance State Value....... : 0x2300 (3500 MHz)
  56. - Intel Dynamic Acceleration........... : 0 (IDA engaged)

  57. IA32_CLOCK_MODULATION............(0x19A) : 0x0

  58. IA32_THERM_INTERRUPT.............(0x19B) : 0x10
  59. ------------------------------------------
  60. - High-Temperature Interrupt Enable.... : 0 (disabled)
  61. - Low-Temperature Interrupt Enable..... : 0 (disabled)
  62. - PROCHOT# Interrupt Enable............ : 0 (disabled)
  63. - FORCEPR# Interrupt Enable............ : 0 (disabled)
  64. - Critical Temperature Interrupt Enable : 1 (enabled)
  65. - Threshold #1 Value................... : 0
  66. - Threshold #1 Interrupt Enable........ : 0 (disabled)
  67. - Threshold #2 Value................... : 0
  68. - Threshold #2 Interrupt Enable........ : 0 (disabled)
  69. - Power Limit Notification Enable...... : 0 (disabled)

  70. IA32_THERM_STATUS................(0x19C) : 0x88400000
  71. ------------------------------------------
  72. - Thermal Status....................... : 0
  73. - Thermal Log.......................... : 0
  74. - PROCHOT # or FORCEPR# event.......... : 0
  75. - PROCHOT # or FORCEPR# log............ : 0
  76. - Critical Temperature Status.......... : 0
  77. - Critical Temperature log............. : 0
  78. - Thermal Threshold #1 Status.......... : 0
  79. - Thermal Threshold #1 log............. : 0
  80. - Thermal Threshold #2 Status.......... : 0
  81. - Thermal Threshold #2 log............. : 0
  82. - Power Limitation Status.............. : 0
  83. - Power Limitation log................. : 0
  84. - Current Limit Status................. : 0
  85. - Current Limit log.................... : 0
  86. - Cross Domain Limit Status............ : 0
  87. - Cross Domain Limit log............... : 0
  88. - Digital Readout...................... : 64
  89. - Resolution in Degrees Celsius........ : 1
  90. - Reading Valid........................ : 1 (valid)

  91. MSR_THERM2_CTL...................(0x19D) : 0x0

  92. IA32_MISC_ENABLES................(0x1A0) : 0x850089
  93. ------------------------------------------
  94. - Fast-Strings......................... : 1 (enabled)
  95. - FOPCODE compatibility mode Enable.... : 0
  96. - Automatic Thermal Control Circuit.... : 1 (enabled)
  97. - Split-lock Disable................... : 0
  98. - Performance Monitoring............... : 1 (available)
  99. - Bus Lock On Cache Line Splits Disable : 0
  100. - Hardware prefetch Disable............ : 0
  101. - Processor Event Based Sampling....... : 0 (PEBS supported)
  102. - GV1/2 legacy Enable.................. : 0
  103. - Enhanced Intel SpeedStep Technology.. : 1 (enabled)
  104. - MONITOR FSM.......................... : 1 (MONITOR/MWAIT supported)
  105. - Adjacent sector prefetch Disable..... : 0
  106. - CFG Lock............................. : 0 (MSR not locked)
  107. - xTPR Message Disable................. : 1 (disabled)

  108. MSR_TEMPERATURE_TARGET...........(0x1A2) : 0x641400
  109. ------------------------------------------
  110. - Turbo Attenuation Units.............. : 0
  111. - Temperature Target................... : 100
  112. - TCC Activation Offset................ : 0

  113. MSR_MISC_PWR_MGMT................(0x1AA) : 0x401CC0
  114. ------------------------------------------
  115. - EIST Hardware Coordination........... : 0 (hardware coordination enabled)
  116. - Energy/Performance Bias support...... : 1
  117. - Energy/Performance Bias.............. : 0 (disabled/MSR not visible to software)
  118. - Thermal Interrupt Coordination Enable : 1 (thermal interrupt routed to all cores)

  119. MSR_TURBO_RATIO_LIMIT............(0x1AD) : 0x23232323
  120. ------------------------------------------
  121. - Maximum Ratio Limit for C01.......... : 23 (3500 MHz)
  122. - Maximum Ratio Limit for C02.......... : 23 (3500 MHz)

  123. IA32_ENERGY_PERF_BIAS............(0x1B0) : 0x0

  124. MSR_POWER_CTL....................(0x1FC) : 0x3C005F
  125. ------------------------------------------
  126. - Bi-Directional Processor Hot..........: 1 (enabled)
  127. - C1E Enable............................: 1 (enabled)

  128. MSR_RAPL_POWER_UNIT..............(0x606) : 0xA0E03
  129. ------------------------------------------
  130. - Power Units.......................... : 3 (1/8 Watt)
  131. - Energy Status Units.................. : 14 (61 micro-Joules)
  132. - Time Units .......................... : 10 (976.6 micro-Seconds)

  133. MSR_PKG_POWER_LIMIT..............(0x610) : 0x42FFF80015FFF8
  134. ------------------------------------------
  135. - Package Power Limit #1............... : 4095 Watt
  136. - Enable Power Limit #1................ : 1 (enabled)
  137. - Package Clamping Limitation #1....... : 1 (allow going below OS-requested P/T state during Time Window for Power Limit #1)
  138. - Time Window for Power Limit #1....... : 10 (2560 milli-Seconds)
  139. - Package Power Limit #2............... : 4095 Watt
  140. - Enable Power Limit #2................ : 1 (enabled)
  141. - Package Clamping Limitation #2....... : 0 (disabled)
  142. - Time Window for Power Limit #2....... : 33 (10 milli-Seconds)
  143. - Lock................................. : 0 (MSR not locked)

  144. MSR_PKG_ENERGY_STATUS............(0x611) : 0x162B0F08
  145. ------------------------------------------
  146. - Total Energy Consumed................ : 22700 Joules (Watt = Joules / seconds)

  147. MSR_CONFIG_TDP_NOMINAL...........(0x648) : 0x23
  148. MSR_CONFIG_TDP_LEVEL1............(0x649) : 0x0
  149. MSR_CONFIG_TDP_LEVEL2............(0x64a) : 0x0
  150. MSR_CONFIG_TDP_CONTROL...........(0x64b) : 0x80000000
  151. MSR_TURBO_ACTIVATION_RATIO.......(0x64c) : 0x0
  152. MSR_PKGC3_IRTL...................(0x60a) : 0x884E
  153. MSR_PKGC6_IRTL...................(0x60b) : 0x8876
  154. MSR_PKGC7_IRTL...................(0x60c) : 0x8894
  155. MSR_PKG_C2_RESIDENCY.............(0x60d) : 0x0
  156. MSR_PKG_C3_RESIDENCY.............(0x3f8) : 0x0
  157. MSR_PKG_C2_RESIDENCY.............(0x60d) : 0x0
  158. MSR_PKG_C3_RESIDENCY.............(0x3f8) : 0x0
  159. MSR_PKG_C6_RESIDENCY.............(0x3f9) : 0x0
  160. MSR_PKG_C7_RESIDENCY.............(0x3fa) : 0x0
  161. MSR_PKG_C8_RESIDENCY............(0x630) : 0x0
  162. MSR_PKG_C9_RESIDENCY............(0x631) : 0x0
  163. MSR_PKG_C10_RESIDENCY...........(0x632) : 0x0
  164. MSR_PKG_C8_LATENCY..............(0x633) : 0x0
  165. MSR_PKG_C9_LATENCY..............(0x634) : 0x0
  166. MSR_PKG_C10_LATENCY.............(0x635) : 0x0

  167. MSR_PLATFORM_ENERGY_COUNTER......(0x64D) : 0x0 (not supported by hardware/BIOS)

  168. MSR_PPERF........................(0x64E) : 0x3BF344B0B8
  169. ------------------------------------------
  170. - Hardware workload scalability........ : 257484435640

  171. MSR_CORE_PERF_LIMIT_REASONS......(0x64F) : 0x0
  172. HDC Supported

  173. IA32_PKG_HDC_CTL.................(0xDB0) : 0x1
  174. ------------------------------------------
  175. HDC Pkg Enable...................(0x652) : 1 (HDC allowed)

  176. IA32_PM_CTL1.....................(0xDB1) : 0x1
  177. ------------------------------------------
  178. HDC Allow Block..................(0xDB1) : 1 (HDC blocked)

  179. IA32_THREAD_STALL................(0xDB2) : 0x0

  180. MSR_PKG_HDC_CONFIG...............(0x652) : 0x2
  181. ------------------------------------------
  182. Pkg Cx Monitor ..................(0x652) : 2 (count package C3 and deeper)
  183. MSR_CORE_HDC_RESIDENCY...........(0x653) : 0x0

  184. MSR_PKG_HDC_SHALLOW_RESIDENCY....(0x655) : 0x0

  185. MSR_PKG_HDC_DEEP_RESIDENCY.......(0x656) : 0x0

  186. IA32_TSC_DEADLINE................(0x6E0) : 0xCF44056CACB
  187. MSR_PPERF........................(0x63E) : 0x1 (31)

  188. IA32_PM_ENABLE...................(0x770) : 0x1 (HWP Supported and Enabled)

  189. IA32_HWP_CAPABILITIES............(0x771) : 0x1082323
  190. -----------------------------------------
  191. - Highest Performance.................. : 35
  192. - Guaranteed Performance............... : 35
  193. - Most Efficient Performance........... : 8
  194. - Lowest Performance................... : 1

  195. IA32_HWP_INTERRUPT...............(0x773) : 0x0
  196. ------------------------------------------
  197. - Guaranteed Performance Change........ : 0 (Interrupt generation disabled)
  198. - Excursion Minimum.................... : 0 (Interrupt generation disabled)

  199. IA32_HWP_REQUEST................(0x774) : 0x20002301
  200. -----------------------------------------
  201. - Minimum Performance................. : 1
  202. - Maximum Performance................. : 35
  203. - Desired Performance................. : 0
  204. - Energy Efficient Performance........ : 32
  205. - Activity Window..................... : 0, 0
  206. - Package Control..................... : 0

  207. IA32_HWP_STATUS..................(0x777) : 0x0
  208. -----------------------------------------
  209. - Guaranteed Performance Change....... : 0 (has not occured)
  210. - Excursion To Minimum................ : 0 (has not occured)

  211. CPU Ratio Info:
  212. ------------------------------------------
  213. Base Clock Frequency (BLCK)............. : 100 MHz
  214. Maximum Efficiency Ratio/Frequency.......:  8 ( 800 MHz)
  215. Maximum non-Turbo Ratio/Frequency........: 35 (3500 MHz)
  216. Maximum Turbo Ratio/Frequency............: 35 (3500 MHz)
  217. P-State ratio * 100 = Frequency in MHz
  218. ------------------------------------------
  219. CPU P-States [ (8) 23 35 ]
  220. CPU P-States [ (8) 21 23 35 ]
  221. CPU P-States [ (8) 21 23 35 ]
  222. CPU P-States [ 8 (12) 21 23 35 ]
  223. CPU P-States [ 8 12 (16) 21 23 35 ]
  224. CPU P-States [ 8 12 16 (20) 21 23 35 ]
  225. CPU P-States [ 8 12 16 20 21 23 (32) 35 ]
复制代码
麻烦帮我看看是否还需要向楼主这样操作,谢谢。

Vanilla.

UID
4568967
帖子
13839
PB币
42
贡献
0
技术
94
活跃
2732

十一周年

发表于 2017-4-2 18:37:57 |显示全部楼层
tdyso 发表于 2017-4-2 18:31
用了你的有27个档位,还多了6个,需要关闭clover中HWP吗?

麻烦看看 X86 有正常载入咩?终端命令
  1. kextstat | grep X86
复制代码

Rank: 7Rank: 7Rank: 7

UID
590471
帖子
1357
PB币
1934
贡献
0
技术
127
活跃
1859
发表于 2017-4-2 18:41:14 |显示全部楼层
口袋妖怪heart 发表于 2017-4-2 18:37
麻烦看看 X86 有正常载入咩?终端命令

没有载入

Rank: 7Rank: 7Rank: 7

UID
4776985
帖子
2041
PB币
688
贡献
0
技术
0
活跃
1022
发表于 2017-4-2 18:43:39 |显示全部楼层
唉~~读书少,看不懂。。。。坐等现成的吧

Rank: 5Rank: 5Rank: 5

UID
14853
帖子
673
PB币
1818
贡献
0
技术
68
活跃
187
发表于 2017-4-2 18:44:53 |显示全部楼层
口袋妖怪heart 发表于 2017-4-2 18:37
麻烦看看 X86 有正常载入咩?终端命令

X17PlatformPlugin.kext 这个的使用条件是什么? macpro6,1 可以用么,cpu为i5 6500

Rank: 7Rank: 7Rank: 7

UID
522135
帖子
1979
PB币
1148
贡献
0
技术
0
活跃
1755
发表于 2017-4-2 18:57:40 |显示全部楼层
多谢楼主分享,有时间实验一下!!!

Rank: 5Rank: 5Rank: 5

UID
4638614
帖子
1034
PB币
266
贡献
0
技术
14
活跃
1561
发表于 2017-4-2 19:11:37 |显示全部楼层
开工试试,给力给力!!

Rank: 5Rank: 5Rank: 5

UID
728139
帖子
637
PB币
45
贡献
0
技术
6
活跃
261
发表于 2017-4-2 19:36:07 |显示全部楼层
不适合我的平台,不过还得支持一下!

Rank: 2Rank: 2

UID
978739
帖子
343
PB币
818
贡献
0
技术
0
活跃
471
发表于 2017-4-2 19:49:46 |显示全部楼层
天天在外国论坛看6代CPU的电源管理,今天终于等到你的中文版了。

Rank: 2Rank: 2

UID
4588211
帖子
142
PB币
196
贡献
0
技术
0
活跃
661
发表于 2017-4-2 20:14:01 |显示全部楼层
口袋妖怪heart 发表于 2017-4-2 18:12
所有 P-States 都有的话,应该是电源管理不完整的一种表现,事实上来说。

可以提示一下以HWP完善電源管理得條件有哪些?
以MBP13.3來說有什麼該修改的..
Pike的腳本對13.3只能降到800MHz

Rank: 2Rank: 2

UID
4110979
帖子
456
PB币
138
贡献
0
技术
0
活跃
520
发表于 2017-4-2 20:41:59 |显示全部楼层
谢谢楼主啊啊啊啊

Vanilla.

UID
4568967
帖子
13839
PB币
42
贡献
0
技术
94
活跃
2732

十一周年

发表于 2017-4-2 21:26:05 |显示全部楼层
tdyso 发表于 2017-4-2 18:41
没有载入

这样子的话说明 SSDT 应该没有正当载入,X86 自然不会载入。

Vanilla.

UID
4568967
帖子
13839
PB币
42
贡献
0
技术
94
活跃
2732

十一周年

发表于 2017-4-2 21:29:14 |显示全部楼层
minfox 发表于 2017-4-2 18:44
X17PlatformPlugin.kext 这个的使用条件是什么? macpro6,1 可以用么,cpu为i5 6500

X86 正常载入。
X17PlatformPlugin.kext 的作用是取代 X86PlatformPlugin.kext。

Rank: 7Rank: 7Rank: 7

UID
590471
帖子
1357
PB币
1934
贡献
0
技术
127
活跃
1859
发表于 2017-4-2 21:33:15 |显示全部楼层
641287677 发表于 2017-4-2 18:33
请问如何检测是否完整的开启了HWP所有功能呢?我现在只在Clover中勾选了HWPEnable和UseARTFrequency,以及设 ...

UseARTFrequency以及HWPValue怎么设置?从没见过此类帖子

Rank: 7Rank: 7Rank: 7

UID
590471
帖子
1357
PB币
1934
贡献
0
技术
127
活跃
1859
发表于 2017-4-2 21:34:02 |显示全部楼层
口袋妖怪heart 发表于 2017-4-2 21:29
X86 正常载入。
X17PlatformPlugin.kext 的作用是取代 X86PlatformPlugin.kext。

我没有SSDT的,只有SSDT-pr.aml,需要去找个SSDT吗?

Rank: 2Rank: 2

UID
4783706
帖子
155
PB币
0
贡献
0
技术
0
活跃
233
发表于 2017-4-2 21:47:34 |显示全部楼层
谢谢大神分享

Vanilla.

UID
4568967
帖子
13839
PB币
42
贡献
0
技术
94
活跃
2732

十一周年

发表于 2017-4-2 21:50:58 |显示全部楼层
tdyso 发表于 2017-4-2 21:34
我没有SSDT的,只有SSDT-pr.aml,需要去找个SSDT吗?

我觉得 SSDT-pr.aml 已经够了。

Rank: 5Rank: 5Rank: 5

UID
985276
帖子
806
PB币
1485
贡献
0
技术
19
活跃
722
发表于 2017-4-2 21:53:13 |显示全部楼层
mark, 看过大神的Insanelymac的帖子

Vanilla.

UID
4568967
帖子
13839
PB币
42
贡献
0
技术
94
活跃
2732

十一周年

发表于 2017-4-2 21:54:45 |显示全部楼层
soto2080 发表于 2017-4-2 20:14
可以提示一下以HWP完善電源管理得條件有哪些?
以MBP13.3來說有什麼該修改的..
Pike的腳本對13.3只能降到 ...

HWP 應該是在 FrequencyVectors 中啟用 (0x1) || 禁用 (0x0) 喔...
我覺得應該先嘗試默認的設定,如果不可以的話再嘗試修改囉。
至於修改的地方還是蠻多的啦,比如 LFM 什麼的,我猜可以用
  1. /usr/libexec/PlistBuddy -c "Print IOPlatformPowerProfile:FrequencyVectors:0" /System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/PlugIns/X86PlatformPlugin.kext/Contents/Resources/Mac-A5C67F76ED83108C.plist > ~/Desktop/MBP133_freqV0.bin && perl -pi -e 'chomp if eof' ~/Desktop/MBP133_freqV0.bin
复制代码
製作一份 raw data 於 桌面上,然後用 HexEdit 等程式開啟看看?
比如開頭的部分
  1. 02 00 00 00 0D 00 00 00 01 00 00 00 00 00 00 00 BC 02 00 00 00 00 00 00
复制代码
其中 0D (13) 意味著最低頻率為 1300 MHz,可以考慮降下去?(是的,Pike的 freqVectorsEdit.sh 就是修改這段)

另外,下面還有很多 Power Features ,同樣可以參見Pike的 freqVectorsEdit.sh (https://github.com/Piker-Alpha/freqVectorsEdit.sh/blob/master/freqVectorsEdit.sh#L806)
不過我一般可能只會去改動 EPP 喔,MBP133默認是 0x80 (128) ,為了更加節能我猜測可以改到 0xC0 (192) ?

當然囉,更多的還需要自行研究,這裡就只給一些hints啦。:-)

改好以後,記得替換掉原 Plist 下的 FrequencyVectors !
回顶部
Copyright (C) 2005-2019 pcbeta.com, All rights reserved
Powered by Discuz!  苏ICP备17027154号
请勿发布违反中华人民共和国法律法规的言论,会员观点不代表远景论坛官方立场。
远景在线 | 远景论坛 | 苹果论坛 | Win10论坛 | Win8论坛 | Win7论坛 | WP论坛 | Office论坛 | 电脑硬件 | 安卓软件