[PATCH v3 4/4] powerpc: Skip llc_override on SPLPAR

From: Shrikanth Hegde

Date: Mon Nov 23 2026 - 07:48:31 EST


On shared-processor LPARs, firmware exposes only the L1 cache information
to the guest. The physical L2 and L3 size and sharing information needed
to calculate the effective LLC capacity are unavailable.

Using llc_override in this configuration would leave llc_bytes at zero.
Reject the parameter on shared-processor LPARs for now.

Signed-off-by: Shrikanth Hegde <sshegde@xxxxxxxxxxxxx>
---
arch/powerpc/kernel/smp.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c
index 7b9682e55c56..9b0fc661083a 100644
--- a/arch/powerpc/kernel/smp.c
+++ b/arch/powerpc/kernel/smp.c
@@ -1104,6 +1104,11 @@ const struct cpumask *arch_llc_mask(int cpu)

static int __init set_llc_override(char *str)
{
+ if (is_shared_processor()) {
+ pr_warn("llc_override is not supported on Shared Processor LPARs\n");
+ return 1;
+ }
+
if (!strcasecmp(str, "mc") && has_coregroup_support())
llc_override = LLC_OVERRIDE_MC;
else if (!strcasecmp(str, "pkg"))
--
2.52.0