Skip to content

Commit bfea2b3

Browse files
superm1bp3tk0v
authored andcommitted
cpufreq/amd-pstate: Disable preferred cores on designs with workload classification
On designs that have workload classification, it's preferred that the amd-hfi driver is used to provide hints to the scheduler of which cores to use instead of the amd-pstate driver. Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com> Reviewed-by: Perry Yuan <perry.yuan@amd.com> Acked-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/20250609200518.3616080-11-superm1@kernel.org
1 parent 9e8f6bf commit bfea2b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/cpufreq/amd-pstate.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,13 @@ static void amd_pstate_init_prefcore(struct amd_cpudata *cpudata)
826826
if (!amd_pstate_prefcore)
827827
return;
828828

829+
/* should use amd-hfi instead */
830+
if (cpu_feature_enabled(X86_FEATURE_AMD_WORKLOAD_CLASS) &&
831+
IS_ENABLED(CONFIG_AMD_HFI)) {
832+
amd_pstate_prefcore = false;
833+
return;
834+
}
835+
829836
cpudata->hw_prefcore = true;
830837

831838
/* Priorities must be initialized before ITMT support can be toggled on. */

0 commit comments

Comments
 (0)