From: Alexandre Ghiti <alex@ghiti.fr>
To: Conor Dooley <conor.dooley@microchip.com>,
Alexandre Ghiti <alexghiti@rivosinc.com>
Cc: "Jonathan Corbet" <corbet@lwn.net>,
"Paul Walmsley" <paul.walmsley@sifive.com>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Conor Dooley" <conor@kernel.org>,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-riscv@lists.infradead.org, "Björn Töpel" <bjorn@kernel.org>
Subject: Re: [PATCH v3] riscv: Allow to downgrade paging mode from the command
Date: Mon, 23 Jan 2023 14:39:35 +0100 [thread overview]
Message-ID: <95d81c9a-11de-7f92-cb76-e4492e9faba8@ghiti.fr> (raw)
In-Reply-To: <Y851L2KgfIF3V6of@wendy>
Hi Conor,
On 1/23/23 12:53, Conor Dooley wrote:
> Hey Alex,
>
> On Mon, Jan 23, 2023 at 11:48:41AM +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@kernel.org>
>> Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
>> ---
> A changelog would be nice here, especially since this is a resend.
I think you may have commented the wrong patch, this one is wrong, hence
the resend!
>
>> .../admin-guide/kernel-parameters.txt | 9 ++-
>> arch/riscv/mm/init.c | 72 +++++++++++++++++--
>> 2 files changed, 74 insertions(+), 7 deletions(-)
>>
>> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
>> index 6cfa6e3996cf..fd647412ec91 100644
>> --- a/Documentation/admin-guide/kernel-parameters.txt
>> +++ b/Documentation/admin-guide/kernel-parameters.txt
>> @@ -3578,8 +3578,15 @@
>> emulation library even if a 387 maths coprocessor
>> is present.
>>
>> - no5lvl [X86-64] Disable 5-level paging mode. Forces
>> + no4lvl [RISCV] Disable 4-level and 5-level paging modes. Forces
>> + kernel to use 3-level paging instead.
>> + Note: On RISC-V, this can't be used when KASAN is
>> + enabled.
>> +
>> + no5lvl [X86-64,RISCV] Disable 5-level paging mode. Forces
>> kernel to use 4-level paging instead.
>> + Note: On RISC-V, this can't be used when KASAN is
>> + enabled.
>>
>> nofsgsbase [X86] Disables FSGSBASE instructions.
>>
> For the improved descriptions & commit message:
> Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Thanks for that, would you mind adding that to the resend patch?
Thanks again,
Alex
>
> Thanks,
> Conor.
>
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2023-01-23 13:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-23 10:48 Alexandre Ghiti
2023-01-23 11:53 ` Conor Dooley
2023-01-23 13:39 ` Alexandre Ghiti [this message]
2023-01-23 14:08 ` Conor Dooley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=95d81c9a-11de-7f92-cb76-e4492e9faba8@ghiti.fr \
--to=alex@ghiti.fr \
--cc=alexghiti@rivosinc.com \
--cc=aou@eecs.berkeley.edu \
--cc=bjorn@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=conor@kernel.org \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®