mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/4] powerpc/topology: Introduce llc_override kernel parameter
@ 2026-11-23 12:47 Shrikanth Hegde
  2026-11-23 12:47 ` [PATCH v3 1/4] " Shrikanth Hegde
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Shrikanth Hegde @ 2026-11-23 12:47 UTC (permalink / raw)
  To: maddy, linuxppc-dev, peterz, tim.c.chen
  Cc: sshegde, christophe.leroy, linux-kernel, ritesh.list,
	kprateek.nayak, yu.c.chen, vineethr, vincent.guittot, srikar,
	npiggin, mpe

Depends on generic cacheinfo series[1] to be applied,
[1]: https://lore.kernel.org/all/20261118163639.890546-1-sshegde@linux.ibm.com/
That patch is under discussion and likely need some changes specially
for DLPAR related stuff. Meanwhile, sending this updated series out.

Provide an option for users to enable cache aware scheduling on powerpc
via a command line parameter.

Verified that cache aware scheduling is taking effecting by observing that
llc_balance happens and mm_sched_llc is pointing to the right llc id after
running threads and size checks succeed.

More details of the problem and context is in cover-letter of v1.
v1: https://lore.kernel.org/all/20261012102037.2477378-1-sshegde@linux.ibm.com/
v2: https://lore.kernel.org/all/20261023131646.2907938-1-sshegde@linux.ibm.com/

v2->v3:
- Move to generic cacheinfo so that get_effective_llc_bytes populates
  the right value. Thanks to Chen Yu, Tim Chen for pointing out that
  llc_bytes was 0.
- Make llc_override __ro_after_init and remove READ/WRITE_ONCE
  (Chen Yu, Tim Chen)
- Merge patches around domain flags and arch_llc_mask (Tim Chen)
- Ensure parameter is of nop on shared processor LPAR (New patch)

v1->v2:
- Move to kernel parameters from debugfs. This helps to keep
  llc_id consistent which doesn't change across sched domain
  rebuilds. (Tim Chen)
- Update arch_llc_mask to reflect the override (Tim Chen)
- Limit only to mc, pkg (Srikar Dronamraju)

PS: Selftests related to Cache aware Scheduling will be taken up
subsequently, as that is more complicated.

Shrikanth Hegde (4):
  powerpc/topology: Introduce llc_override kernel parameter
  powerpc/topology: Update flags and llc_mask based on llc_override
  Documentation/powerpc: Add details about llc_override
  powerpc: Skip llc_override on SPLPAR

 .../admin-guide/kernel-parameters.txt         | 15 ++++
 arch/powerpc/include/asm/topology.h           |  8 +-
 arch/powerpc/kernel/smp.c                     | 74 +++++++++++++++++--
 3 files changed, 86 insertions(+), 11 deletions(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-23 12:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [PATCH v3 4/4] powerpc: Skip llc_override on SPLPAR Shrikanth Hegde

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®