Re: [PATCH resend v3] riscv: Allow to downgrade paging mode from the command line

From: Conor Dooley
Date: Mon Jan 23 2023 - 09:11:09 EST


On Mon, Jan 23, 2023 at 11:51:35AM +0100, Alexandre Ghiti wrote:
> Add 2 early command line parameters that allow to downgrade satp mode
> (using the same naming as x86):
> - "no5lvl": use a 4-level page table (down from sv57 to sv48)
> - "no4lvl": use a 3-level page table (down from sv57/sv48 to sv39)
>
> Note that going through the device tree to get the kernel command line
> works with ACPI too since the efi stub creates a device tree anyway with
> the command line.
>
> Also, as those params are treated very early in the boot process and we
> use standard device tree functions that may be kasan instrumented, we
> only enable them for !KASAN configurations.
>
> Reviewed-by: Björn Töpel <bjorn@xxxxxxxxxx>
> Signed-off-by: Alexandre Ghiti <alexghiti@xxxxxxxxxxxx>
> ---
>
> v3:
> - Massage commit log to make no4lvl clearer, as asked by Conor
> - Add a note to kernel-parameters.txt regarding the impossibility to use
> those parameters when KASAN is enabled, as suggested by Conor

For the improved descriptions & commit message:
Reviewed-by: Conor Dooley <conor.dooley@xxxxxxxxxxxxx>

Apologies for complaining about the missing changelog earlier!

Conor.

Attachment: signature.asc
Description: PGP signature