Piker-Alpha / ssdtPRGen.sh

Script to generate a SSDT for Power Management
714 stars 154 forks source link

I7 3930K SSDT #35

Open fabio1971 opened 10 years ago

fabio1971 commented 10 years ago

Hello Pike I have a problem in creating the SSDT table for the CPU 3930K. I have this error


System information: Mac OS X 10.9.2 (13C64) Brandstring 'Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz' Scope (SB) {19318 bytes} with ACPI Processor declarations found in the DSDT (ACPI 1.0 compliant) Generating ssdt.dsl for a 'MacPro4,1' with board-id [Mac-F4238CC8] Sandy Bridge Core i7-3930K processor [0x206D7] setup [0x0a01] With a maximum TDP of 130 Watt, as specified by Intel Number logical CPU's: 12 (Core Frequency: 3200 MHz) Number of Turbo States: 6 (3300-3800 MHz) Number of P-States: 27 (1200-3800 MHz) Injected C-States for C000 (C1,C3,C6,C7) Warning: 'cpu-type' may be set improperly (0x0a01 instead of 0x0601)

Error: board-id [Mac-F4238CC8] not supported by Sandy Bridge – check SMBIOS data / use the -c option

Do you want to continue (y/n)? n Mac-Pro-di-Gabriele:~ gabriele$ -c -bash: -c: command not found Mac-Pro-di-Gabriele:~ gabriele$

Advice Thanks

Piker-Alpha commented 10 years ago

Hi,

Your model identifier (MacPro4,1) and board-id (Mac-F4238CC8) do not match. The latter is for a 2007 iMac and that model is not supported by ssdtPRGen.sh What you should have done is run: ./ssdtPRGen.sh -h

That would have helped you to find this:

./ssdtPRGen.sh -s 'Sandy Bridge' ./ssdtPRGen.sh -s 'Ivy Bridge' ./ssdtPRGen.sh -s Haswell

Use the data in combination with the -b and -m arguments. Pick the combination that matches your hardware/CPU, the most.

fabio1971 commented 10 years ago

Hello Pike
I tried to do it I get the error where wrong:

./ssdtPRGen.sh -s 'Sandy Bridge' Supported board-id / model combinations:

Mac-942B5BF58194151B / iMac12,1 
Mac-942B59F58194171B / iMac12,2 
Mac-8ED6AF5B48C039E1 / Macmini5,1
 Mac-4BC72D62AD45599E / Macmini5,2 
Mac-7BA5B2794B2CDB12 / Macmini5,3 
Mac-94245B3640C91C81 / MacBookPro8,1
 Mac-94245A3940C91C80 / MacBookPro8,2 
Mac-942459F5819B171B / MacBookPro8,3
 Mac-C08A6BB70A942AC2 / MacBookAir4,1 
Mac-742912EFDBEE19B3 / MacBookAir4,2

./ssdtPRGen.sh -b 'Sandy Bridge'

Error: Invalid argument detected: -b Sandy Bridge
Aborting ...
Done

./ssdtPRGen.sh -m 'Sandy Bridge

Error: Invalid argument detected: -m Sandy Bridge 
Aborting … 
Done


Advice 
Thanks

Piker-Alpha commented 10 years ago

Use -b to specify a board-id i.e. Mac-7BA5B2794B2CDB12 Use -m to specify a model i.e. Macmini5,3

./ssdtPRGen.sh -b Mac-7BA5B2794B2CDB12 -m Macmini5,3

fabio1971 commented 10 years ago

Hello Pike

Ok, SSDT table created.

./ssdtPRGen.sh -b Mac-7BA5B2794B2CDB12 -m Macmini5,3

Override value: (-b) board-id, now using: Mac-7BA5B2794B2CDB12! Override value: (-m) model, now using: Macmini5,3!

System information: Mac OS X 10.9.2 (13C64) Brandstring 'Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz'

Scope (SB) {19318 bytes} with ACPI Processor declarations found in the DSDT (ACPI 1.0 compliant) Generating ssdt.dsl for a 'Macmini5,3' with board-id [Mac-7BA5B2794B2CDB12] Sandy Bridge Core i7-3930K processor [0x206D7] setup [0x0703] With a maximum TDP of 130 Watt, as specified by Intel Number logical CPU's: 12 (Core Frequency: 3200 MHz) Number of Turbo States: 6 (3300-3800 MHz) Number of P-States: 27 (1200-3800 MHz) Injected C-States for C000 (C1,C3,C6) Warning: 'cpu-type' may be set improperly (0x0703 instead of 0x0603)

Question but having as cpu I7 3930K as a model of Mac Pro using SMBIOS 6.1 or should I use Macmini5, 3

Advice Thanks

Piker-Alpha commented 10 years ago

It depends on what you want, and all I did was to give you an example to workaround the error. Now it is your turn so start experimenting with whatever arguments you want/need. Don't forget. I myself don't have a i7-3930K and thus... I cannot really be of help here.

fabio1971 commented 10 years ago

If I try to give this command I get the error, perhaps because it is not an Ivy Bridge

./ssdtPRGen.sh -b Mac-F60DEB81FF30ACF6 -m MacPro6,1

Override value: (-b) board-id, now using: Mac-F60DEB81FF30ACF6! Override value: (-m) model, now using: MacPro6,1!

System information: Mac OS X 10.9.2 (13C64) Brandstring 'Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz'

Scope (SB) {19318 bytes} with ACPI Processor declarations found in the DSDT (ACPI 1.0 compliant) Generating ssdt.dsl for a 'MacPro6,1' with board-id [Mac-F60DEB81FF30ACF6] Sandy Bridge Core i7-3930K processor [0x206D7] setup [0x0703] With a maximum TDP of 130 Watt, as specified by Intel Number logical CPU's: 12 (Core Frequency: 3200 MHz) Number of Turbo States: 6 (3300-3800 MHz) Number of P-States: 27 (1200-3800 MHz) Injected C-States for C000 (C1,C3,C6,C7) Warning: 'cpu-type' may be set improperly (0x0703 instead of 0x0a03)

Error: board-id [Mac-F60DEB81FF30ACF6] not supported by Sandy Bridge – check SMBIOS data / use the -c option

Do you want to continue (y/n)? n

Advice Thanks

Piker-Alpha commented 10 years ago

Please. I first told you to use:

./ssdtPRGen.sh -s 'Sandy Bridge' /ssdtPRGen.sh -s 'Ivy Bridge' ./ssdtPRGen.sh -s Haswell

To get the supported board-ids and model names. Then I gave you an example:

Use -b to specify a board-id i.e. Mac-7BA5B2794B2CDB12 Use -m to specify a model i.e. Macmini5,3

To get by the error, and now you basically ask the same question. Think about it. Do you see board-id: Mac-F60DEB81FF30ACF6 in the list of supported Sandy Bridge board-id/model ids? No, then don't use it!

fabio1971 commented 10 years ago

Hello Pike It was what I wanted to understand. Question in my case does not serve "plugin-type" one Thanks

Piker-Alpha commented 10 years ago

Look. It is really simple. The script even gave you a hint about what argument to use;

Error: board-id [Mac-F60DEB81FF30ACF6] not supported by Sandy Bridge – check SMBIOS data / use the -c option

So if your board-id and model combo is correctly setup now, then use -c 1 as override value. Remember this: You need this argument, simply because you have a Sandy Bridge (E) processor. You only need the -b and -m arguments when your SMBIOS is setup differently. Which was the case previously.

fabio1971 commented 10 years ago

Hello Pike So if I understand, but I'm wrong again Mac-Pro-di-Gabriele:~ gabriele$ ./ssdtPRGen.sh -b Mac-7BA5B2794B2CDB12 -m Macmini5,3 -c 1

This script must be run as root! ssdtPRGen.sh v0.9 Copyright (c) 2011-2012 by † RevoGirl v6.6 Copyright (c) 2013 by † Jeroen

v13.5 Copyright (c) 2013-2014 by Pike R. Alpha

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

Override value: (-b) board-id, now using: Mac-7BA5B2794B2CDB12! Override value: (-m) model, now using: Macmini5,3! Override value: (-c) CPU type, now using: Ivy Bridge!

System information: Mac OS X 10.9.2 (13C64) Brandstring 'Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz'

Scope (SB) {19318 bytes} with ACPI Processor declarations found in the DSDT (ACPI 1.0 compliant) Generating ssdt.dsl for a 'Macmini5,3' with board-id [Mac-7BA5B2794B2CDB12] Ivy Bridge Core i7-3930K processor [0x206D7] setup [0x0703] With a maximum TDP of 130 Watt, as specified by Intel Number logical CPU's: 12 (Core Frequency: 3200 MHz) Number of Turbo States: 6 (3300-3800 MHz) Number of P-States: 27 (1200-3800 MHz) Injected C-States for C000 (C1,C3,C6,C7) Injected C-States for C001 (C1,C2,C3)

Error: board-id [Mac-7BA5B2794B2CDB12] not supported by Ivy Bridge – check SMBIOS data / use the -c option

Do you want to continue (y/n)?

Advice Thanks

Piker-Alpha commented 10 years ago

In case you need the plugin-type property set, then use a Ivy Bridge or Haswell board-id/model combination in your SMBIOS. Not that of a Sandy Bridge based board-id/model combination.

Set SMBIOS to target board-id/model combination, or use the override arguments -b and -m You can check for supported combinations by using the -s argument (see -h for help).

fabio1971 commented 10 years ago

So okay Pike Mac-Pro-di-Gabriele:~ gabriele$ ./ssdtPRGen.sh -b Mac-7BA5B2794B2CDB12 -m Macmini5,3 -c 2

This script must be run as root! Password:

ssdtPRGen.sh v0.9 Copyright (c) 2011-2012 by † RevoGirl v6.6 Copyright (c) 2013 by † Jeroen

v13.5 Copyright (c) 2013-2014 by Pike R. Alpha

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

Override value: (-b) board-id, now using: Mac-7BA5B2794B2CDB12! Override value: (-m) model, now using: Macmini5,3! Override value: (-c) CPU type, now using: Haswell!

System information: Mac OS X 10.9.3 (13D65) Brandstring 'Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz'

Scope (SB) {19290 bytes} with ACPI Processor declarations found in the DSDT (ACPI 1.0 compliant) Generating ssdt.dsl for a 'Macmini5,3' with board-id [Mac-7BA5B2794B2CDB12] Haswell Core i7-3930K processor [0x206D7] setup [0x0402] With a maximum TDP of 130 Watt, as specified by Intel Number logical CPU's: 12 (Core Frequency: 3200 MHz) Number of Turbo States: 6 (3300-3800 MHz) Number of P-States: 27 (1200-3800 MHz) Injected C-States for C000 (C1,C3,C6,C7) Injected C-States for C001 (C1,C2,C3) Warning: 'system-type' may be set improperly (1 instead of 2)

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

ASL Input: /Users/gabriele/Desktop/ssdt.dsl - 374 lines, 10789 bytes, 95 keywords AML Output: /Users/gabriele/Desktop/ssdt.aml - 2474 bytes, 40 named objects, 55 executable opcodes

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

Do you want to copy /Users/gabriele/Desktop/ssdt.aml to /Extra/ssdt.aml? (y/n)? n Do you want to open ssdt.dsl (y/n)? n

Thanks

fabio1971 commented 10 years ago

Hello Pike Can you confirm that the generated table is fine for I7 3930K Thanks

Piker-Alpha commented 10 years ago

Sorry. What table? Did you e-mail me yours?

fabio1971 commented 10 years ago

Hello Pike can you give me your email Thanks