Skip to content

Commit 4490fe9

Browse files
superm1ij-intel
authored andcommitted
platform/x86/amd: pmf: Fix missing hidden options for Smart PC
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 <Yijun.Shen@dell.com> 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 <mario.limonciello@amd.com> Acked-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com> Link: https://lore.kernel.org/r/20250306034402.50478-1-superm1@kernel.org Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 parent a05507c commit 4490fe9

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
@@ -219,12 +219,14 @@ static int amd_pmf_get_slider_info(struct amd_pmf_dev *dev, struct ta_pmf_enact_
219219

220220
switch (dev->current_profile) {
221221
case PLATFORM_PROFILE_PERFORMANCE:
222+
case PLATFORM_PROFILE_BALANCED_PERFORMANCE:
222223
val = TA_BEST_PERFORMANCE;
223224
break;
224225
case PLATFORM_PROFILE_BALANCED:
225226
val = TA_BETTER_PERFORMANCE;
226227
break;
227228
case PLATFORM_PROFILE_LOW_POWER:
229+
case PLATFORM_PROFILE_QUIET:
228230
val = TA_BEST_BATTERY;
229231
break;
230232
default:

0 commit comments

Comments
 (0)