x86/cpufeatures: Add X86_FEATURE_AMD_HETEROGENEOUS_CORES
authorPerry Yuan <perry.yuan@amd.com>
Fri, 25 Oct 2024 17:14:56 +0000 (12:14 -0500)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 25 Oct 2024 18:31:16 +0000 (20:31 +0200)
commit1ad466706671436994ec7e71305f44692fed989a
tree8820db17ccce8c08acb521e8853b492dedee727a
parent104edc6efca628389295392ceb87623fe10c41f6
x86/cpufeatures: Add X86_FEATURE_AMD_HETEROGENEOUS_CORES

CPUID leaf 0x80000026 advertises core types with different efficiency
rankings.

Bit 30 indicates the heterogeneous core topology feature, if the bit
set, it means not all instances at the current hierarchical level have
the same core topology.

This is described in the AMD64 Architecture Programmers Manual Volume
2 and 3, doc ID #25493 and #25494.

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>
Link: https://lore.kernel.org/r/20241025171459.1093-3-mario.limonciello@amd.com
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/scattered.c