Jump to content

Power management for Sandy/Ivy Bridge/Haswell CPUs


Pimentel
 Share

533 posts in this topic

Recommended Posts

  • 3 weeks later...
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MWAIT C-States.....................: 270624
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_CORE_THREAD_COUNT......(0x35)  : 0x40004
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PLATFORM_INFO..........(0xCE)  : 0x80838F3012200
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PMG_CST_CONFIG_CONTROL.(0xE2)  : 0x1E000005
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PMG_IO_CAPTURE_BASE....(0xE4)  : 0x21814
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: IA32_MPERF.................(0xE7)  : 0x88234B0CE8
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: IA32_APERF.................(0xE8)  : 0x836282F41F
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_FLEX_RATIO.............(0x194) : 0xE0000
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_IA32_PERF_STATUS.......(0x198) : 0x1F1100002400
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_IA32_PERF_CONTROL......(0x199) : 0x2400
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: IA32_CLOCK_MODULATION......(0x19A) : 0x0
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: IA32_THERM_STATUS..........(0x19C) : 0x883E0000
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: IA32_MISC_ENABLES..........(0x1A0) : 0x850089
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_MISC_PWR_MGMT..........(0x1AA) : 0x400001
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_TURBO_RATIO_LIMIT......(0x1AD) : 0x26262626
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: IA32_ENERGY_PERF_BIAS......(0x1B0) : 0x5
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_POWER_CTL..............(0x1FC) : 0x4005F
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_RAPL_POWER_UNIT........(0x606) : 0xA0E03
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PKG_POWER_LIMIT........(0x610) : 0x42FFF8001AFFF8
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PKG_ENERGY_STATUS......(0x611) : 0x4FCAB00
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PKGC3_IRTL.............(0x60a) : 0x8842
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PKGC6_IRTL.............(0x60b) : 0x8873
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PKGC7_IRTL.............(0x60c) : 0x8891
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PP0_CURRENT_CONFIG.....(0x601) : 0x10141400001FFF
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PP0_POWER_LIMIT........(0x638) : 0x0
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PP0_ENERGY_STATUS......(0x639) : 0x253F078
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PP0_POLICY.............(0x63a) : 0x0
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_CONFIG_TDP_NOMINAL.....(0x648) : 0x22
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_CONFIG_TDP_LEVEL1......(0x649) : 0x0
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_CONFIG_TDP_LEVEL2......(0x64a) : 0x0
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_CONFIG_TDP_CONTROL.....(0x64b) : 0x80000000
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_TURBO_ACTIVATION_RATIO.(0x64c) : 0x0
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PKG_C2_RESIDENCY.......(0x60d) : 0x1ABD6DA776E
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PKG_C3_RESIDENCY.......(0x3f8) : 0x772E656A63C
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PKG_C6_RESIDENCY.......(0x3f9) : 0x0
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: MSR_PKG_C7_RESIDENCY.......(0x3fa) : 0x0
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU Low Frequency Mode.............: 800 MHz
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU Maximum non-Turbo Frequency....: 3400 MHz
Apr 26 10:57:57 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU Maximum Turbo Frequency........: 3800 MHz
Apr 26 10:57:58 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU P-States [ (8) 28 36 ]
Apr 26 10:57:58 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU C3-Cores [ 0 1 3 ]
Apr 26 10:57:58 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU C6-Cores [ 0 1 3 ]
Apr 26 10:57:58 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU C7-Cores [ 0 1 3 ]
Apr 26 10:57:59 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU P-States [ (8) 20 28 36 ]
Apr 26 10:57:59 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU C6-Cores [ 0 1 2 3 ]
Apr 26 10:57:59 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU C7-Cores [ 0 1 2 3 ]
Apr 26 10:57:59 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU P-States [ 8 20 21 28 (34) 36 ]
Apr 26 10:57:59 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU C3-Cores [ 0 1 2 3 ]
Apr 26 10:58:00 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU P-States [ (8) 20 21 26 28 34 36 ]
Apr 26 10:58:00 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU P-States [ 8 20 21 23 26 28 (34) 36 ]
Apr 26 10:58:01 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU P-States [ (8) 19 20 21 23 26 28 34 36 ]
Apr 26 10:58:02 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU P-States [ 8 19 20 21 23 25 26 28 (34) 36 ]
Apr 26 10:58:04 Mac-Pro-de-Nico kernel[0]: AICPUPMI: CPU P-States [ (8) 19 20 21 23 24 25 26 28 34 36 ]

4670K, nothing is patched, no SSDT.

Link to comment
Share on other sites

I don't know where to start because i have a PM, not sure where to start therefore.

 

 

 

EDIT : with a SSDT :

Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MWAIT C-States.....................: 270624
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_CORE_THREAD_COUNT......(0x35)  : 0x40004
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PLATFORM_INFO..........(0xCE)  : 0x80838F3012200
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PMG_CST_CONFIG_CONTROL.(0xE2)  : 0x1E000005
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PMG_IO_CAPTURE_BASE....(0xE4)  : 0x21814
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: IA32_MPERF.................(0xE7)  : 0x228CCE4F6F
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: IA32_APERF.................(0xE8)  : 0x1B7B5C2E2C
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_FLEX_RATIO.............(0x194) : 0xE0000
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_IA32_PERF_STATUS.......(0x198) : 0x206300002600
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_IA32_PERF_CONTROL......(0x199) : 0x2600
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: IA32_CLOCK_MODULATION......(0x19A) : 0x0
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: IA32_THERM_STATUS..........(0x19C) : 0x88340000
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: IA32_MISC_ENABLES..........(0x1A0) : 0x850089
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_MISC_PWR_MGMT..........(0x1AA) : 0x400001
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_TURBO_RATIO_LIMIT......(0x1AD) : 0x26262626
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: IA32_ENERGY_PERF_BIAS......(0x1B0) : 0x5
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_POWER_CTL..............(0x1FC) : 0x4005F
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_RAPL_POWER_UNIT........(0x606) : 0xA0E03
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PKG_POWER_LIMIT........(0x610) : 0x42FFF8001AFFF8
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PKG_ENERGY_STATUS......(0x611) : 0x7E764A
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PKGC3_IRTL.............(0x60a) : 0x8842
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PKGC6_IRTL.............(0x60b) : 0x8873
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PKGC7_IRTL.............(0x60c) : 0x8891
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PP0_CURRENT_CONFIG.....(0x601) : 0x10141400001FFF
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PP0_POWER_LIMIT........(0x638) : 0x0
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PP0_ENERGY_STATUS......(0x639) : 0x479360
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PP0_POLICY.............(0x63a) : 0x0
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_CONFIG_TDP_NOMINAL.....(0x648) : 0x22
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_CONFIG_TDP_LEVEL1......(0x649) : 0x0
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_CONFIG_TDP_LEVEL2......(0x64a) : 0x0
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_CONFIG_TDP_CONTROL.....(0x64b) : 0x80000000
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_TURBO_ACTIVATION_RATIO.(0x64c) : 0x0
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PKG_C2_RESIDENCY.......(0x60d) : 0x155C9B4D72
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PKG_C3_RESIDENCY.......(0x3f8) : 0x2B85D85D6E
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PKG_C6_RESIDENCY.......(0x3f9) : 0x0
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: MSR_PKG_C7_RESIDENCY.......(0x3fa) : 0x0
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: CPU Low Frequency Mode.............: 800 MHz
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: CPU Maximum non-Turbo Frequency....: 3400 MHz
Apr 26 22:12:56 le-pc kernel[0]: AICPUPMI: CPU Maximum Turbo Frequency........: 3800 MHz
Apr 26 22:12:57 le-pc kernel[0]: AICPUPMI: CPU P-States [ (8) 27 38 ]
Apr 26 22:12:57 le-pc kernel[0]: AICPUPMI: CPU C3-Cores [ 0 1 ]
Apr 26 22:12:57 le-pc kernel[0]: AICPUPMI: CPU C6-Cores [ 0 3 ]
Apr 26 22:12:57 le-pc kernel[0]: AICPUPMI: CPU C7-Cores [ 1 3 ]
Apr 26 22:12:57 le-pc kernel[0]: AICPUPMI: CPU P-States [ (8) 18 27 38 ]
Apr 26 22:12:57 le-pc kernel[0]: AICPUPMI: CPU C3-Cores [ 0 1 2 ]
Apr 26 22:12:57 le-pc kernel[0]: AICPUPMI: CPU C7-Cores [ 1 2 3 ]
Apr 26 22:12:58 le-pc kernel[0]: AICPUPMI: CPU P-States [ (8) 18 20 27 38 ]
Apr 26 22:12:58 le-pc kernel[0]: AICPUPMI: CPU C7-Cores [ 0 1 2 3 ]
Apr 26 22:12:58 le-pc kernel[0]: AICPUPMI: CPU P-States [ 8 18 20 22 27 (34) 38 ]
Apr 26 22:12:59 le-pc kernel[0]: AICPUPMI: CPU C3-Cores [ 0 1 2 3 ]
Apr 26 22:12:59 le-pc kernel[0]: AICPUPMI: CPU P-States [ (8) 18 20 21 22 27 34 38 ]
Apr 26 22:13:00 le-pc kernel[0]: AICPUPMI: CPU P-States [ (8) 18 20 21 22 24 27 34 38 ]
Apr 26 22:13:01 le-pc kernel[0]: AICPUPMI: CPU P-States [ 8 18 19 20 21 22 24 27 (34) 38 ]
Apr 26 22:13:02 le-pc kernel[0]: AICPUPMI: CPU P-States [ (8) 18 19 20 21 22 24 26 27 34 38 ]
Apr 26 22:13:02 le-pc kernel[0]: AICPUPMI: CPU P-States [ (8) 11 18 19 20 21 22 24 26 27 34 38 ]

I will edit manually to add states like i've done a long time ago with my 3770K :)

 

 

And two GB scores ; the latest one with SSDT, the second one without. Score is the same :)

 

http://browser.primatelabs.com/user/11702

Link to comment
Share on other sites

About KernelPM no, because according to the clover wiki it is for locked MSR (and prevent the related KP) and it is unlock on my Asus board by an option in the UEFI BIOS. And about XCPM is it enabled automatically for my CPU (Haswell) but it is useful for Ivy Bridge however (according to RehabMan).

 

 

Tomorrow i will add entries in the generated SSDT for more states ; i will see if it still works like i've done in the past :)

Link to comment
Share on other sites

About KernelPM no, because according to the clover wiki it is for locked MSR (and prevent the related KP) and it is unlock on my Asus board by an option in the UEFI BIOS. And about XCPM is it enabled automatically for my CPU (Haswell) but it is useful for Ivy Bridge however (according to RehabMan).

 

What??

 

Read this: http://www.insanelymac.com/forum/topic/302376-guide-patching-the-kernel-for-haswell-cpus-xcpm-early-reboot/?p=2112510

 

You need use -xcpm for you Haswell CPU, this boot argument will not be enabled by yourself  :P

And -xcpm is not needed for IvyBridge CPUs: [GUIDE] Patching the kernel for Haswell CPUs, XCPM early reboot

Link to comment
Share on other sites

  • 3 weeks later...

XCPM is for early reboot ; my rig boots fine :)

 

 

 

Yes, but your states is not right, and without -xcpm your Power Management perhaps is not configured properly

 

XCPM is "newer" AICPUPM "target" for locked board cause the PM is relocated in XCPM.

 

What??  :blink:

Link to comment
Share on other sites

  • 2 weeks later...

Check your power management with IOReg, and post here.

 

ACPI_SMC_PlatformPlugin is not necessary be loaded for Haswell CPUs.

 

For AppleLPC read here: http://www.hackintoshosx.com/topic/22874-power-management-for-your-hackintosh/?p=118500

Do I just use IORegistryExplorer and go to File --> Save to save an ioreg?

 

One more question, what's AppleLPC for? Thanks.

Link to comment
Share on other sites

Interesting, everything is loaded now. I remember clearly that it's not loaded last night. Anyways, here's my ioreg. Thank you.

 

You have the native Power Management.

  • Like 1
Link to comment
Share on other sites

 

For you know if xcpm are working, search for XCPM in Console.

 

This is the result:

kernel[0] XCPM: registered
kernel[0] IOPPF: XCPM mode

Searching XCPM in console gets me nothing. What's going wrong?

Link to comment
Share on other sites

 Share

×
×
  • Create New...