diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2023-09-07 17:07:19 -0700 |
---|---|---|
committer | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2023-10-17 11:55:37 -0700 |
commit | da4c1b9e8f22d0567e308428e588e1f9e004ce74 (patch) | |
tree | 0cfd679c1154ace63cc9b31de2e23dfcfc65d27f /tools/power | |
parent | 2fe8d2d7911fb4e380c3dcb5655e1a62bb14f75e (diff) | |
download | lwn-da4c1b9e8f22d0567e308428e588e1f9e004ce74.tar.gz lwn-da4c1b9e8f22d0567e308428e588e1f9e004ce74.zip |
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 <srinivas.pandruvada@linux.intel.com>
Diffstat (limited to 'tools/power')
-rw-r--r-- | tools/power/x86/intel-speed-select/isst-config.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/power/x86/intel-speed-select/isst-config.c b/tools/power/x86/intel-speed-select/isst-config.c index 1afaaa833a54..b7bd14618128 100644 --- a/tools/power/x86/intel-speed-select/isst-config.c +++ b/tools/power/x86/intel-speed-select/isst-config.c @@ -2242,6 +2242,14 @@ static void enable_clos_qos_config(struct isst_id *id, void *arg1, void *arg2, v { int ret; int status = *(int *)arg4; + int cp_state, cp_cap; + + if (!isst_read_pm_config(id, &cp_state, &cp_cap)) { + if (!cp_cap) { + isst_display_error_info_message(1, "core-power not supported", 0, 0); + return; + } + } if (is_skx_based_platform()) clos_priority_type = 1; |