Thread (41 messages) flat view 41 messages, 7 authors, 2025-10-14

Re: [PATCH v7 4/8] powerpc/smp: Introduce CONFIG_SCHED_MC to guard MC scheduling bits

From: Peter Zijlstra <peterz@infradead.org>
Date: 2025-09-01 08:53:28
Also in: linux-s390, lkml

On Mon, Sep 01, 2025 at 10:35:07AM +0200, Peter Zijlstra wrote:
On Thu, Aug 28, 2025 at 08:13:51PM +0530, Shrikanth Hegde wrote:
quoted
quoted
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -170,6 +170,9 @@ config PPC
  	select ARCH_STACKWALK
  	select ARCH_SUPPORTS_ATOMIC_RMW
  	select ARCH_SUPPORTS_DEBUG_PAGEALLOC	if PPC_BOOK3S || PPC_8xx
+	select ARCH_SUPPORTS_SCHED_SMT		if PPC64 && SMP
+	select ARCH_SUPPORTS_SCHED_MC		if PPC64 && SMP
+	select SCHED_MC				if ARCH_SUPPORTS_SCHED_MC
Wondering if this SCHED_MC is necessary here? shouldn't it be set by arch/Kconfig?
Ah, so without this SCHED_MC becomes a user selectable option, with this
it is an always on option (for ppc64) -- no user prompt.

That is, this is the only way I found to have similar semantics to this:
quoted
quoted
-config SCHED_MC
-	def_bool y
-	depends on PPC64 && SMP
-
Which is also not a user selectable option.
quoted
nit: Also, can we have so they are still sorted?
	select ARCH_SUPPORTS_SCHED_MC		if PPC64 && SMP
	select ARCH_SUPPORTS_SCHED_SMT		if PPC64 && SMP
Sure, let me flip them. I need to prod that that patch anyway, built
robot still ain'ted happy.
Looks like 44x/iss476-smp_defconfig (iow 32bit power) also wants
SCHED_MC, so it should be:

config SCHED_MC
	def_bool y
	depends on SMP

Its just SMT that's a PPC64 special.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help