Skip to content

Commit a835ff5

Browse files
committed
tools/power/x86/intel-speed-select: Display AMX base frequency
AMX frequency is present in non TPMI platforms also. When platform supports, the value is non zero. So, display AMX base frequency when non zero, irrespective of platform API version. Signed-off-by: Srinivas Pandruvada <[email protected]>
1 parent 997074d commit a835ff5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,11 @@ static void _get_p1_info(struct isst_id *id, int config_index,
383383
ctdp_level->sse_p1 = resp & GENMASK(7, 0);
384384
ctdp_level->avx2_p1 = (resp & GENMASK(15, 8)) >> 8;
385385
ctdp_level->avx512_p1 = (resp & GENMASK(23, 16)) >> 16;
386+
ctdp_level->amx_p1 = (resp & GENMASK(31, 24)) >> 24;
386387
debug_printf(
387-
"cpu:%d ctdp:%d CONFIG_TDP_GET_P1_INFO resp:%x sse_p1:%d avx2_p1:%d avx512_p1:%d\n",
388+
"cpu:%d ctdp:%d CONFIG_TDP_GET_P1_INFO resp:%x sse_p1:%d avx2_p1:%d avx512_p1:%d amx_p1:%d\n",
388389
id->cpu, config_index, resp, ctdp_level->sse_p1,
389-
ctdp_level->avx2_p1, ctdp_level->avx512_p1);
390+
ctdp_level->avx2_p1, ctdp_level->avx512_p1, ctdp_level->amx_p1);
390391
}
391392

392393
static void _get_uncore_mem_freq(struct isst_id *id, int config_index,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ void isst_ctdp_display_information(struct isst_id *id, FILE *outf, int tdp_level
424424
format_and_print(outf, level + 2, header, value);
425425
}
426426

427-
if (api_version() > 1 && ctdp_level->amx_p1) {
427+
if (ctdp_level->amx_p1) {
428428
snprintf(header, sizeof(header), "base-frequency-amx(MHz)");
429429
snprintf(value, sizeof(value), "%d",
430430
ctdp_level->amx_p1 * isst_get_disp_freq_multiplier());

0 commit comments

Comments
 (0)