mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Shrikanth Hegde <sshegde@linux.ibm.com>
To: maddy@linux.ibm.com, linuxppc-dev@lists.ozlabs.org,
	peterz@infradead.org, tim.c.chen@linux.intel.com
Cc: sshegde@linux.ibm.com, christophe.leroy@csgroup.eu,
	linux-kernel@vger.kernel.org, ritesh.list@gmail.com,
	kprateek.nayak@amd.com, yu.c.chen@intel.com,
	vineethr@linux.ibm.com, vincent.guittot@linaro.org,
	srikar@linux.ibm.com, npiggin@gmail.com, mpe@ellerman.id.au
Subject: [PATCH v3 4/4] powerpc: Skip llc_override on SPLPAR
Date: Mon, 23 Nov 2026 18:17:30 +0530	[thread overview]
Message-ID: <20261123124730.1466978-5-sshegde@linux.ibm.com> (raw)
In-Reply-To: <20261123124730.1466978-1-sshegde@linux.ibm.com>

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@linux.ibm.com>
---
 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


      parent reply	other threads:[~2026-11-23 12:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 12:47 [PATCH v3 0/4] powerpc/topology: Introduce llc_override kernel parameter Shrikanth Hegde
2026-11-23 12:47 ` [PATCH v3 1/4] " Shrikanth Hegde
2026-11-23 12:47 ` [PATCH v3 2/4] powerpc/topology: Update flags and llc_mask based on llc_override Shrikanth Hegde
2026-11-23 12:47 ` [PATCH v3 3/4] Documentation/powerpc: Add details about llc_override Shrikanth Hegde
2026-11-23 12:47 ` Shrikanth Hegde [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261123124730.1466978-5-sshegde@linux.ibm.com \
    --to=sshegde@linux.ibm.com \
    --cc=christophe.leroy@csgroup.eu \
    --cc=kprateek.nayak@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=maddy@linux.ibm.com \
    --cc=mpe@ellerman.id.au \
    --cc=npiggin@gmail.com \
    --cc=peterz@infradead.org \
    --cc=ritesh.list@gmail.com \
    --cc=srikar@linux.ibm.com \
    --cc=tim.c.chen@linux.intel.com \
    --cc=vincent.guittot@linaro.org \
    --cc=vineethr@linux.ibm.com \
    --cc=yu.c.chen@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®