Skip to contentSkip to conversation

RISC-V: Make NUMA depend on SMP

PATCH In review Palmer Dabbelt 2 participants 3 messages Feb 26, 2021 – Feb 27, 2021 RISC-V

lore
Share & tools
lore

Palmer Dabbelt

author maintainer
#0 lore raw

PATCH 1/1 RISC-V: Make NUMA depend on SMP

From: Palmer Dabbelt <[email protected]>

In theory these are orthogonal, but in practice all NUMA systems are SMP. NUMA && !SMP doesn't build, everyone else is coupling them, and I don't really see any value in supporting that configuration.

Fixes 4f0e8eef772e ("riscv: Add numa support for riscv64 platform")

---
This is on fixes.

---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/riscv/Kconfig +1 -0
index a998babc1237..85d626b8ce5e 100644
@@ -314,6 +314,7 @@ endchoice
 # Common NUMA Features
 config NUMA
 	bool "NUMA Memory Allocation and Scheduler Support"
+	depends on SMP
 	select GENERIC_ARCH_NUMA
 	select OF_NUMA
 	select ARCH_SUPPORTS_NUMA_BALANCING
Signature · 7 lines
2.30.1.766.gb4fecdf3b7-goog


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
#1 lore raw
Quoted 10 lines · Palmer Dabbelt

From: Palmer Dabbelt <[email protected]>

In theory these are orthogonal, but in practice all NUMA systems are SMP. NUMA && !SMP doesn't build, everyone else is coupling them, and I don't really see any value in supporting that configuration.

Fixes 4f0e8eef772e ("riscv: Add numa support for riscv64 platform")
Reported-and-Tested-by Kefeng Wang <[email protected]>
Quoted 11 lines

---
This is on fixes.

---
  arch/riscv/Kconfig | 1 +
  1 file changed, 1 insertion(+)
arch/riscv/Kconfig +0 -0
index a998babc1237..85d626b8ce5e 100644

arch/riscv/Kconfig endchoice · line 320

Quoted 7 lines
arch/riscv/Kconfig +1 -0
@@ -314,6 +314,7 @@ endchoice
  # Common NUMA Features
  config NUMA
  	bool "NUMA Memory Allocation and Scheduler Support"
+	depends on SMP
  	select GENERIC_ARCH_NUMA
  	select OF_NUMA
  	select ARCH_SUPPORTS_NUMA_BALANCING

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv

author maintainer
#2 lore raw
Quoted 8 lines · On Fri, 26 Feb 2021 17:03:53 PST (-0800), [email protected] wrote:
Quoted 6 lines · Palmer Dabbelt

From: Palmer Dabbelt <[email protected]>

In theory these are orthogonal, but in practice all NUMA systems are SMP. NUMA && !SMP doesn't build, everyone else is coupling them, and I don't really see any value in supporting that configuration.

Quoted 6 lines
Quoted 4 lines
Fixes 4f0e8eef772e ("riscv: Add numa support for riscv64 platform")
Reported-and-Tested-by Kefeng Wang <[email protected]>

Ah, thanks, I forged I'd said no to this earlier ;)

Quoted 8 lines
Quoted 8 lines

---
This is on fixes.

---
  arch/riscv/Kconfig | 1 +
  1 file changed, 1 insertion(+)
Quoted 12 lines

arch/riscv/Kconfig endchoice · line 320

Quoted 12 lines
arch/riscv/Kconfig +1 -0
index a998babc1237..85d626b8ce5e 100644
@@ -314,6 +314,7 @@ endchoice
  # Common NUMA Features
  config NUMA
  	bool "NUMA Memory Allocation and Scheduler Support"
+	depends on SMP
  	select GENERIC_ARCH_NUMA
  	select OF_NUMA
  	select ARCH_SUPPORTS_NUMA_BALANCING

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv