Skip to content

Commit 63fcbf0

Browse files
committed
x86/cpu: Enable SD_ASYM_PACKING for PKG domain on AMD
JIRA: https://issues.redhat.com/browse/RHEL-53783 commit b0979e5 Author: Perry Yuan <perry.yuan@amd.com> Date: Fri Oct 25 12:14:57 2024 -0500 x86/cpu: Enable SD_ASYM_PACKING for PKG domain on AMD 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 Signed-off-by: Steve Best <sbest@redhat.com>
1 parent 6e853fb commit 63fcbf0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/x86/kernel/smpboot.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,9 @@ static int x86_cluster_flags(void)
497497

498498
static int x86_die_flags(void)
499499
{
500-
if (cpu_feature_enabled(X86_FEATURE_HYBRID_CPU))
501-
return x86_sched_itmt_flags();
500+
if (cpu_feature_enabled(X86_FEATURE_HYBRID_CPU) ||
501+
cpu_feature_enabled(X86_FEATURE_AMD_HETEROGENEOUS_CORES))
502+
return x86_sched_itmt_flags();
502503

503504
return 0;
504505
}

0 commit comments

Comments
 (0)