Commit b0979e53 authored by Perry Yuan's avatar Perry Yuan Committed by Borislav Petkov (AMD)
Browse files

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: default avatarPerry Yuan <perry.yuan@amd.com>
Co-developed-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: default avatarGautham R. Shenoy <gautham.shenoy@amd.com>
Link: https://lore.kernel.org/r/20241025171459.1093-4-mario.limonciello@amd.com
parent 1ad46670
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -497,7 +497,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_AMD_HETEROGENEOUS_CORES))
		return x86_sched_itmt_flags();

	return 0;