Contribute
Register

Quick Guide to Generate a SSDT for CPU Power Management

Joined
Mar 20, 2011
Messages
146
Motherboard
GA-Z370XP-SLI
CPU
i7-8700K
Graphics
RX 580
Mac
  1. MacBook Pro
Mobile Phone
  1. Android
So, I think is all right!

AppleIntelInfo.kext v1.2 Copyright © 2012-2015 Pike R. Alpha. All rights reserved


Settings:

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

logMSRs............................: 1

logIGPU............................: 0

logIntelRegs.......................: 1

logCStates.........................: 1

logIPGStyle........................: 1

InitialTSC.........................: 0xce6ca496d3

MWAIT C-States.....................: 270624


Model Specific Regiters

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

MSR_CORE_THREAD_COUNT......(0x35) : 0x40008

MSR_PLATFORM_INFO..........(0xCE) : 0x80838F3012800

MSR_PMG_CST_CONFIG_CONTROL.(0xE2) : 0x1E000404

MSR_PMG_IO_CAPTURE_BASE....(0xE4) : 0x21814

IA32_MPERF.................(0xE7) : 0x1BE1D305BA

IA32_APERF.................(0xE8) : 0x1D519F0EE7

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

MSR_IA32_PERF_STATUS.......(0x198) : 0x26F300002B00

MSR_IA32_PERF_CONTROL......(0x199) : 0x2C00

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

IA32_THERM_STATUS..........(0x19C) : 0x883E0000

IA32_MISC_ENABLES..........(0x1A0) : 0x850089

MSR_MISC_PWR_MGMT..........(0x1AA) : 0x1

MSR_TURBO_RATIO_LIMIT......(0x1AD) : 0x2A2B2C2C

IA32_ENERGY_PERF_BIAS......(0x1B0) : 0x1

MSR_POWER_CTL..............(0x1FC) : 0x4005F

MSR_RAPL_POWER_UNIT........(0x606) : 0xA0E03

MSR_PKG_POWER_LIMIT........(0x610) : 0xFFD00000EA82

MSR_PKG_ENERGY_STATUS......(0x611) : 0x4C43F7B

MSR_PKG_POWER_INFO.........(0x614) : 0x2C0

MSR_PP0_CURRENT_CONFIG.....(0x601) : 0x1F40

MSR_PP0_POWER_LIMIT........(0x638) : 0xFFD0

MSR_PP0_ENERGY_STATUS......(0x639) : 0x3241C73

MSR_PP0_POLICY.............(0x63a) : 0x0

MSR_CONFIG_TDP_NOMINAL.....(0x648) : 0x28

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) : 0x8842

MSR_PKGC6_IRTL.............(0x60b) : 0x8873

MSR_PKGC7_IRTL.............(0x60c) : 0x8891

MSR_PKG_C2_RESIDENCY.......(0x60d) : 0x7AF827CFE0

MSR_PKG_C3_RESIDENCY.......(0x3f8) : 0x0

MSR_PKG_C6_RESIDENCY.......(0x3f9) : 0x0

MSR_PKG_C7_RESIDENCY.......(0x3fa) : 0x0

IA32_TSC_DEADLINE..........(0x6E0) : 0xCE6F9EE909


CPU Ratio Info:

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

CPU Low Frequency Mode.............: 800 MHz

CPU Maximum non-Turbo Frequency....: 4000 MHz

CPU Maximum Turbo Frequency........: 4400 MHz

CPU P-States [ (8) 40 44 ]

CPU C3-Cores [ 0 1 6 7 ]

CPU C6-Cores [ 0 1 3 4 5 6 ]

CPU C7-Cores [ 0 1 2 3 5 6 7 ]

CPU P-States [ 8 (40) 42 44 ]

CPU C3-Cores [ 0 1 5 6 7 ]

CPU C6-Cores [ 0 1 2 3 4 5 6 ]

CPU C7-Cores [ 0 1 2 3 4 5 6 7 ]

CPU P-States [ 8 32 40 42 (43) 44 ]

CPU C3-Cores [ 0 1 2 4 5 6 7 ]

CPU C6-Cores [ 0 1 2 3 4 5 6 7 ]

CPU P-States [ 8 32 38 40 42 43 (44) ]

CPU C3-Cores [ 0 1 2 3 4 5 6 7 ]

CPU P-States [ (8) 32 37 38 40 42 43 44 ]

CPU P-States [ 8 32 36 37 38 (40) 42 43 44 ]

CPU P-States [ (8) 32 33 36 37 38 40 42 43 44 ]

CPU P-States [ (8) 29 32 33 36 37 38 40 42 43 44 ]


The frequences mathing with my processor description (i7 4790k)
 
Joined
Nov 30, 2011
Messages
117
Motherboard
Gigabyte H370M-D3H-Clover
CPU
i3-8350K
Graphics
RX 570, 1920x1080
Mobile Phone
  1. iOS
Working on the SSDT. Here is a copy of the original output,
CPU Ratio Info:
------------------------------------
CPU Low Frequency Mode.............: 1600 MHz
CPU Maximum non-Turbo Frequency....: 3100 MHz
CPU Maximum Turbo Frequency........: 3900 MHz
CPU P-States [ (16) 33 35 ]
CPU P-States [ 16 33 34 (35) ]
CPU P-States [ (16) 32 33 34 35 ]
CPU P-States [ (16) 31 32 33 34 35 ]
CPU P-States [ (16) 30 31 32 33 34 35 ]

When I ran the scripts, it shows this,
CPU Ratio Info:
------------------------------------
CPU Low Frequency Mode.............: 1600 MHz
CPU Maximum non-Turbo Frequency....: 3100 MHz
CPU Maximum Turbo Frequency........: 3900 MHz
CPU P-States [ (16) 31 ]
CPU C6-Cores [ 3 5 6 ]
CPU C6-Cores [ 2 3 4 5 6 ]
CPU C6-Cores [ 2 3 4 5 6 7 ]
CPU P-States [ (16) 30 31 ]
CPU P-States [ (16) 29 30 31 ]
CPU P-States [ (16) 27 29 30 31 ]
CPU P-States [ (16) 27 28 29 30 31 ]
CPU P-States [ (16) 26 27 28 29 30 31 ]
CPU P-States [ (16) 23 26 27 28 29 30 31 ]
CPU P-States [ (16) 23 24 26 27 28 29 30 31 ]
CPU P-States [ (16) 21 23 24 26 27 28 29 30 31 ]
CPU P-States [ (16) 19 21 23 24 26 27 28 29 30 31 ]
CPU P-States [ (16) 19 21 23 24 25 26 27 28 29 30 31 ]
CPU P-States [ 16 19 21 23 24 25 26 27 28 29 30 (31) 32 ]
CPU P-States [ (16) 19 21 22 23 24 25 26 27 28 29 30 31 32 ]

Any reason why I'm not going up to 3900?

When I run, sudo ~/ssdtPRGen.sh,

I see this,
Scope (_PR_) {222 bytes} with ACPI Processor declarations found in DSDT (ACPI 1.0 compliant)
Generating ssdt.dsl for a 'iMac13,2' with board-id [Mac-FC02E91DDD3FA6A4]
Ivy Bridge Core i7-3770S processor [0x306A9] setup [0x0704]
With a maximum TDP of 65 Watt, as specified by Intel
Number logical CPU's: 8 (Core Frequency: 3100 MHz)
Number of Turbo States: 8 (3200-3900 MHz)
Number of P-States: 24 (1600-3900 MHz)
Injected C-States for CPU0 (C1,C3,C6)
Injected C-States for CPU1 (C1,C2,C3)

Do I need to change something in the bios to get to 39?
Attached a copy of my bios...
 

Attachments

  • IMG_3778.JPG
    IMG_3778.JPG
    128.9 KB · Views: 191
Last edited:
Joined
Feb 10, 2012
Messages
381
Motherboard
GA-H170N
CPU
i7 6700
Graphics
GTX 950
Mac
  1. Mac Pro
Classic Mac
  1. Power Mac
  2. PowerBook
Mobile Phone
  1. Android
I can't do it. I download it manually but after i got that error (I have i7 6700 and smbios is imac 14.2)

Warning: 'cpu-type' may be set improperly (0x0705 instead of 0x0905)

- Clover users should read https://clover-wiki.zetam.org/Configuration/CPU#cpu_type

Error: board-id [Mac-27ADBB7B4CEE8E61] not supported by Skylake – check SMBIOS data / use the -target option
 
Last edited:
Joined
May 29, 2012
Messages
58
What do you mean? The MacPro6,1 is not Skylake.

Right know I have SMBIOS set up as iMac 17,1 and ran the script. Can the system be setup as MacPro 6,1 and run the script without issues? It's a Intel Core i7-6700K 4.0GHz Skylake.
 
Joined
Feb 10, 2015
Messages
3
Motherboard
Gigabyte Z97X-UD7 TH
CPU
i7 4790k
Graphics
EVGA gtx 750 ti FTW
Mac
  1. MacBook Pro
Classic Mac
Mobile Phone
  1. iOS
I have everything on my build working perfectly except power management I think. Intel power gadget shows that I am stuck at 4.4 ghz (i7 4790k) with just a few dips below. I followed the script to generate the ssdt and I have attached my results from that. It looks better than without the ssdt, but I do not think it is working properly. Any ideas?
 

Attachments

  • Screen Shot 2016-11-29 at 2.23.45 PM.png
    Screen Shot 2016-11-29 at 2.23.45 PM.png
    71.2 KB · Views: 300
  • Screen Shot 2016-11-29 at 2.26.40 PM.png
    Screen Shot 2016-11-29 at 2.26.40 PM.png
    88.6 KB · Views: 298
Joined
Nov 4, 2016
Messages
183
Motherboard
Asus X299 Prime Deluxe - Clover
CPU
i9-7900X
Graphics
GTX 1080 TI + Vega 56
I'm trying to run ssdtPRGen.sh for a Sandy Bridge-E processor i7-3960X. It says is support on page one, but I'm getting the following:

ssdtPRGen.sh v0.9 Copyright (c) 2011-2012 by † RevoGirl

v6.6 Copyright (c) 2013 by † Jeroen

v21.2 Copyright (c) 2013-2016 by Pike R. Alpha

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

Bugs > https://github.com/Piker-Alpha/ssdtPRGen.sh/issues <


System information: Mac OS X 10.12.1 (16B2657)

Brandstring: "Intel(R) Core(TM) i7-3960X CPU @ 3.30GHz"


Version: models.cfg v150 / Sandy Bridge.cfg v150



Warning: No ACPI Processor declarations found in DSDT!

Using assumed Scope (\_SB) {}



Error: Processor name(s) not found ...

Aborting ...

Done.
 
Joined
Nov 24, 2015
Messages
54
Motherboard
MSI Z170M Mortar
CPU
i7 6700K
Graphics
EVGA GTX 1080 FTW
Mac
  1. MacBook
Mobile Phone
  1. Android
I have to go with the others saying they don't see the point. I'm idling at lower clock than when I had my SSDT in clover. Granted, I feel like the idle should be a lot lower (6700k idling at 2.6GHz) but its better than with the SSDT where I was hovering between 4 and 4.5Ghz. I definitely feel like there should be more states below 26 if the low frequency mode is 800 MHz but what do I know...

CPU Ratio Info:

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

CPU Low Frequency Mode.............: 800 MHz

CPU Maximum non-Turbo Frequency....: 4000 MHz

CPU Maximum Turbo Frequency........: 4500 MHz

CPU P-States [ (26) 38 45 ]

CPU C3-Cores [ 0 2 4 5 ]

CPU C6-Cores [ 0 2 3 4 5 ]

CPU P-States [ (26) 38 40 45 ]

CPU C3-Cores [ 0 1 2 4 5 6 ]

CPU C6-Cores [ 0 1 2 3 4 5 ]

CPU P-States [ 26 (27) 38 40 45 ]

CPU C3-Cores [ 0 1 2 3 4 5 6 ]

CPU C6-Cores [ 0 1 2 3 4 5 6 ]
 
Top