1 /*-----------------------------------------------------------------------------
2 -------------------------------------------------------------------------------
5 Intel Platform Processor Power Management BIOS Reference Code
7 Copyright (c) 2007 - 2014, Intel Corporation
9 SPDX-License-Identifier: BSD-2-Clause-Patent
14 Revision: Refer to Readme
18 --------------------------------------------------------------------------------
19 -------------------------------------------------------------------------------
21 This Processor Power Management BIOS Source Code is furnished under license
22 and may only be used or copied in accordance with the terms of the license.
23 The information in this document is furnished for informational use only, is
24 subject to change without notice, and should not be construed as a commitment
25 by Intel Corporation. Intel Corporation assumes no responsibility or liability
26 for any errors or inaccuracies that may appear in this document or any
27 software that may be provided in association with this document.
29 Except as permitted by such license, no part of this document may be
30 reproduced, stored in a retrieval system, or transmitted in any form or by
31 any means without the express written consent of Intel Corporation.
33 WARNING: You are authorized and licensed to install and use this BIOS code
34 ONLY on an IST PC. This utility may damage any system that does not
35 meet these requirements.
37 An IST PC is a computer which
38 (1) Is capable of seamlessly and automatically transitioning among
39 multiple performance states (potentially operating at different
40 efficiency ratings) based upon power source changes, END user
41 preference, processor performance demand, and thermal conditions; and
42 (2) Includes an Intel Pentium II processors, Intel Pentium III
43 processor, Mobile Intel Pentium III Processor-M, Mobile Intel Pentium 4
44 Processor-M, Intel Pentium M Processor, or any other future Intel
45 processors that incorporates the capability to transition between
46 different performance states by altering some, or any combination of,
47 the following processor attributes: core voltage, core frequency, bus
48 frequency, number of processor cores available, or any other attribute
49 that changes the efficiency (instructions/unit time-power) at which the
52 -------------------------------------------------------------------------------
53 -------------------------------------------------------------------------------
56 (1) <TODO> - IF the trap range and port definitions do not match those
57 specified by this reference code, this file must be modified IAW the
58 individual implmentation.
60 --------------------------------------------------------------------------------
61 ------------------------------------------------------------------------------*/
73 External(\_PR.CPU1, DeviceObj)
74 External(\_PR.CPU2, DeviceObj)
75 External(\_PR.CPU3, DeviceObj)
76 External(\_PR.CPU0._PTC)
77 External(\_PR.CPU0._TSS)
84 Name(_TPC, 0) // All T-States are available
87 // T-State Control/Status interface
91 Return(\_PR.CPU0._PTC)
96 Return(\_PR.CPU0._TSS)
100 // T-State Dependency
105 // IF four cores are supported/enabled && !(direct access to MSR)
106 // Report 4 processors and SW_ANY as the coordination
107 // IF two cores are supported/enabled && !(direct access to MSR)
108 // Report 2 processors and SW_ANY as the coordination type
110 // Report 1 processor and SW_ALL as the coordination type (domain 1)
112 // CFGD[23] = Four cores enabled
113 // CFGD[24] = Two or more cores enabled
114 // PDCx[2] = OSPM is capable of direct access to On
115 // Demand throttling MSR
118 If(LNot(And(PDC0,4)))
120 Return(Package(){ // SW_ANY
125 0xFD, // Coord Type- SW_ANY
126 MPEN // # processors.
130 Return(Package(){ // SW_ALL
135 0xFC, // Coord Type- SW_ALL
144 Name(_TPC, 0) // All T-States are available
147 // T-State Control/Status interface
151 Return(\_PR.CPU0._PTC)
156 Return(\_PR.CPU0._TSS)
160 // T-State Dependency
165 // IF four cores are supported/enabled && !(direct access to MSR)
166 // Report 4 processors and SW_ANY as the coordination
167 // IF two cores are supported/enabled && !(direct access to MSR)
168 // Report 2 processors and SW_ANY as the coordination type
170 // Report 1 processor and SW_ALL as the coordination type (domain 1)
172 // CFGD[23] = Four cores enabled
173 // CFGD[24] = Two or more cores enabled
174 // PDCx[2] = OSPM is capable of direct access to On
175 // Demand throttling MSR
178 If(LNot(And(PDC0,4)))
180 Return(Package(){ // SW_ANY
185 0xFD, // Coord Type- SW_ANY
186 MPEN // # processors.
190 Return(Package(){ // SW_ALL
195 0xFC, // Coord Type- SW_ALL
204 Name(_TPC, 0) // All T-States are available
207 // T-State Control/Status interface
211 Return(\_PR.CPU0._PTC)
216 Return(\_PR.CPU0._TSS)
220 // T-State Dependency
225 // IF four cores are supported/enabled && !(direct access to MSR)
226 // Report 4 processors and SW_ANY as the coordination
227 // IF two cores are supported/enabled && !(direct access to MSR)
228 // Report 2 processors and SW_ANY as the coordination type
230 // Report 1 processor and SW_ALL as the coordination type (domain 1)
232 // CFGD[23] = Four cores enabled
233 // CFGD[24] = Two or more cores enabled
234 // PDCx[2] = OSPM is capable of direct access to On
235 // Demand throttling MSR
238 If(LNot(And(PDC0,4)))
240 Return(Package(){ // SW_ANY
245 0xFD, // Coord Type- SW_ANY
246 MPEN // # processors.
250 Return(Package(){ // SW_ALL
255 0xFC, // Coord Type- SW_ALL
261 } // End of Definition Block