26 lines
963 B
Diff
26 lines
963 B
Diff
From 275a7a8c95ac5d0c0ff586acd882d751478f6a00 Mon Sep 17 00:00:00 2001
|
|
From: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
|
|
Date: Wed, 23 Oct 2024 10:21:12 +0000
|
|
Subject: cpufreq/amd-pstate: Align offline flow of shared memory and MSR based
|
|
systems
|
|
|
|
Set min_perf to lowest_perf for shared memory systems, similar to the MSR
|
|
based systems.
|
|
|
|
Signed-off-by: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
|
|
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
|
|
---
|
|
drivers/cpufreq/amd-pstate.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
--- a/drivers/cpufreq/amd-pstate.c
|
|
+++ b/drivers/cpufreq/amd-pstate.c
|
|
@@ -1688,6 +1688,7 @@ static void amd_pstate_epp_offline(struc
|
|
wrmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ, value);
|
|
} else {
|
|
perf_ctrls.desired_perf = 0;
|
|
+ perf_ctrls.min_perf = min_perf;
|
|
perf_ctrls.max_perf = min_perf;
|
|
cppc_set_perf(cpudata->cpu, &perf_ctrls);
|
|
perf_ctrls.energy_perf = AMD_CPPC_ENERGY_PERF_PREF(HWP_EPP_BALANCE_POWERSAVE);
|