[PATCH] fake PLZA
From: Tony Luck
Date: Wed Jan 28 2026 - 16:02:51 EST
---
arch/x86/include/asm/resctrl.h | 10 ++++++----
arch/x86/kernel/cpu/resctrl/core.c | 4 ++--
arch/x86/kernel/cpu/resctrl/ctrlmondata.c | 3 ++-
3 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/arch/x86/include/asm/resctrl.h b/arch/x86/include/asm/resctrl.h
index 2c11787c5253..7ee35bebb64c 100644
--- a/arch/x86/include/asm/resctrl.h
+++ b/arch/x86/include/asm/resctrl.h
@@ -90,14 +90,16 @@ static inline void resctrl_arch_disable_mon(void)
static inline void resctrl_arch_enable_plza(void)
{
- static_branch_enable_cpuslocked(&rdt_plza_enable_key);
- static_branch_inc_cpuslocked(&rdt_enable_key);
+ pr_info("resctrl_arch_enable_plza\n");
+ //static_branch_enable_cpuslocked(&rdt_plza_enable_key);
+ //static_branch_inc_cpuslocked(&rdt_enable_key);
}
static inline void resctrl_arch_disable_plza(void)
{
- static_branch_disable_cpuslocked(&rdt_plza_enable_key);
- static_branch_dec_cpuslocked(&rdt_enable_key);
+ pr_info("resctrl_arch_disable_plza\n");
+ //static_branch_disable_cpuslocked(&rdt_plza_enable_key);
+ //static_branch_dec_cpuslocked(&rdt_enable_key);
}
/*
diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c
index e41fe5fa3f30..780cdfb0e7cd 100644
--- a/arch/x86/kernel/cpu/resctrl/core.c
+++ b/arch/x86/kernel/cpu/resctrl/core.c
@@ -295,7 +295,7 @@ static __init bool __rdt_get_mem_config_amd(struct rdt_resource *r)
r->alloc_capable = true;
- if (rdt_cpu_has(X86_FEATURE_PLZA))
+ if (1 || rdt_cpu_has(X86_FEATURE_PLZA))
r->plza_capable = true;
return true;
@@ -318,7 +318,7 @@ static void rdt_get_cache_alloc_cfg(int idx, struct rdt_resource *r)
r->cache.arch_has_sparse_bitmasks = ecx.split.noncont;
r->alloc_capable = true;
- if (rdt_cpu_has(X86_FEATURE_PLZA))
+ if (1 || rdt_cpu_has(X86_FEATURE_PLZA))
r->plza_capable = true;
}
diff --git a/arch/x86/kernel/cpu/resctrl/ctrlmondata.c b/arch/x86/kernel/cpu/resctrl/ctrlmondata.c
index 79ed41bde810..24a37ebed13a 100644
--- a/arch/x86/kernel/cpu/resctrl/ctrlmondata.c
+++ b/arch/x86/kernel/cpu/resctrl/ctrlmondata.c
@@ -136,7 +136,8 @@ static void resctrl_plza_set_one_amd(void *arg)
{
union qos_pqr_plza_assoc *plza = arg;
- wrmsrl(MSR_IA32_PQR_PLZA_ASSOC, plza->full);
+ pr_info("wrmsr(MSR_IA32_PQR_PLZA_ASSOC, 0x%lx)\n", plza->full);
+ //wrmsrl(MSR_IA32_PQR_PLZA_ASSOC, plza->full);
}
void resctrl_arch_plza_setup(struct rdt_resource *r, u32 closid, u32 rmid)
--
2.52.0