Contribute
Register

SSDT generation script (Ivybridge PM)

Status
Not open for further replies.
Update

ssdtPRGen v5.5 is now available – the update is a two step process:

1) remove ~/ssdtPRGen.command
2) run ssdtPRGen.app (the one with the icon)

Change log

- Changed warnings to make them pop out in the on-screen log
- Now using the ACPI processor names of the running system
- Now supporting up to 256/0xff logical processors
- Command line argument for processor labels added

Usage

./ssdtPRGen.sh [max turbo frequency] [TDP] [CPU type] [ACPI Processor Name]

./ssdtPRGen.sh
./ssdtPRGen.sh 3600
./ssdtPRGen.sh 3600 70
./ssdtPRGen.sh 3600 70 1
./ssdtPRGen.sh 3600 70 1 CPU

./ssdtPRGen.sh [processor number] [max turbo frequency] [TDP] [CPU type] [ACPI Processor Name]

./ssdtPRGen.sh E5-1650

./ssdtPRGen.sh 'E3-1220 V2'
./ssdtPRGen.sh 'E3-1220 V2' 3600
./ssdtPRGen.sh 'E3-1220 V2' 3600 70
./ssdtPRGen.sh 'E3-1220 V2' 3600 70 1
./ssdtPRGen.sh 'E3-1220 V2' 3600 70 1 CPU

New Warning Type

Warning: Target CPU has 48 logical cores, the running system only 8
Now using 'CP' to extent the current range to 48...
You may want to check/verify the generated DSDT_PR.dsl​
 
sdtPRGen.sh v5.5 Copyright (c) 2013 by Pike R. Alpha
----------------------------------------------------------------
Generating SSDT_PR.dsl for a Macmini6,2 [Mac-F65AE981FFA204ED]
Ivy Bridge Core i7-3770 processor [0x0701] setup
With a maximum TDP of 77 Watt, as specified by Intel
Number logical CPU's: 8 (Core Frequency: 3400 MHz)
Number of Turbo States: 5 (3500-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)
Warning: Model identifier [Macmini6,2] is missing from: /S*/L*/CoreServices/PlatformSupport.plist


Intel ACPI Component Architecture
ASL Optimizing Compiler version 20130117-64 [Jan 19 2013]
Copyright (c) 2000 - 2013 Intel Corporation


ASL Input: /Users/philip/Desktop/SSDT_PR.dsl - 260 lines, 8327 bytes, 56 keywords
AML Output: /Users/philip/Desktop/SSDT_PR.aml - 1601 bytes, 27 named objects, 29 executable opcodes


Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 0 Optimizations

Is this normal? This model's identifier is actually there.
 
Fresh Mountain Lion install, working properly with i7 3770T modified values

Code:
~/ssdtPRGen.sh 4100 48

Code:
sdtPRGen.sh v5.5 Copyright (c) 2013 by Pike R. Alpha
----------------------------------------------------------------
Generating SSDT_PR.dsl for a Macmini6,2 [Mac-F65AE981FFA204ED]
Ivy Bridge Core i7-3770T processor [0x0701] setup
With a maximum TDP of 45 Watt, as specified by Intel
Override value: Max Turbo Frequency, now using: 4100 MHz!
Override value: Max TDP, now using: 48 Watt!
Number logical CPU's: 8 (Core Frequency: 2500 MHz)
Number of Turbo States: 16 (2600-4100 MHz)
Number of P-States: 26 (1600-4100 MHz)
Injected C-States for CPU0 (C1,C3,C6)
Injected C-States for CPU1 (C1,C2,C3)
Warning: Model identifier [Macmini6,2] is missing from: /S*/L*/CoreServices/PlatformSupport.plist

IASL not found. Creating target directory... 
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
Downloading iasl...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1132k  100 1132k    0     0   259k      0  0:00:04  0:00:04 --:--:--  298k
Done.

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20130117-64 [Jan 19 2013]
Copyright (c) 2000 - 2013 Intel Corporation

ASL Input:     /Users/gio/Desktop/SSDT_PR.dsl - 262 lines, 8482 bytes, 56 keywords
AML Output:    /Users/gio/Desktop/SSDT_PR.aml - 1620 bytes, 27 named objects, 29 executable opcodes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 0 Optimizations

Do you want to copy /Users/gio/Desktop/SSDT_PR.aml to /Extra/SSDT.aml? (y/n)?y
 
There is no "Macmini6,1" in that plist and that is why you get the warning.

Added
Code:
<string>Macmini6,2</string>

Code:
sdtPRGen.sh v5.5 Copyright (c) 2013 by Pike R. Alpha
----------------------------------------------------------------
Generating SSDT_PR.dsl for a Macmini6,2 [Mac-F65AE981FFA204ED]
Ivy Bridge Core i7-3770T processor [0x0701] setup
With a maximum TDP of 45 Watt, as specified by Intel
Override value: Max Turbo Frequency, now using: 4100 MHz!
Override value: Max TDP, now using: 48 Watt!
Number logical CPU's: 8 (Core Frequency: 2500 MHz)
Number of Turbo States: 16 (2600-4100 MHz)
Number of P-States: 26 (1600-4100 MHz)
Injected C-States for CPU0 (C1,C3,C6)
Injected C-States for CPU1 (C1,C2,C3)

Intel ACPI Component Architecture
ASL Optimizing Compiler version 20130117-64 [Jan 19 2013]
Copyright (c) 2000 - 2013 Intel Corporation

ASL Input:     /Users/gio/Desktop/SSDT_PR.dsl - 262 lines, 8482 bytes, 56 keywords
AML Output:    /Users/gio/Desktop/SSDT_PR.aml - 1620 bytes, 27 named objects, 29 executable opcodes

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 0 Optimizations

Do you want to copy /Users/gio/Desktop/SSDT_PR.aml to /Extra/SSDT.aml? (y/n)?

No more warnings
 

Attachments

  • PlatformSupport.plist.zip
    1.3 KB · Views: 210
There is no "Macmini6,1" in that plist and that is why you get the warning.

The problem is I'm not using Macmini6,1 definition:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>SMbiosdate</key>
    <string>10/23/12</string>
    <key>SMbiosvendor</key>
    <string>Apple Inc.</string>
    <key>SMbiosversion</key>
    <string>MM61.88Z.0106.B00.1208091121</string>
    <key>SMboardproduct</key>
    <string>Mac-F65AE981FFA204ED</string>
    <key>SMfamily</key>
    <string>Mac mini</string>
    <key>SMmanufacturer</key>
    <string>Apple Inc.</string>
    <key>SMproductname</key>
    <string>Macmini6,2</string>
    <key>SMserial</key>
    <string>C0xxxxxxxxxxxxx</string>
    <key>SMsystemversion</key>
    <string>1.0</string>
</dict>
</plist>

Strange, the board ID from my smbios.plist (Mac-F65AE981FFA204ED) is already inside PlatformSupport.plist, but the product name Macmini6,2 is not, and I haven't modified this file by hand so far. In your scripts this board ID points to Macmini6,2 and not to Macmini6,1:

Code:
[COLOR=#333333][FONT=Consolas]Mac-F65AE981FFA204ED[/FONT][/COLOR][COLOR=#333333][FONT=Consolas][B])[/B][/FONT][/COLOR]
            [COLOR=#008080]gSystemType[/COLOR][B]=[/B]1
            [COLOR=#008080]gMacModelIdentifier[/COLOR][B]=[/B][COLOR=#DD1144]"Macmini6,2"[/COLOR]
            [COLOR=#008080]gACST_CPU0[/COLOR][B]=[/B]13   [COLOR=#999988][I]# C1, C3 and C6[/I][/COLOR]
            [COLOR=#008080]gACST_CPU1[/COLOR][B]=[/B]7    [COLOR=#999988][I]# C1, C2 and C3[/I][/COLOR]
            ;;
 
ssdtPRGen v5.5 :

./ssdtPRGen.sh E5-1660 4500 130 1

For some reason, the script tries to make my CPU Ivybridge. In this situation the State is not raised, what is my mistake?
 

Attachments

  • 1.jpg
    1.jpg
    140.7 KB · Views: 423
@philip_petev,

Neither the Macmini6,1 nor the Macmini6,2 can be found in the plist. Not that it really matters, since this is just a warning.

@alexlov,

You are using a 1 as
bridge type override value
and thus it should change it to Ivy Bridge. The real problem is that it displayed "Sandy Bridge PM" when it ought to display "Ivy Bridge PM". This due to a script error. Should be fine in version 5.6 – available right now.

Thank you for reporting this bug!
 
Status
Not open for further replies.
Back
Top