diff mbox series

[11/11] x86/cpu: Enable SD_ASYM_PACKING for DIE Domain on AMD Processors

Message ID 111a9bebb6acccb53ed90e6e4563bfd6ca04f1b0.1724748733.git.perry.yuan@amd.com (mailing list archive)
State Changes Requested, archived
Headers show
Series Introduce New AMD Heterogeneous Core Driver | expand

Commit Message

Yuan, Perry Aug. 27, 2024, 9:36 a.m. UTC
Enable the SD_ASYM_PACKING domain flag for the DIE 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>
---
 arch/x86/kernel/smpboot.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 0c35207320cb..16a893322c4b 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -496,7 +496,8 @@  static int x86_cluster_flags(void)
 
 static int x86_die_flags(void)
 {
-	if (cpu_feature_enabled(X86_FEATURE_HYBRID_CPU))
+	if (cpu_feature_enabled(X86_FEATURE_HYBRID_CPU) ||
+			cpu_feature_enabled(X86_FEATURE_HETERO_CORE_TOPOLOGY))
 	       return x86_sched_itmt_flags();
 
 	return 0;