1 /*-----------------------------------------------------------------------------
2 -------------------------------------------------------------------------------
5 Intel Platform Processor Power Management BIOS Reference Code
7 Copyright (c) 2007 - 2014, Intel Corporation
9 This program and the accompanying materials are licensed and made available under
10 the terms and conditions of the BSD License that accompanies this distribution.
11 The full text of the license may be found at
12 http://opensource.org/licenses/bsd-license.php.
14 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 Revision: Refer to Readme
24 --------------------------------------------------------------------------------
25 -------------------------------------------------------------------------------
27 This Processor Power Management BIOS Source Code is furnished under license
28 and may only be used or copied in accordance with the terms of the license.
29 The information in this document is furnished for informational use only, is
30 subject to change without notice, and should not be construed as a commitment
31 by Intel Corporation. Intel Corporation assumes no responsibility or liability
32 for any errors or inaccuracies that may appear in this document or any
33 software that may be provided in association with this document.
35 Except as permitted by such license, no part of this document may be
36 reproduced, stored in a retrieval system, or transmitted in any form or by
37 any means without the express written consent of Intel Corporation.
39 WARNING: You are authorized and licensed to install and use this BIOS code
40 ONLY on an IST PC. This utility may damage any system that does not
41 meet these requirements.
43 An IST PC is a computer which
44 (1) Is capable of seamlessly and automatically transitioning among
45 multiple performance states (potentially operating at different
46 efficiency ratings) based upon power source changes, END user
47 preference, processor performance demand, and thermal conditions; and
48 (2) Includes an Intel Pentium II processors, Intel Pentium III
49 processor, Mobile Intel Pentium III Processor-M, Mobile Intel Pentium 4
50 Processor-M, Intel Pentium M Processor, or any other future Intel
51 processors that incorporates the capability to transition between
52 different performance states by altering some, or any combination of,
53 the following processor attributes: core voltage, core frequency, bus
54 frequency, number of processor cores available, or any other attribute
55 that changes the efficiency (instructions/unit time-power) at which the
58 -------------------------------------------------------------------------------
59 -------------------------------------------------------------------------------
62 (1) <TODO> - IF the trap range and port definitions do not match those
63 specified by this reference code, this file must be modified IAW the
64 individual implmentation.
66 --------------------------------------------------------------------------------
67 ------------------------------------------------------------------------------*/
79 External(\_PR.CPU1, DeviceObj)
80 External(\_PR.CPU2, DeviceObj)
81 External(\_PR.CPU3, DeviceObj)
82 External(\_PR.CPU0._PTC)
83 External(\_PR.CPU0._TSS)
90 Name(_TPC, 0) // All T-States are available
93 // T-State Control/Status interface
97 Return(\_PR.CPU0._PTC)
102 Return(\_PR.CPU0._TSS)
106 // T-State Dependency
111 // IF four cores are supported/enabled && !(direct access to MSR)
112 // Report 4 processors and SW_ANY as the coordination
113 // IF two cores are supported/enabled && !(direct access to MSR)
114 // Report 2 processors and SW_ANY as the coordination type
116 // Report 1 processor and SW_ALL as the coordination type (domain 1)
118 // CFGD[23] = Four cores enabled
119 // CFGD[24] = Two or more cores enabled
120 // PDCx[2] = OSPM is capable of direct access to On
121 // Demand throttling MSR
124 If(LNot(And(PDC0,4)))
126 Return(Package(){ // SW_ANY
131 0xFD, // Coord Type- SW_ANY
132 MPEN // # processors.
136 Return(Package(){ // SW_ALL
141 0xFC, // Coord Type- SW_ALL
150 Name(_TPC, 0) // All T-States are available
153 // T-State Control/Status interface
157 Return(\_PR.CPU0._PTC)
162 Return(\_PR.CPU0._TSS)
166 // T-State Dependency
171 // IF four cores are supported/enabled && !(direct access to MSR)
172 // Report 4 processors and SW_ANY as the coordination
173 // IF two cores are supported/enabled && !(direct access to MSR)
174 // Report 2 processors and SW_ANY as the coordination type
176 // Report 1 processor and SW_ALL as the coordination type (domain 1)
178 // CFGD[23] = Four cores enabled
179 // CFGD[24] = Two or more cores enabled
180 // PDCx[2] = OSPM is capable of direct access to On
181 // Demand throttling MSR
184 If(LNot(And(PDC0,4)))
186 Return(Package(){ // SW_ANY
191 0xFD, // Coord Type- SW_ANY
192 MPEN // # processors.
196 Return(Package(){ // SW_ALL
201 0xFC, // Coord Type- SW_ALL
210 Name(_TPC, 0) // All T-States are available
213 // T-State Control/Status interface
217 Return(\_PR.CPU0._PTC)
222 Return(\_PR.CPU0._TSS)
226 // T-State Dependency
231 // IF four cores are supported/enabled && !(direct access to MSR)
232 // Report 4 processors and SW_ANY as the coordination
233 // IF two cores are supported/enabled && !(direct access to MSR)
234 // Report 2 processors and SW_ANY as the coordination type
236 // Report 1 processor and SW_ALL as the coordination type (domain 1)
238 // CFGD[23] = Four cores enabled
239 // CFGD[24] = Two or more cores enabled
240 // PDCx[2] = OSPM is capable of direct access to On
241 // Demand throttling MSR
244 If(LNot(And(PDC0,4)))
246 Return(Package(){ // SW_ANY
251 0xFD, // Coord Type- SW_ANY
252 MPEN // # processors.
256 Return(Package(){ // SW_ALL
261 0xFC, // Coord Type- SW_ALL
267 } // End of Definition Block