]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2DeviceRefCodePkg/ValleyView2Soc/CPU/PowerManagement/AcpiTables/Ssdt/Cpu0Ist.asl
Vlv2DeviceRefCodePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / Vlv2DeviceRefCodePkg / ValleyView2Soc / CPU / PowerManagement / AcpiTables / Ssdt / Cpu0Ist.asl
CommitLineData
3cbfba02
DW
1/*-----------------------------------------------------------------------------\r
2-------------------------------------------------------------------------------\r
3\r
4\r
5 Intel Silvermont Processor Power Management BIOS Reference Code\r
6\r
7 Copyright (c) 2006 - 2014, Intel Corporation\r
8\r
7ede8060 9 SPDX-License-Identifier: BSD-2-Clause-Patent\r
3cbfba02
DW
10\r
11\r
12 Filename: CPU0IST.ASL\r
13\r
14 Revision: Refer to Readme\r
15\r
16 Date: Refer to Readme\r
17\r
18--------------------------------------------------------------------------------\r
19-------------------------------------------------------------------------------\r
20\r
21 This Processor Power Management BIOS Source Code is furnished under license\r
22 and may only be used or copied in accordance with the terms of the license.\r
23 The information in this document is furnished for informational use only, is\r
24 subject to change without notice, and should not be construed as a commitment\r
25 by Intel Corporation. Intel Corporation assumes no responsibility or liability\r
26 for any errors or inaccuracies that may appear in this document or any\r
27 software that may be provided in association with this document.\r
28\r
29 Except as permitted by such license, no part of this document may be\r
30 reproduced, stored in a retrieval system, or transmitted in any form or by\r
31 any means without the express written consent of Intel Corporation.\r
32\r
33 WARNING: You are authorized and licensed to install and use this BIOS code\r
34 ONLY on an IST PC. This utility may damage any system that does not\r
35 meet these requirements.\r
36\r
37 An IST PC is a computer which\r
38 (1) Is capable of seamlessly and automatically transitioning among\r
39 multiple performance states (potentially operating at different\r
40 efficiency ratings) based upon power source changes, END user\r
41 preference, processor performance demand, and thermal conditions; and\r
42 (2) Includes an Intel Pentium II processors, Intel Pentium III\r
43 processor, Mobile Intel Pentium III Processor-M, Mobile Intel Pentium 4\r
44 Processor-M, Intel Pentium M Processor, or any other future Intel\r
45 processors that incorporates the capability to transition between\r
46 different performance states by altering some, or any combination of,\r
47 the following processor attributes: core voltage, core frequency, bus\r
48 frequency, number of processor cores available, or any other attribute\r
49 that changes the efficiency (instructions/unit time-power) at which the\r
50 processor operates.\r
51\r
52-------------------------------------------------------------------------------\r
53-------------------------------------------------------------------------------\r
54\r
55NOTES:\r
56 (1) <TODO> - IF the trap range and port definitions do not match those\r
57 specified by this reference code, this file must be modified IAW the\r
58 individual implmentation.\r
59\r
60--------------------------------------------------------------------------------\r
61------------------------------------------------------------------------------*/\r
62\r
63\r
64DefinitionBlock (\r
65 "CPU0IST.aml",\r
66 "SSDT",\r
67 0x01,\r
68 "PmRef",\r
69 "Cpu0Ist",\r
70 0x3000\r
71 )\r
72{\r
73 External (\_PR.CPU0, DeviceObj)\r
74 External (PDC0)\r
75 External (CFGD)\r
76\r
77 Scope(\_PR.CPU0)\r
78 {\r
79 //OperationRegion (DEB0, SystemIO, 0x80, 1) //DBG\r
80 //Field (DEB0, ByteAcc,NoLock,Preserve) //DBG\r
81 //{ DBG8, 8,} //DBG\r
82\r
83 Name(_PPC, 0) // Initialize as All States Available.\r
84\r
85 // NOTE: For CMP systems; this table is not loaded unless\r
86 // the required driver support is present.\r
87 // So, we do not check for those cases here.\r
88 //\r
89 // CFGD[0] = GV3 Capable/Enabled\r
90 // PDCx[0] = OS Capable of Hardware P-State control\r
91 //\r
92 Method(_PCT,0)\r
93 {\r
94 If(LAnd(And(CFGD,0x0001), And(PDC0,0x0001)))\r
95 {\r
96 //Store(0xA0,DBG8) //DBG\r
97 Return(Package() // Native Mode\r
98 {\r
99 ResourceTemplate(){Register(FfixedHW, 0, 0, 0)},\r
100 ResourceTemplate(){Register(FfixedHW, 0, 0, 0)}\r
101 })\r
102 }\r
103 // @NOTE: IO Trap is not supported. Therefore should not expose any IO interface for _PCT\r
104 // For all other cases, report control through the\r
105 // SMI interface. (The port used for SMM control is fixed up\r
106 // by the initialization code.)\r
107 //\r
108 Return(Package() // SMM Mode\r
109 {\r
110 ResourceTemplate(){Register(FfixedHW, 0, 0, 0)},\r
111 ResourceTemplate(){Register(FfixedHW, 0, 0, 0)}\r
112 })\r
113 }\r
114\r
115\r
116 // NOTE: For CMP systems; this table is not loaded if MP\r
117 // driver support is not present or P-State are disabled.\r
118 //\r
119 Method(_PSS,0)\r
120 {\r
121 //\r
122 // Report NSPP if:\r
123 // (1) GV3 capable (Not checked, see above.)\r
124 // (2) Driver support direct hardware control\r
125 // (3) MP driver support present (Not checked, see above.)\r
126 // else;\r
127 // Report SPSS\r
128 //\r
129 // PDCx[0] = OS Capable of Hardware P-State control\r
130 //\r
131 If(And(PDC0,0x0001)){\r
132 //Store(0xB0,DBG8) //DBG\r
133 Return(NPSS)\r
134 }\r
135 //Store(0xBF,DBG8) //DBG\r
136 // Otherwise, report SMM mode\r
137 //\r
138 Return(SPSS)\r
139\r
140 }\r
141\r
142 Name(SPSS,Package()\r
143 {\r
144 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
145 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
146 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
147 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
148 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
149 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
150 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
151 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
152 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
153 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
154 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
155 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
156 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
157 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
158 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
159 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000}\r
160 })\r
161\r
162 Name(NPSS,Package()\r
163 {\r
164 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
165 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
166 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
167 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
168 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
169 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
170 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
171 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
172 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
173 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
174 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
175 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
176 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
177 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
178 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000},\r
179 Package(){0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000}\r
180 })\r
181\r
182 // The _PSD object provides information to the OSPM related\r
183 // to P-State coordination between processors in a multi-processor\r
184 // configurations.\r
185 //\r
186 Method(_PSD,0)\r
187 {\r
188 //\r
189 // IF CMP is supported/enabled\r
190 // IF quad core processor\r
191 // IF PDC[11]\r
192 // Report 4 processors and HW_ALL as the coordination type\r
193 // ELSE\r
194 // Report 4 processors and SW_ALL as the coordination type\r
195 // ELSE\r
196 // IF PDC[11]\r
197 // Report 2 processors and HW_ALL as the coordination type\r
198 // ELSE\r
199 // Report 2 processors and SW_ALL as the coordination type\r
200 // ELSE\r
201 // Report 1 processor and SW_ALL as the coordination type\r
202 // (Domain 0)\r
203 //\r
204 // CFGD[24] = Two or more cores enabled\r
205 // CFGD[23] = Four cores enabled\r
206 // PDCx[11] = Hardware coordination with hardware feedback\r
207 //\r
208\r
209 If(And(CFGD,0x1000000)) // CMP Enabled.\r
210 {\r
211 If(And(CFGD,0x800000)) // 2 or 4 process.\r
212 {\r
213 If(And(PDC0,0x0800))\r
214 {\r
215 Return(Package(){ // HW_ALL\r
216 Package(){\r
217 5, // # entries.\r
218 0, // Revision.\r
219 0, // Domain #.\r
220 0xFE, // Coord Type- HW_ALL.\r
221 4 // # processors.\r
222 }\r
223 })\r
224 } // If(And(PDC0,0x0800))\r
225 Return(Package(){ // SW_ALL\r
226 Package(){\r
227 5, // # entries.\r
228 0, // Revision.\r
229 0, // Domain #.\r
230 0xFC, // Coord Type- SW_ALL.\r
231 4 // # processors.\r
232 }\r
233 })\r
234 } else {\r
235 Return(Package(){ // HW_ALL\r
236 Package(){\r
237 5, // # entries.\r
238 0, // Revision.\r
239 0, // Domain #.\r
240 0xFE, // Coord Type- HW_ALL.\r
241 2 // # processors.\r
242 }\r
243 })\r
244 }\r
245 } // If(And(CFGD,0x1000000)) // CMP Enabled.\r
246\r
247 Return(Package(){ // SW_ALL\r
248 Package(){\r
249 5, // # entries.\r
250 0, // Revision.\r
251 0, // Domain #.\r
252 0xFC, // Coord Type- SW_ALL.\r
253 1 // # processors.\r
254 }\r
255 })\r
256 } // Method(_PSD,0)\r
257 } // Scope(\_PR.CPU0)\r
258} // End of Definition Block\r
259\r
260\r