]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/cpu: Enable SD_ASYM_PACKING for PKG domain on AMD
authorPerry Yuan <perry.yuan@amd.com>
Fri, 25 Oct 2024 17:14:57 +0000 (12:14 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 25 Oct 2024 18:43:22 +0000 (20:43 +0200)
Enable the SD_ASYM_PACKING domain flag for the PKG domain on AMD heterogeneous
processors.  This flag is beneficial for processors with one or more CCDs and
relies on x86_sched_itmt_flags().

Signed-off-by: Perry Yuan <perry.yuan@amd.com>
Co-developed-by: Mario Limonciello <mario.limonciello@amd.com>
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>
Link: https://lore.kernel.org/r/20241025171459.1093-4-mario.limonciello@amd.com
arch/x86/kernel/smpboot.c

index 766f092dab80b37bd0f40237ee97df32a2bfc846..b5a8f0891135b1c0802e5f450041bf0d0e4ab64f 100644 (file)
@@ -497,8 +497,9 @@ static int x86_cluster_flags(void)
 
 static int x86_die_flags(void)
 {
-       if (cpu_feature_enabled(X86_FEATURE_HYBRID_CPU))
-              return x86_sched_itmt_flags();
+       if (cpu_feature_enabled(X86_FEATURE_HYBRID_CPU) ||
+           cpu_feature_enabled(X86_FEATURE_AMD_HETEROGENEOUS_CORES))
+               return x86_sched_itmt_flags();
 
        return 0;
 }