From: Conor Dooley <conor@kernel.org>
To: "Charlie Jenkins" <charlie@rivosinc.com>,
"Paul Walmsley" <paul.walmsley@sifive.com>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Conor Dooley" <conor.dooley@microchip.com>,
"Song Liu" <song@kernel.org>, "Xi Wang" <xi.wang@gmail.com>,
"Björn Töpel" <bjorn@rivosinc.com>,
"Clément Léger" <cleger@rivosinc.com>
Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/8] riscv: Support compiling the kernel with extensions
Date: Tue, 07 May 2024 08:25:09 +0100 [thread overview]
Message-ID: <12808AB2-0308-4013-9624-E3DEFCC584EA@kernel.org> (raw)
In-Reply-To: <20240506-compile_kernel_with_extensions-v1-0-5c25c134c097@rivosinc.com>
Hey Charlie,
On 7 May 2024 02:40:41 IST, Charlie Jenkins <charlie@rivosinc.com> wrote:
>The kernel currently has the restriction that it can only be compiled
>with the extensions that are hardcoded in arch/risc/Makefile.
>
>Any extension that is not listed in the Makefile can still be used by
>explicitly writing the assembly and using alternative patching.
>
>This series introduces Kconfig options that allow the kernel to be
>compiled with additional extensions.
One thing I don't see in the commit messages or the cover letter is what your actual motivation is
for making these changes.
Are you effectively looking to evaluate the alternatives at build time, or are you looking to
let the compiler use the extension where it sees
fit? Or perhaps both?
Thanks,
Conor.
>
>Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
>---
>Charlie Jenkins (8):
> riscv: Add PLATFORM_MAY_SUPPORT_RISCV_ISA_C Kconfig option
> riscv: Add PLATFORM_MAY_SUPPORT_RISCV_ISA_V Kconfig option
> riscv: Add PLATFORM_SUPPORTS_RISCV_ISA_SVNAPOT Kconfig option
> riscv: Add PLATFORM_MAY_SUPPORT_RISCV_ISA_SVPBMT Kconfig option
> riscv: Add PLATFORM_SUPPORTS_RISCV_ISA_ZBB Kconfig option
> riscv: Add PLATFORM_SUPPORTS_RISCV_ISA_ZBA Kconfig option
> riscv: Add PLATFORM_SUPPORTS_RISCV_ISA_ZBC Kconfig option
> riscv: Add PLATFORM_SUPPORTS_RISCV_ISA_ZBS Kconfig option
>
> arch/riscv/Kconfig | 135 +-----------
> arch/riscv/Kconfig.isa | 393 ++++++++++++++++++++++++++++++++++
> arch/riscv/Makefile | 15 +-
> arch/riscv/crypto/Kconfig | 14 +-
> arch/riscv/include/asm/arch_hweight.h | 33 +--
> arch/riscv/include/asm/checksum.h | 18 +-
> arch/riscv/include/asm/pgtable.h | 3 +-
> arch/riscv/include/asm/simd.h | 3 +
> arch/riscv/include/asm/vector.h | 3 +-
> arch/riscv/kernel/cpufeature.c | 3 +-
> arch/riscv/kernel/head.S | 8 +-
> arch/riscv/kernel/probes/uprobes.c | 2 +-
> arch/riscv/kernel/process.c | 14 +-
> arch/riscv/kernel/ptrace.c | 6 +
> arch/riscv/lib/csum.c | 48 ++---
> arch/riscv/lib/riscv_v_helpers.c | 1 -
> arch/riscv/lib/strcmp.S | 4 +-
> arch/riscv/lib/strlen.S | 4 +-
> arch/riscv/lib/strncmp.S | 4 +-
> arch/riscv/lib/uaccess_vector.S | 2 +
> arch/riscv/lib/xor.S | 2 +
> arch/riscv/net/bpf_jit.h | 8 +-
> 22 files changed, 511 insertions(+), 212 deletions(-)
>---
>base-commit: 2f47357557b7aa98d9d9002688aae480864ca3f6
>change-id: 20240429-compile_kernel_with_extensions-92dd2403d325
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2024-05-07 7:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-07 1:40 [PATCH 0/8] riscv: Support compiling the kernel with extensions Charlie Jenkins
2024-05-07 1:40 ` [PATCH 1/8] riscv: Add PLATFORM_MAY_SUPPORT_RISCV_ISA_C Kconfig option Charlie Jenkins
2024-05-07 1:40 ` [PATCH 2/8] riscv: Add PLATFORM_MAY_SUPPORT_RISCV_ISA_V " Charlie Jenkins
2024-05-07 1:40 ` [PATCH 3/8] riscv: Add PLATFORM_SUPPORTS_RISCV_ISA_SVNAPOT " Charlie Jenkins
2024-05-07 1:40 ` [PATCH 4/8] riscv: Add PLATFORM_MAY_SUPPORT_RISCV_ISA_SVPBMT " Charlie Jenkins
2024-05-07 5:40 ` Jessica Clarke
2024-05-07 20:39 ` Charlie Jenkins
2024-05-08 1:24 ` Charlie Jenkins
2024-05-07 1:40 ` [PATCH 5/8] riscv: Add PLATFORM_SUPPORTS_RISCV_ISA_ZBB " Charlie Jenkins
2024-05-07 1:40 ` [PATCH 6/8] riscv: Add PLATFORM_SUPPORTS_RISCV_ISA_ZBA " Charlie Jenkins
2024-05-07 1:40 ` [PATCH 7/8] riscv: Add PLATFORM_SUPPORTS_RISCV_ISA_ZBC " Charlie Jenkins
2024-05-07 1:40 ` [PATCH 8/8] riscv: Add PLATFORM_SUPPORTS_RISCV_ISA_ZBS " Charlie Jenkins
2024-05-07 7:25 ` Conor Dooley [this message]
2024-05-07 20:04 ` [PATCH 0/8] riscv: Support compiling the kernel with extensions Charlie Jenkins
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=12808AB2-0308-4013-9624-E3DEFCC584EA@kernel.org \
--to=conor@kernel.org \
--cc=aou@eecs.berkeley.edu \
--cc=bjorn@rivosinc.com \
--cc=charlie@rivosinc.com \
--cc=cleger@rivosinc.com \
--cc=conor.dooley@microchip.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=song@kernel.org \
--cc=xi.wang@gmail.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