mbox series

[v3,0/2] riscv: Support HAVE_ARCH_HUGE_VMAP and HAVE_ARCH_HUGE_VMALLOC

Message ID 20221012120038.1034354-1-liushixin2@huawei.com (mailing list archive)
Headers show
Series riscv: Support HAVE_ARCH_HUGE_VMAP and HAVE_ARCH_HUGE_VMALLOC | expand

Message

Liu Shixin Oct. 12, 2022, noon UTC
riscv64 can support sv48 now, so we can add more hugepage-related features
which rely on 3th or 4th level of page table. These two patches will
enable HAVE_ARCH_HUGE_VMAP and HAVE_ARCH_HUGE_VMALLOC.

v2->v3: Fix the commit log.
v1->v2: Fix the build error reported by kernel-test.

Liu Shixin (2):
  riscv: Enable HAVE_ARCH_HUGE_VMAP for 64BIT
  riscv: Enable HAVE_ARCH_HUGE_VMALLOC for 64BIT

 .../features/vm/huge-vmap/arch-support.txt    |  2 +-
 arch/riscv/Kconfig                            |  2 +
 arch/riscv/include/asm/vmalloc.h              | 18 ++++
 arch/riscv/mm/Makefile                        |  1 +
 arch/riscv/mm/pgtable.c                       | 83 +++++++++++++++++++
 5 files changed, 105 insertions(+), 1 deletion(-)
 create mode 100644 arch/riscv/mm/pgtable.c

Comments

Palmer Dabbelt Oct. 29, 2022, 12:35 a.m. UTC | #1
On Wed, 12 Oct 2022 20:00:36 +0800, Liu Shixin wrote:
> riscv64 can support sv48 now, so we can add more hugepage-related features
> which rely on 3th or 4th level of page table. These two patches will
> enable HAVE_ARCH_HUGE_VMAP and HAVE_ARCH_HUGE_VMALLOC.
> 
> v2->v3: Fix the commit log.
> v1->v2: Fix the build error reported by kernel-test.
> 
> [...]

Applied, thanks!

[1/2] riscv: Enable HAVE_ARCH_HUGE_VMAP for 64BIT
      https://git.kernel.org/palmer/c/310f541a027b
[2/2] riscv: Enable HAVE_ARCH_HUGE_VMALLOC for 64BIT
      https://git.kernel.org/palmer/c/be79afc740b5

Best regards,