Skip to content

Commit da4c1b9

Browse files
committed
tools/power/x86/intel-speed-select: Display error for core-power support
When core-power is getting enabled, if the feaure is not supported, display error. Signed-off-by: Srinivas Pandruvada <[email protected]>
1 parent 2fe8d2d commit da4c1b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,6 +2242,14 @@ static void enable_clos_qos_config(struct isst_id *id, void *arg1, void *arg2, v
22422242
{
22432243
int ret;
22442244
int status = *(int *)arg4;
2245+
int cp_state, cp_cap;
2246+
2247+
if (!isst_read_pm_config(id, &cp_state, &cp_cap)) {
2248+
if (!cp_cap) {
2249+
isst_display_error_info_message(1, "core-power not supported", 0, 0);
2250+
return;
2251+
}
2252+
}
22452253

22462254
if (is_skx_based_platform())
22472255
clos_priority_type = 1;

0 commit comments

Comments
 (0)