]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cpufreq/amd-pstate: Align offline flow of shared memory and MSR based systems
authorDhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
Wed, 23 Oct 2024 10:21:12 +0000 (10:21 +0000)
committerMario Limonciello <mario.limonciello@amd.com>
Mon, 28 Oct 2024 19:54:36 +0000 (14:54 -0500)
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>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Link: https://lore.kernel.org/r/20241023102108.5980-5-Dhananjay.Ugwekar@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
drivers/cpufreq/amd-pstate.c

index bbeddce908236abd50281c37ef0ce8d7671ed160..206725219d8c9a546bff9988f8ad1347b3af43dc 100644 (file)
@@ -1658,6 +1658,7 @@ static void amd_pstate_epp_offline(struct cpufreq_policy *policy)
                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);