Jump to content
2 posts in this topic

Recommended Posts

Activate SpeedStep on OSX using the DSDT.

The following example will show you to insert code for a CPU Q6600.

 

Scope (_PR)
( 
Processor (CPU0, 0x00, 0x00000410, 0x06) 
( 
Name (_CST, Package (0x04) 
/ / Method C-Statement of the CPU 
( 
0x02, Package (0x04) 
( 
), 
ResourceTemplate () 
( 
), 
Register (FFixedHW, 0x00, / / Bit Width 0x00, / / Bit Offset 0x0000000000000000, / / Address,) 
One, 0x14, 0x03E8 
Package (0x04) 
( 
ResourceTemplate () 
( 
Register (SystemI, 
( 
ResourceTemplate () 
), 
0x08, / / Bit Width 0x00, / / Bit Offset 0x0000000000000414, / / Address,) 
0x02, 0x28, 0x02EE 
), Package (0x04) 
( 
), 
Register (SystemI, 0x08, / / Bit Width 0x00, / / Bit Offset 0x0000000000000415, / / Address,) 
0x03, 0x3C, 0x01F4 
) Name (_PCT, Package (0x02) 
ResourceTemplate () 
)) ( 
( 
Register (FFixedHW, 0x00, / / Bit Width 0x00, / / Bit Offset 0x0000000000000000, / / Address,) 
), ResourceTemplate () 
( 
) 
Register (FFixedHW, 0x00, / / Bit Width 0x00, / / Bit Offset 0x0000000000000000, / / Address,) 
)) Name (_PSS, Package (0x05) / / The different P-States 
( 
Package (0x06) 
( 
0x0A6B, / / speed 0x00015BA8, / / Voltage 0xA0, / / Transition (latency) 0x0A, / / Busmaster (latency) 0x0A27, / / Control 0x0A27 / / Status 
), Package (0x06) 
( 
0x0960, 0x00013498, 0xA0, 0x0A, 0x0924, 0x0924 
), Package (0x06) 
( 
0x0855, 0x00011558, 0xA0, 0x0A, 0x0821, 0x0821 
), Package (0x06) 
( 
), 
0x074B, 0xF618, 0xA0, 0x0A, 0x071E, 0x071E 
Package (0x06) 
( 
0x0640, 0xD6D8, 0xA0, 0x0A, 0x061B, 
( 
Package (0x06) 
0x061B Method (_PPC, 0, NotSerialized) 
)) () 
) Return (Zero) 
This is repeated 3 times because we have 4 Cores 
)

 

An example of the P-States

 

 
Name (_PSS, Package (0x04) / / this indicates that we will use 4 P-states 
( 
0x0BB5, 0xFDE8, 0x0A, 0x0A, 0x0920, 0x0922 
), Package (0x06) 
( 
0x0A68, 0xD6D8, 0x0A, 0x0A, 0x081E, 0x0820 
), Package (0x06) 
( 
0x091B, 0xAFC8, 0x0A, 0x0A, 0x071A, 0x071C 
), Package (0x06) 
( 
0x07CE, 0x8CA0, 0x0A, 0x0A, 0x0616, 0x0618 
) Method (_PPC, 0, NotSerialized) 
Return (Zero) 
)

Then I present the code for an Ami Bios motherboard

 
External (PDC0) External (CFGD) 
Scope (_PR) 
( 
Processor (P001, 0x01, 0x00000810, 0x06) 
)) () 
( 
Method (_CST, 0, NotSerialized) 
( 
If (Land (And (CFGD, 0x01000000), lnot (And (PDC0, 0x10 
( 
)))) Return (Package (0x02) 
( 
0x01, Package (0x04) 
( 
0x02, Package (0x04) 
( 
ResourceTemplate () 
( 
), 
ResourceTemplate () 
( 
ResourceTemplate () 
( 
), 
Register (FFixedHW, 0x00, / / Bit Width 0x00, / / Bit Offset 0x0000000000000000, / / Address,) 
0x01, 0x9D, 0x03E8 
) If (And (PDC0, 0x0300)) 
) ( 
) 
)) 
If (And (CFGD, 0x20)) 
( 
) 
Return (Package (0x03) 
( 
)) 
0x02, Package (0x04) 
( 
ResourceTemplate () 
( 
), 
Register (FFixedHW, 0x01, / / Bit Width 0x02, / / Bit Offset 0x0000000000000000, / / Address,) 
0x01, 0x01, 0x03E8 
), Package (0x04) 
( 
) 
ResourceTemplate () 
( 
), 
Register (FFixedHW, 0x01, / / Bit Width 0x02, / / Bit Offset 0x0000000000000000, / / Address,) 
( 
), 
Register (FFixedHW, 0x01, / / Bit Width 0x02, / / Bit Offset 0x0000000000000010, / / Address,) 
0x02, 0x01, 0x01F4 
If (And (CFGD, 0x20)) 
( 
Return (Package (0x03) 
0x01, 0x01, 0x03E8 
Package (0x04) 
( 
Register (SystemI, 0x08, / / Bit Width 0x00, / / Bit Offset 0x000000000000000C, / / Address 
) 
( 
) 
ResourceTemplate () 
( 
), 
Register (FFixedHW, 0x01, / / Bit Width 0x02, / / Bit Offset 0x0000000000000000, / / Address,) 
), 
0x02, 0x01, 0x01F4 
) Return (Package (0x02) 
) ( 
)) 
)) 
0x01, Package (0x04) 
0x01, 0x01, 0x03E8 
,) 
)

×
×
  • Create New...