Skip to content

arm64, numa: Add numa support for arm64 platforms

David Daney linux-arm-kernel linux-devicetree linux-efi lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v16 Latest6 patches 8 repliesIn review
  2. v156 patches 13 repliesSuperseded
  3. v146 patches 6 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v136 patches8 repliesSuperseded
v125 patches24 repliesSuperseded
v1110 patches11 repliesSuperseded

Changes in v16 from the cover letter

- No functional change.

- Rebase to v4.6-rc2 to avoid merge conflicts.

Patches in v16 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6efi: ARM/arm64: ignore DT memory nodes instead of removing themdrivers/firmware/efi/arm-init.c drivers/firmware/efi/libstub/fdt.c+9 -237 replies
2/6Documentation, dt, numa: dt bindings for NUMA.Documentation/devicetree/bindings/numa.txt+275 -00 replies
3/6of, numa: Add NUMA of binding implementation.drivers/of/Kconfig drivers/of/Makefile drivers/of/of_numa.c +1 more+224 -00 replies
4/6arm64: Move unflatten_device_tree() call earlier.arch/arm64/include/asm/mmu.h arch/arm64/kernel/setup.c arch/arm64/mm/mm.h +1 more+10 -70 replies
5/6arm64, numa: Add NUMA support for arm64 platforms.arch/arm64/Kconfig arch/arm64/include/asm/mmzone.h arch/arm64/include/asm/numa.h +7 more+538 -50 replies
6/6arm64, mm, numa: Add NUMA balancing support for arm64.arch/arm64/Kconfig arch/arm64/include/asm/pgtable.h+16 -01 reply

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchRobert RichterRob HerringShannon ZhaoSteve Capper
1/6A-b
2/6R-b A-b
3/6A-b
4/6
5/6R-b T-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v16 thread

Cover letter [PATCH v16 0/6] arm64, numa: Add numa support for arm64 platforms

From: David Daney <[email protected]>

v16:

- No functional change.

- Rebase to v4.6-rc2 to avoid merge conflicts.

v15:

- Make the distance-map node optional (again), if it is not in the device tree, default values are used.

- Minor cleanups to of_numa.c as suggested by Rob Harring.

v14:
- Revised patch to unflatten the device tree earlier.

- Cleanups and added EXPORT_SYMBOL to of_numa.c as suggested by Rob Harring

v13:
- Added patch to unflatten the device tree earlier.

- Rewrote of_numa.c to work on unflattened the device tree.

- Cleanup of EXPORTs in arch/arm64/mm/numa.c as suggested by Will Deacon.

v12:

- Replaced 6 patches from Ard Biesheuvel with new simpler, and more correct, single patch, also from Ard.

v11:
- Dropped cleanup patches for other architectures, they will be submitted as a separate set after more testing.

- Added patch set from Ard Biesheuvel that are needed to make the whole thing actually work. Previously this was a separate set.

- Kconfig and other fixes and simplifications as suggested by Rob Herring.

- Rearranged, refactored and reordered so that we don't patch new files multiple times.

- Summary:

o 6 patches from Ard Biesheuvel to allow use of "memory" nodes with efi stub.

o 2 patches to document and add of_numa.c

o 1 patch to add arm64 NUMA support.

o 1 patch to add NUMA balancing support for arm64.

v10:
- Incorporated review comments from Rob Herring.
- Moved numa binding and implementation to devicetree core.
- Added cleanup patch to remove redundant NODE_DATA macro from asm header files
- Include numa balancing support for arm64 patch in this series.
- Fix tile build issue reported by the kbuild robot(patch 7)

v9: - Added cleanup patch to reuse and avoid redefinition of cpumask_of_pcibus
as suggested from Will Deacon and Bjorn Helgaas.
- Including patch to Make pci-host-generic driver numa aware.
- Incorporated comment from Shannon Zhao.

v8:
- Incorporated review comments of Mark Rutland and Will Deacon.
- Added pci helper function and macro for numa.

v7:
- managing numa memory mapping using memblock.
- Incorporated review comments of Mark Rutland.

v6:
- defined and implemented the numa dt binding using node property proximity and device node distance-map.
- renamed dt_numa to of_numa

v5:
- created base verion of numa.c which creates dummy numa without using dt on single socket platforms. Then added patches for dt support.
- Incorporated review comments from Hanjun Guo.

v4:
done changes as per Arnd review comments.

v3:
Added changes to support numa on arm64 based platforms. Tested these patches on cavium's multinode(2 node topology) platform. In this patchset, defined and implemented dt bindings for numa mapping for core and memory using device node property arm,associativity.

v2:
Defined and implemented numa map for memory, cores to node and proximity distance matrix of nodes.

v1:
Initial patchset to support numa on arm64 platforms.

Note: 1. This patchset is tested for NUMA and without NUMA with dt
(both with and without NUMA bindings) on thunderx single socket and dual socket boards.

Ard Biesheuvel (1):
efi: ARM/arm64: ignore DT memory nodes instead of removing them

David Daney (2):
of, numa: Add NUMA of binding implementation.
arm64: Move unflatten_device_tree() call earlier.

Ganapatrao Kulkarni (3):
Documentation, dt, numa: dt bindings for NUMA. arm64, numa: Add NUMA support for arm64 platforms. arm64, mm, numa: Add NUMA balancing support for arm64.

 Documentation/devicetree/bindings/numa.txt | 275 ++++++++++++++++++++
 arch/arm64/Kconfig                         |  27 ++
 arch/arm64/include/asm/mmu.h               |   1 +
 arch/arm64/include/asm/mmzone.h            |  12 +
 arch/arm64/include/asm/numa.h              |  45 ++++
 arch/arm64/include/asm/pgtable.h           |  15 ++
 arch/arm64/include/asm/topology.h          |  10 +
 arch/arm64/kernel/pci.c                    |  10 +
 arch/arm64/kernel/setup.c                  |  17 +-
 arch/arm64/kernel/smp.c                    |   4 +
 arch/arm64/mm/Makefile                     |   1 +
 arch/arm64/mm/init.c                       |  35 ++-
 arch/arm64/mm/mm.h                         |   1 -
 arch/arm64/mm/mmu.c                        |   2 -
 arch/arm64/mm/numa.c                       | 396 +++++++++++++++++++++++++++++
 drivers/firmware/efi/arm-init.c            |   8 +
 drivers/firmware/efi/libstub/fdt.c         |  24 +-
 drivers/of/Kconfig                         |   3 +
 drivers/of/Makefile                        |   1 +
 drivers/of/of_numa.c                       | 211 +++++++++++++++
 include/linux/of.h                         |   9 +
 21 files changed, 1072 insertions(+), 35 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/numa.txt
 create mode 100644 arch/arm64/include/asm/mmzone.h
 create mode 100644 arch/arm64/include/asm/numa.h
 create mode 100644 arch/arm64/mm/numa.c
 create mode 100644 drivers/of/of_numa.c
Signature · 1 line
1.8.3.1