Contribute
Register

macOS Native CPU/IGPU Power Management

iMac14 is not correct for Skylake, see Post #1/Settings
So I need to use 17,1? Could this also be why I’m have trouble with sleeping? I’m getting RTC alarm, I know it’s off topic but could this be? And can one simply just change to 17,1? Would this mess with my USB-SSDT?
 
Yes

Post #1 is clear, BIOS/Optimized Default only. After CPU PM is working, add OC.

Unlikely
How do u know if cpu pm is working? Also it says in post “likely sleep issues” is this usually the case?

EDIT:
I think I got it, here is my files:
Code:
Last login: Sat Jun 16 00:52:21 on console
brandens-iMac:~ branden$ sudo kextload /Users/branden/Desktop/AppleIntelInfo.kext
Password:
brandens-iMac:~ branden$ sudo cat /tmp/AppleIntelInfo.dat
AppleIntelInfo.kext v2.9 Copyright © 2012-2017 Pike R. Alpha. All rights reserved.
enableHWP................................: 0

Settings:
------------------------------------------
logMSRs..................................: 1
logIGPU..................................: 0
logCStates...............................: 1
logIPGStyle..............................: 1
InitialTSC...............................: 0x63eccde366 (12 MHz)
MWAIT C-States...........................: 1319200

Processor Brandstring....................: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz

Processor Signature..................... : 0x506E3
------------------------------------------
- Family............................... : 6
- Stepping............................. : 3
- Model................................ : 0x5E (94)

Model Specific Registers (MSRs)
------------------------------------------

MSR_IA32_PLATFORM_ID.............(0x17)  : 0x4000000000000
------------------------------------------
- Processor Flags...................... : 1

MSR_CORE_THREAD_COUNT............(0x35)  : 0x40004
------------------------------------------
- Core Count........................... : 4
- Thread Count......................... : 4

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

MSR_PMG_CST_CONFIG_CONTROL.......(0xE2)  : 0x0
------------------------------------------
- I/O MWAIT Redirection Enable......... : 0 (not enabled)
- CFG Lock............................. : 0 (MSR not locked)
- C3 State Auto Demotion............... : 0 (disabled/unsupported)
- C1 State Auto Demotion............... : 0 (disabled/unsupported)
- C3 State Undemotion.................. : 0 (disabled/unsupported)
- C1 State Undemotion.................. : 0 (disabled/unsupported)
- Package C-State Auto Demotion........ : 0 (disabled/unsupported)
- Package C-State Undemotion........... : 0 (disabled/unsupported)

MSR_PMG_IO_CAPTURE_BASE..........(0xE4)  : 0x0
- C-state Range........................ : 0 (C-States not included, I/O MWAIT redirection not enabled)

IA32_MPERF.......................(0xE7)  : 0x30BC89BE1C
IA32_APERF.......................(0xE8)  : 0x30717D4FE7

MSR_FLEX_RATIO...................(0x194) : 0xE0000

MSR_IA32_PERF_STATUS.............(0x198) : 0x267C00002700
------------------------------------------
- Current Performance State Value...... : 0x2700 (3900 MHz)

MSR_IA32_PERF_CONTROL............(0x199) : 0x2700
------------------------------------------
- Target performance State Value....... : 0x2700 (3900 MHz)
- Intel Dynamic Acceleration........... : 0 (IDA engaged)

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

IA32_THERM_INTERRUPT.............(0x19B) : 0x0

IA32_THERM_STATUS................(0x19C) : 0x88420000
------------------------------------------
- Thermal Status....................... : 0
- Thermal Log.......................... : 0
- PROCHOT # or FORCEPR# event.......... : 0
- PROCHOT # or FORCEPR# log............ : 0
- Critical Temperature Status.......... : 0
- Critical Temperature log............. : 0
- Thermal Threshold #1 Status.......... : 0
- Thermal Threshold #1 log............. : 0
- Thermal Threshold #2 Status.......... : 0
- Thermal Threshold #2 log............. : 0
- Power Limitation Status.............. : 0
- Power Limitation log................. : 0
- Current Limit Status................. : 0
- Current Limit log.................... : 0
- Cross Domain Limit Status............ : 0
- Cross Domain Limit log............... : 0
- Digital Readout...................... : 66
- Resolution in Degrees Celsius........ : 1
- Reading Valid........................ : 1 (valid)

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

IA32_MISC_ENABLES................(0x1A0) : 0x850089
------------------------------------------
- Fast-Strings......................... : 1 (enabled)
- FOPCODE compatibility mode Enable.... : 0
- Automatic Thermal Control Circuit.... : 1 (enabled)
- Split-lock Disable................... : 0
- Performance Monitoring............... : 1 (available)
- Bus Lock On Cache Line Splits Disable : 0
- Hardware prefetch Disable............ : 0
- Processor Event Based Sampling....... : 0 (PEBS supported)
- GV1/2 legacy Enable.................. : 0
- Enhanced Intel SpeedStep Technology.. : 1 (enabled)
- MONITOR FSM.......................... : 1 (MONITOR/MWAIT supported)
- Adjacent sector prefetch Disable..... : 0
- CFG Lock............................. : 0 (MSR not locked)
- xTPR Message Disable................. : 1 (disabled)

MSR_TEMPERATURE_TARGET...........(0x1A2) : 0x64140D
------------------------------------------
- Turbo Attenuation Units.............. : 13 (122.1 micro-Seconds)
- Temperature Target................... : 100
- TCC Activation Offset................ : 0

MSR_MISC_PWR_MGMT................(0x1AA) : 0x401CC1
------------------------------------------
- EIST Hardware Coordination........... : 1 (hardware coordination disabled)
- Energy/Performance Bias support...... : 1
- Energy/Performance Bias.............. : 0 (disabled/MSR not visible to software)
- Thermal Interrupt Coordination Enable : 1 (thermal interrupt routed to all cores)
- SpeedShift Technology Enable......... : 1 (enabled)
- SpeedShift Interrupt Coordination.... : 1 (enabled)
- SpeedShift Energy Efficient Perf..... : 1 (enabled)
- SpeedShift Technology Setup for HWP.. : Yes (setup for HWP)

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)

IA32_ENERGY_PERF_BIAS............(0x1B0) : 0x1
------------------------------------------
- Power Policy Preference...............: 1 (highest performance)

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

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

MSR_PKG_POWER_LIMIT..............(0x610) : 0x42FFFF001BFFFF
------------------------------------------
- Package Power Limit #1............... : 4095 Watt
- Enable Power Limit #1................ : 1 (enabled)
- Package Clamping Limitation #1....... : 1 (allow going below OS-requested P/T state during Time Window for Power Limit #1)
- Time Window for Power Limit #1....... : 13 (20480 milli-Seconds)
- Package Power Limit #2............... : 4095 Watt
- Enable Power Limit #2................ : 1 (enabled)
- Package Clamping Limitation #2....... : 0 (disabled)
- Time Window for Power Limit #2....... : 33 (10 milli-Seconds)
- Lock................................. : 0 (MSR not locked)

MSR_PKG_ENERGY_STATUS............(0x611) : 0x2DF6A64
------------------------------------------
- Total Energy Consumed................ : 2941 Joules (Watt = Joules / seconds)

MSR_PP0_POWER_LIMIT..............(0x638) : 0x0

MSR_PP0_ENERGY_STATUS............(0x639) : 0x1B5269D
------------------------------------------
- Total Energy Consumed................ : 1748 Joules (Watt = Joules / seconds)

MSR_PP0_POWER_LIMIT..............(0x638) : 0x0

MSR_PP0_ENERGY_STATUS............(0x639) : 0x1B5277E
------------------------------------------
- Total Energy Consumed................ : 1748 Joules (Watt = Joules / seconds)

MSR_CONFIG_TDP_NOMINAL...........(0x648) : 0x23
MSR_CONFIG_TDP_LEVEL1............(0x649) : 0x0
MSR_CONFIG_TDP_LEVEL2............(0x64a) : 0x0
MSR_CONFIG_TDP_CONTROL...........(0x64b) : 0x80000000
MSR_TURBO_ACTIVATION_RATIO.......(0x64c) : 0x0
MSR_PKGC3_IRTL...................(0x60a) : 0x0
MSR_PKGC6_IRTL...................(0x60b) : 0x0
MSR_PKGC7_IRTL...................(0x60c) : 0x0
MSR_PKG_C2_RESIDENCY.............(0x60d) : 0x0
MSR_PKG_C3_RESIDENCY.............(0x3f8) : 0x0
MSR_PKG_C2_RESIDENCY.............(0x60d) : 0x0
MSR_PKG_C6_RESIDENCY.............(0x3f9) : 0x0
MSR_PKG_C7_RESIDENCY.............(0x3fa) : 0x0
MSR_PKG_C8_RESIDENCY.............(0x630) : 0x0
MSR_PKG_C9_RESIDENCY.............(0x631) : 0x0
MSR_PKG_C10_RESIDENCY............(0x632) : 0x0
MSR_PKG_C8_LATENCY...............(0x633) : 0x0
MSR_PKG_C9_LATENCY...............(0x634) : 0x0
MSR_PKG_C10_LATENCY..............(0x635) : 0x0

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

MSR_PPERF........................(0x64E) : 0x2E37AF87BD
------------------------------------------
- Hardware workload scalability........ : 198502746045

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

IA32_PKG_HDC_CTL.................(0xDB0) : 0x0

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

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

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

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

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

IA32_TSC_DEADLINE................(0x6E0) : 0x63F7F794AF

IA32_PM_ENABLE...................(0x770) : 0x0 (HWP Supported but not, yet, enabled)

CPU Ratio Info:
------------------------------------------
Base Clock Frequency (BLCK)............. : 100 MHz
Maximum Efficiency Ratio/Frequency.......:  8 ( 800 MHz)
Maximum non-Turbo Ratio/Frequency........: 35 (3500 MHz)
Maximum Turbo Ratio/Frequency............: 39 (3900 MHz)
P-State ratio * 100 = Frequency in MHz
------------------------------------------
CPU P-States [ (8) 35 39 ]
CPU C6-Cores [ 0 2 3 ]
CPU P-States [ (8) 31 35 39 ]
CPU C6-Cores [ 0 1 2 3 ]
CPU P-States [ (8) 31 32 35 39 ]
CPU P-States [ 8 31 32 35 38 (39) ]
CPU P-States [ (8) 29 31 32 35 38 39 ]
CPU P-States [ (8) 29 30 31 32 35 38 39 ]
CPU P-States [ (8) 25 29 30 31 32 35 38 39 ]
CPU P-States [ (8) 25 26 29 30 31 32 35 38 39 ]
CPU P-States [ (8) 25 26 27 29 30 31 32 35 38 39 ]
CPU P-States [ (8) 25 26 27 28 29 30 31 32 35 38 39 ]
CPU P-States [ (8) 25 26 27 28 29 30 31 32 33 35 38 39 ]
CPU P-States [ 8 24 25 26 27 28 29 30 31 32 33 (35) 38 39 ]
CPU P-States [ 8 22 24 25 26 27 28 29 30 31 32 33 (35) 38 39 ]
CPU P-States [ (8) 22 24 25 26 27 28 29 30 31 32 33 35 36 38 39 ]
CPU P-States [ (8) 22 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 ]
CPU P-States [ (8) 19 22 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 ]
CPU P-States [ (8) 19 20 22 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 ]
CPU P-States [ 8 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 (39) ]
CPU P-States [ (8) 16 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 ]
CPU P-States [ 8 16 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 (39) ]
CPU P-States [ (8) 15 16 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 ]
brandens-iMac:~ branden$

also attached is my report files:
Also should I enable Turbo, and speed step in the bios now? I’m confused on this point
 

Attachments

  • debug_15457.zip
    1.8 MB · Views: 86
  • Screen Shot 2018-06-16 at 12.49.37 AM.png
    Screen Shot 2018-06-16 at 12.49.37 AM.png
    75.1 KB · Views: 110
  • AppleIntelInfo.config.plist
    2.3 KB · Views: 186
Last edited:
Yes

IPG shows your system is very busy, not idling. Idle, no CPU load, is 800 MHz.
PM is working.

I guess IPG is confusing because the frequency shows almost flat around 2900 when it's idling and doing nothing, I presume this is when (8) would be selected in AppleIntelInfo. IPG never shows the frequency at 800 MHz. This is why I've assumed power management wasn't working properly.

Anyway, if you say it's ok then that's good enough for me, thanks for your help :thumbup:
 
Last edited:
I guess IPG is confusing because the frequency shows almost flat around 2900 when it's idling and doing nothing
Asked and answered, see Post #691.
Activity Monitor shows what is running when you say it is idling.
 
Back
Top