Skip to content

Commit 4049985

Browse files
committed
platform/x86/amd: pmf: Fix missing hidden options for Smart PC
JIRA: https://issues.redhat.com/browse/RHEL-89362 commit 4490fe9 Author: Mario Limonciello <[email protected]> Date: Wed Mar 5 21:44:02 2025 -0600 amd_pmf_get_slider_info() checks the current profile to report correct value to the TA inputs. If hidden options are in use then the wrong values will be reported to TA. Add the two compat options PLATFORM_PROFILE_BALANCED_PERFORMANCE and PLATFORM_PROFILE_QUIET for this use. Reported-by: Yijun Shen <[email protected]> Fixes: 9a43102 ("platform/x86/amd: pmf: Add balanced-performance to hidden choices") Fixes: 44e94fe ("platform/x86/amd: pmf: Add 'quiet' to hidden choices") Signed-off-by: Mario Limonciello <[email protected]> Acked-by: Shyam Sundar S K <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]> Signed-off-by: Mark Langsdorf <[email protected]>
1 parent 6990e09 commit 4049985

File tree

1 file changed

+2
-0
lines changed
  • drivers/platform/x86/amd/pmf

1 file changed

+2
-0
lines changed

drivers/platform/x86/amd/pmf/spc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,14 @@ static int amd_pmf_get_slider_info(struct amd_pmf_dev *dev, struct ta_pmf_enact_
153153

154154
switch (dev->current_profile) {
155155
case PLATFORM_PROFILE_PERFORMANCE:
156+
case PLATFORM_PROFILE_BALANCED_PERFORMANCE:
156157
val = TA_BEST_PERFORMANCE;
157158
break;
158159
case PLATFORM_PROFILE_BALANCED:
159160
val = TA_BETTER_PERFORMANCE;
160161
break;
161162
case PLATFORM_PROFILE_LOW_POWER:
163+
case PLATFORM_PROFILE_QUIET:
162164
val = TA_BEST_BATTERY;
163165
break;
164166
default:

0 commit comments

Comments
 (0)