riscv: Add numa support for riscv64 platform
authorAtish Patra <atish.patra@wdc.com>
Thu, 19 Nov 2020 00:38:29 +0000 (16:38 -0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 14 Jan 2021 23:08:58 +0000 (15:08 -0800)
commit4f0e8eef772ee4438f304b2178bc28c958b6c13d
treef793c5f7bbfdf6b9546db49bb98563ec212d504d
parent3e5b0bdb2a4dd8c09a9db01b1ead3f69cabd0c67
riscv: Add numa support for riscv64 platform

Use the generic numa implementation to add NUMA support for RISC-V.
This is based on Greentime's patch[1] but modified to use generic NUMA
implementation and few more fixes.

[1] https://lkml.org/lkml/2020/1/10/233

Co-developed-by: Greentime Hu <greentime.hu@sifive.com>
Signed-off-by: Greentime Hu <greentime.hu@sifive.com>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig
arch/riscv/include/asm/mmzone.h [new file with mode: 0644]
arch/riscv/include/asm/numa.h [new file with mode: 0644]
arch/riscv/include/asm/pci.h
arch/riscv/kernel/setup.c
arch/riscv/kernel/smpboot.c
arch/riscv/mm/init.c