riscv: Use hugepage mappings for vmemmap
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Thu, 14 Dec 2023 13:29:35 +0000 (14:29 +0100)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 11 Jan 2024 16:01:47 +0000 (08:01 -0800)
commitff172d4818ad32dba433dae189e36684e43c5c74
tree67be4620ee9278501e038660b6b2b737447e6b1d
parentd3e591a38c98d448ae84eba1f89388c55382cb0e
riscv: Use hugepage mappings for vmemmap

This will allow better TLB utilization and then should be more performant.

Before:

---[ vmemmap start ]---
0xffff8d8002000000-0xffff8d8012000000    0x000000046ec00000       256M PTE .   ..     ..   D A G . . W R V
---[ vmemmap end ]---

After:

---[ vmemmap start ]---
0xffff8d8002000000-0xffff8d8012000000    0x000000046ec00000       256M PMD .   ..     ..   D A G . . W R V
---[ vmemmap end ]---

Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20231214132935.212864-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/init.c