Re: [PATCH v9 0/3] riscv: Use PUD/P4D/PGD pages for the linear mapping

From: Palmer Dabbelt
Date: Wed Apr 19 2023 - 10:23:03 EST



On Fri, 24 Mar 2023 16:54:18 +0100, Alexandre Ghiti wrote:
> This patchset intends to improve tlb utilization by using hugepages for
> the linear mapping.
>
> As reported by Anup in v6, when STRICT_KERNEL_RWX is enabled, we must
> take care of isolating the kernel text and rodata so that they are not
> mapped with a PUD mapping which would then assign wrong permissions to
> the whole region: it is achieved the same way as arm64 by using the
> memblock nomap API which isolates those regions and re-merge them afterwards
> thus avoiding any issue with the system resources tree creation.
>
> [...]

Applied, thanks!

[1/3] riscv: Get rid of riscv_pfn_base variable
https://git.kernel.org/palmer/c/a7407a1318a9
[2/3] riscv: Move the linear mapping creation in its own function
https://git.kernel.org/palmer/c/8589e346bbb6
[3/3] riscv: Use PUD/P4D/PGD pages for the linear mapping
https://git.kernel.org/palmer/c/3335068f8721

Best regards,
--
Palmer Dabbelt <palmer@xxxxxxxxxxxx>