Skip to content

Commit 57275a5

Browse files
jsun26intelacrnsi
authored andcommitted
HV: add px cx data for kbl nuc refresh
Add Px/Cx data of Intel Core(TM) i7-8650U CPU which used by NUC7i7DNH to enable guest controlled CPU power states; Tracked-On: #3158 Signed-off-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
1 parent 3d459df commit 57275a5

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

hypervisor/arch/x86/cpu_state_tbl.c

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,33 @@ static const struct cpu_cx_data cx_j3455[] = {
8484
{{SPACE_FFixedHW, 0x1U, 0x2U, 0x1U, 0x60UL}, 0x3U, 0x96U, 0x0AUL} /* C3 */
8585
};
8686

87+
/* The table includes cpu cx info of Intel i7-8650U SoC */
88+
static const struct cpu_px_data px_i78650[] = {
89+
{0x835UL, 0x0UL, 0xAUL, 0xAUL, 0x2A00UL, 0x2A00UL}, /* P0 */
90+
{0x834UL, 0x0UL, 0xAUL, 0xAUL, 0x1500UL, 0x1500UL}, /* P1 */
91+
{0x76CUL, 0x0UL, 0xAUL, 0xAUL, 0x1300UL, 0x1300UL}, /* P2 */
92+
{0x708UL, 0x0UL, 0xAUL, 0xAUL, 0x1200UL, 0x1200UL}, /* P3 */
93+
{0x6A4UL, 0x0UL, 0xAUL, 0xAUL, 0x1100UL, 0x1100UL}, /* P4 */
94+
{0x640UL, 0x0UL, 0xAUL, 0xAUL, 0x1000UL, 0x1000UL}, /* P5 */
95+
{0x5DCUL, 0x0UL, 0xAUL, 0xAUL, 0x0F00UL, 0x0F00UL}, /* P6 */
96+
{0x578UL, 0x0UL, 0xAUL, 0xAUL, 0x0E00UL, 0x0E00UL}, /* P7 */
97+
{0x4B0UL, 0x0UL, 0xAUL, 0xAUL, 0x0C00UL, 0x0C00UL}, /* P8 */
98+
{0x44CUL, 0x0UL, 0xAUL, 0xAUL, 0x0B00UL, 0x0B00UL}, /* P9 */
99+
{0x3E8UL, 0x0UL, 0xAUL, 0xAUL, 0x0A00UL, 0x0A00UL}, /* P10 */
100+
{0x320UL, 0x0UL, 0xAUL, 0xAUL, 0x0800UL, 0x0800UL}, /* P11 */
101+
{0x2BCUL, 0x0UL, 0xAUL, 0xAUL, 0x0700UL, 0x0700UL}, /* P12 */
102+
{0x258UL, 0x0UL, 0xAUL, 0xAUL, 0x0600UL, 0x0600UL}, /* P13 */
103+
{0x1F4UL, 0x0UL, 0xAUL, 0xAUL, 0x0500UL, 0x0500UL}, /* P14 */
104+
{0x190UL, 0x0UL, 0xAUL, 0xAUL, 0x0400UL, 0x0400UL} /* P15 */
105+
};
106+
107+
/* The table includes cpu cx info of Intel i7-8650U SoC */
108+
static const struct cpu_cx_data cx_i78650[] = {
109+
{{SPACE_FFixedHW, 0x0U, 0U, 0U, 0UL}, 0x1U, 0x1U, 0UL}, /* C1 */
110+
{{SPACE_SYSTEM_IO, 0x8U, 0U, 0U, 0x1816UL}, 0x2U, 0x97U, 0UL}, /* C2 */
111+
{{SPACE_SYSTEM_IO, 0x8U, 0U, 0U, 0x1819UL}, 0x3U, 0x40AU, 0UL} /* C3 */
112+
};
113+
87114
static const struct cpu_state_table {
88115
char model_name[64];
89116
struct cpu_state_info state_info;
@@ -103,6 +130,10 @@ static const struct cpu_state_table {
103130
{"Intel(R) Celeron(R) CPU N3350 @ 1.10GHz",
104131
{(uint8_t)ARRAY_SIZE(px_n3350), px_n3350,
105132
(uint8_t)ARRAY_SIZE(cx_a3960), cx_a3960} /* Cx is same as A3960 */
133+
},
134+
{"Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz",
135+
{(uint8_t)ARRAY_SIZE(px_i78650), px_i78650,
136+
(uint8_t)ARRAY_SIZE(cx_i78650), cx_i78650}
106137
}
107138
};
108139

0 commit comments

Comments
 (0)