[PATCH v14 01/24] x86/cpufeatures: Add missing CQM feature dependency

From: Tony Luck

Date: Mon Oct 19 2026 - 16:53:30 EST


The L3 monitoring features are enumerated from CPUID leaf 0xF. Both the Intel
Software Developer's Manual, and the AMD64 Architecture Programmer's Manual,
say that software must check that CPUID(0x7,0x0).EBX[12] (X86_FEATURE_CQM)
is set before checking for monitoring features in CPUID leaf 0xF.

The CPU feature dependency table does not record this requirement.

Add the missing dependency of X86_FEATURE_CQM_LLC on X86_FEATURE_CQM.

Signed-off-by: Tony Luck <tony.luck@xxxxxxxxx>
Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>
---
v14:
Add AMD64 manual
s/Linux X86_FEATURE_CQM/X86_FEATURE_CQM/
Complete the trio of context, problem, solution paragraphs
by adding the problem statement.
---
arch/x86/kernel/cpu/cpuid-deps.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/kernel/cpu/cpuid-deps.c b/arch/x86/kernel/cpu/cpuid-deps.c
index 99801e844b30..93d45b688f6c 100644
--- a/arch/x86/kernel/cpu/cpuid-deps.c
+++ b/arch/x86/kernel/cpu/cpuid-deps.c
@@ -67,6 +67,7 @@ static const struct cpuid_dep cpuid_deps[] = {
{ X86_FEATURE_AVX512_4FMAPS, X86_FEATURE_AVX512F },
{ X86_FEATURE_AVX512_VPOPCNTDQ, X86_FEATURE_AVX512F },
{ X86_FEATURE_AVX512_VP2INTERSECT, X86_FEATURE_AVX512VL },
+ { X86_FEATURE_CQM_LLC, X86_FEATURE_CQM },
{ X86_FEATURE_CQM_OCCUP_LLC, X86_FEATURE_CQM_LLC },
{ X86_FEATURE_CQM_MBM_TOTAL, X86_FEATURE_CQM_LLC },
{ X86_FEATURE_CQM_MBM_LOCAL, X86_FEATURE_CQM_LLC },
--
2.56.0