Skip to content

Commit 1d54b13

Browse files
committed
tools/power/x86/intel-speed-select: Identify Emerald Rapids
There are some differences compared to Sapphire Rapids. So, add a separate API. Signed-off-by: Srinivas Pandruvada <[email protected]>
1 parent a835ff5 commit 1d54b13

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

tools/power/x86/intel-speed-select/isst-config.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,21 @@ int is_skx_based_platform(void)
114114

115115
int is_spr_platform(void)
116116
{
117-
if (cpu_model == 0x8F || cpu_model == 0xCF)
117+
if (cpu_model == 0x8F)
118118
return 1;
119119

120120
return 0;
121121
}
122122

123+
int is_emr_platform(void)
124+
{
125+
if (cpu_model == 0xCF)
126+
return 1;
127+
128+
return 0;
129+
}
130+
131+
123132
int is_icx_platform(void)
124133
{
125134
if (cpu_model == 0x6A || cpu_model == 0x6C)

tools/power/x86/intel-speed-select/isst-core-mbox.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ static void _get_uncore_mem_freq(struct isst_id *id, int config_index,
404404
}
405405

406406
ctdp_level->mem_freq = resp & GENMASK(7, 0);
407-
if (is_spr_platform()) {
407+
if (is_spr_platform() || is_emr_platform()) {
408408
ctdp_level->mem_freq *= 200;
409409
} else if (is_icx_platform()) {
410410
if (ctdp_level->mem_freq < 7) {

tools/power/x86/intel-speed-select/isst.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ extern int isst_read_pm_config(struct isst_id *id, int *cp_state, int *cp_cap);
298298
extern void isst_display_error_info_message(int error, char *msg, int arg_valid, int arg);
299299
extern int is_skx_based_platform(void);
300300
extern int is_spr_platform(void);
301+
extern int is_emr_platform(void);
301302
extern int is_icx_platform(void);
302303
extern void isst_trl_display_information(struct isst_id *id, FILE *outf, unsigned long long trl);
303304

0 commit comments

Comments
 (0)