]> git.ipfire.org Git - thirdparty/linux.git/commit
riscv: mm: support Svnapot in huge vmap
authorQinglin Pan <panqinglin2020@iscas.ac.cn>
Thu, 9 Feb 2023 13:16:47 +0000 (21:16 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 8 Mar 2023 03:39:17 +0000 (19:39 -0800)
commitce173474cf19fe7fbe8f0fc74e3c81ec9c3d9807
tree654881f5cad8ea44d1f1db7ac5c9774bcb13be6d
parent82a1a1f3bfb628c4a44652349b94c66c7e8be7c9
riscv: mm: support Svnapot in huge vmap

As HAVE_ARCH_HUGE_VMAP and HAVE_ARCH_HUGE_VMALLOC is supported, we can
implement arch_vmap_pte_range_map_size and arch_vmap_pte_supported_shift
for Svnapot to support huge vmap about napot size.

It can be tested by huge vmap used in pci driver. Huge vmalloc with svnapot
can be tested by test_vmalloc with [1] applied, and probe this
module to run fix_size_alloc_test with use_huge true.

[1]https://lore.kernel.org/all/20221212055657.698420-1-panqinglin2020@iscas.ac.cn/

Signed-off-by: Qinglin Pan <panqinglin00@gmail.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230209131647.17245-4-panqinglin00@gmail.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/vmalloc.h