Skip to contentSkip to conversation

arm64: Kconfig: Enable NODES_SPAN_OTHER_NODES config for NUMA

PATCH In review Hoan Tran 3 participants 7 messages Feb 3, 2020 – Mar 28, 2020 arm64

lore
Share & tools
lore

Hoan Tran

author
#0 lore raw

PATCH 1/1 arm64: Kconfig: Enable NODES_SPAN_OTHER_NODES config for NUMA

Some NUMA nodes have memory ranges that span other nodes. Even though a pfn is valid and between a node's start and end pfns, it may not reside on that node.

This patch enables NODES_SPAN_OTHER_NODES config for NUMA to support this type of NUMA layout.

---
 arch/arm64/Kconfig | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/Kconfig +7 -0
index e688dfa..939d28f 100644
@@ -959,6 +959,13 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK
 config HOLES_IN_ZONE
 	def_bool y
 
+# Some NUMA nodes have memory ranges that span other nodes.
+# Even though a pfn is valid and between a node's start and end pfns,
+# it may not reside on that node.
+config NODES_SPAN_OTHER_NODES
+	def_bool y
+	depends on ACPI_NUMA
+
 source "kernel/Kconfig.hz"
 
 config ARCH_SUPPORTS_DEBUG_PAGEALLOC
Signature · 1 line
1.8.3.1
maintainer
#1 lore raw
Quoted 17 lines · Hoan Tran

Some NUMA nodes have memory ranges that span other nodes. Even though a pfn is valid and between a node's start and end pfns, it may not reside on that node.

This patch enables NODES_SPAN_OTHER_NODES config for NUMA to support this type of NUMA layout.

---
 arch/arm64/Kconfig | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/Kconfig +0 -0
index e688dfa..939d28f 100644

arch/arm64/Kconfig config NEED_PER_CPU_EMBED_FIRST_CHUNK · line 968

Quoted 10 lines
arch/arm64/Kconfig +7 -0
@@ -959,6 +959,13 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK
 config HOLES_IN_ZONE
 	def_bool y
 
+# Some NUMA nodes have memory ranges that span other nodes.
+# Even though a pfn is valid and between a node's start and end pfns,
+# it may not reside on that node.
+config NODES_SPAN_OTHER_NODES
+	def_bool y
+	depends on ACPI_NUMA
+

I thought we agreed to do this in the core code?

https://lore.kernel.org/lkml/[email protected]

Will

author
#2 lore raw

Hi Will,

Quoted 31 lines · Will Deacon
Quoted 17 lines · Hoan Tran

Some NUMA nodes have memory ranges that span other nodes. Even though a pfn is valid and between a node's start and end pfns, it may not reside on that node.

This patch enables NODES_SPAN_OTHER_NODES config for NUMA to support this type of NUMA layout.

---
  arch/arm64/Kconfig | 7 +++++++
  1 file changed, 7 insertions(+)
arch/arm64/Kconfig +0 -0
index e688dfa..939d28f 100644

arch/arm64/Kconfig config NEED_PER_CPU_EMBED_FIRST_CHUNK · line 968

Quoted 10 lines
arch/arm64/Kconfig +7 -0
@@ -959,6 +959,13 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK
  config HOLES_IN_ZONE
  	def_bool y
 
+# Some NUMA nodes have memory ranges that span other nodes.
+# Even though a pfn is valid and between a node's start and end pfns,
+# it may not reside on that node.
+config NODES_SPAN_OTHER_NODES
+	def_bool y
+	depends on ACPI_NUMA
+

I thought we agreed to do this in the core code?

Quoted 1 line

https://lore.kernel.org/lkml/[email protected]

Yes, but it looks like Thomas didn't agree to apply this patch into x86.

https://lore.kernel.org/lkml/[email protected]/

Regards
Hoan

Quoted 3 lines

Will

author
#3 lore raw

Hi Will,

Do you have any comments?

Thanks
Hoan

Quoted 47 lines · Hoan Tran

Hi Will,

Quoted 30 lines · Will Deacon
Quoted 19 lines · Hoan Tran

Some NUMA nodes have memory ranges that span other nodes. Even though a pfn is valid and between a node's start and end pfns, it may not reside on that node.

This patch enables NODES_SPAN_OTHER_NODES config for NUMA to support this type of NUMA layout.

---
  arch/arm64/Kconfig | 7 +++++++

  1 file changed, 7 insertions(+)
arch/arm64/Kconfig +0 -0
index e688dfa..939d28f 100644
@@ -959,6 +959,13 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK

  config HOLES_IN_ZONE
      def_bool y

arch/arm64/Kconfig config NEED_PER_CPU_EMBED_FIRST_CHUNK · line 968

Quoted 7 lines
arch/arm64/Kconfig +7 -0
+# Some NUMA nodes have memory ranges that span other nodes.
+# Even though a pfn is valid and between a node's start and end pfns,
+# it may not reside on that node.
+config NODES_SPAN_OTHER_NODES
+    def_bool y
+    depends on ACPI_NUMA
+

I thought we agreed to do this in the core code?

Quoted 2 lines

https://lore.kernel.org/lkml/[email protected]

Yes, but it looks like Thomas didn't agree to apply this patch into x86.

https://lore.kernel.org/lkml/[email protected]/

Regards
Hoan

Quoted 3 lines

Will

author
#4 lore raw

Hi Will and All,

Any chance you have time to take a look.

Thanks and regards
Hoan

Quoted 55 lines · Hoan Tran

Hi Will,

Do you have any comments?

Thanks
Hoan

Quoted 47 lines · Hoan Tran

Hi Will,

Quoted 30 lines · Will Deacon
Quoted 19 lines · Hoan Tran

Some NUMA nodes have memory ranges that span other nodes. Even though a pfn is valid and between a node's start and end pfns, it may not reside on that node.

This patch enables NODES_SPAN_OTHER_NODES config for NUMA to support this type of NUMA layout.

---
  arch/arm64/Kconfig | 7 +++++++

  1 file changed, 7 insertions(+)
arch/arm64/Kconfig +0 -0
index e688dfa..939d28f 100644
@@ -959,6 +959,13 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK

  config HOLES_IN_ZONE
      def_bool y

arch/arm64/Kconfig config NEED_PER_CPU_EMBED_FIRST_CHUNK · line 968

Quoted 7 lines
arch/arm64/Kconfig +7 -0
+# Some NUMA nodes have memory ranges that span other nodes.
+# Even though a pfn is valid and between a node's start and end pfns,
+# it may not reside on that node.
+config NODES_SPAN_OTHER_NODES
+    def_bool y
+    depends on ACPI_NUMA
+

I thought we agreed to do this in the core code?

Quoted 2 lines

https://lore.kernel.org/lkml/[email protected]

Yes, but it looks like Thomas didn't agree to apply this patch into x86.

https://lore.kernel.org/lkml/[email protected]/

Regards
Hoan

Quoted 3 lines

Will

maintainer
#5 lore raw
In reply to Hoan Tran
Quoted 33 lines · Hoan Tran

Hi Will,

Quoted 30 lines · Will Deacon
Quoted 17 lines · Hoan Tran

Some NUMA nodes have memory ranges that span other nodes. Even though a pfn is valid and between a node's start and end pfns, it may not reside on that node.

This patch enables NODES_SPAN_OTHER_NODES config for NUMA to support this type of NUMA layout.

---
  arch/arm64/Kconfig | 7 +++++++
  1 file changed, 7 insertions(+)
arch/arm64/Kconfig +0 -0
index e688dfa..939d28f 100644

arch/arm64/Kconfig config NEED_PER_CPU_EMBED_FIRST_CHUNK · line 967

Quoted 9 lines
arch/arm64/Kconfig +7 -0
@@ -959,6 +959,13 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK
  config HOLES_IN_ZONE
  	def_bool y
+# Some NUMA nodes have memory ranges that span other nodes.
+# Even though a pfn is valid and between a node's start and end pfns,
+# it may not reside on that node.
+config NODES_SPAN_OTHER_NODES
+	def_bool y
+	depends on ACPI_NUMA
+

I thought we agreed to do this in the core code?

Quoted 6 lines
Quoted 1 line

https://lore.kernel.org/lkml/[email protected]

Yes, but it looks like Thomas didn't agree to apply this patch into x86.

https://lore.kernel.org/lkml/[email protected]/

Was it a clear statement that such change will not make it to x86 or a request for improving the patch or the description? I'd suggest you update the x86 patch comment to include the rationale as per your reply to Thomas and post a new version of the generic series. If Thomas (or the mm folk) reject it again, we'll revisit the arm64-specific thread.

Signature · 1 line
Catalin
author
#6 lore raw

Hi Catalin,

Quoted 39 lines · Catalin Marinas
Quoted 38 lines · Hoan Tran

Hi Will,

Quoted 30 lines · Will Deacon
Quoted 17 lines · Hoan Tran

Some NUMA nodes have memory ranges that span other nodes. Even though a pfn is valid and between a node's start and end pfns, it may not reside on that node.

This patch enables NODES_SPAN_OTHER_NODES config for NUMA to support this type of NUMA layout.

---
   arch/arm64/Kconfig | 7 +++++++
   1 file changed, 7 insertions(+)
arch/arm64/Kconfig +0 -0
index e688dfa..939d28f 100644

arch/arm64/Kconfig config NEED_PER_CPU_EMBED_FIRST_CHUNK · line 967

Quoted 9 lines
arch/arm64/Kconfig +7 -0
@@ -959,6 +959,13 @@ config NEED_PER_CPU_EMBED_FIRST_CHUNK
   config HOLES_IN_ZONE
   	def_bool y
+# Some NUMA nodes have memory ranges that span other nodes.
+# Even though a pfn is valid and between a node's start and end pfns,
+# it may not reside on that node.
+config NODES_SPAN_OTHER_NODES
+	def_bool y
+	depends on ACPI_NUMA
+

I thought we agreed to do this in the core code?

Quoted 1 line

https://lore.kernel.org/lkml/[email protected]

Yes, but it looks like Thomas didn't agree to apply this patch into x86.

Quoted 7 lines
Quoted 1 line

https://lore.kernel.org/lkml/[email protected]/

Was it a clear statement that such change will not make it to x86 or a request for improving the patch or the description? I'd suggest you update the x86 patch comment to include the rationale as per your reply to Thomas and post a new version of the generic series. If Thomas (or the mm folk) reject it again, we'll revisit the arm64-specific thread.

Yes, I have just sent out a new patch for mm core.

Regards
Hoan

Quoted 1 line

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