public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Biggers <ebiggers@kernel.org>
To: Andreas Schwab <schwab@suse.de>
Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org,
	Ard Biesheuvel <ardb@kernel.org>,
	"Jason A . Donenfeld" <Jason@zx2c4.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	Vivian Wang <wangruikang@iscas.ac.cn>,
	Jerry Shih <jerry.shih@sifive.com>,
	"David S . Miller" <davem@davemloft.net>,
	Palmer Dabbelt <palmer@dabbelt.com>,
	Paul Walmsley <pjw@kernel.org>, Alexandre Ghiti <alex@ghiti.fr>,
	"Martin K . Petersen" <martin.petersen@oracle.com>,
	Han Gao <gaohan@iscas.ac.cn>,
	linux-riscv@lists.infradead.org, stable@vger.kernel.org
Subject: Re: [PATCH] lib/crypto: riscv: Depend on RISCV_EFFICIENT_VECTOR_UNALIGNED_ACCESS
Date: Thu, 12 Feb 2026 09:47:09 -0800	[thread overview]
Message-ID: <20260212174709.GB2269@sol> (raw)
In-Reply-To: <mvm1piq9ron.fsf@suse.de>

On Thu, Feb 12, 2026 at 11:34:00AM +0100, Andreas Schwab wrote:
> On Dez 06 2025, Eric Biggers wrote:
> 
> > Replace the RISCV_ISA_V dependency of the RISC-V crypto code with
> > RISCV_EFFICIENT_VECTOR_UNALIGNED_ACCESS, which implies RISCV_ISA_V as
> > well as vector unaligned accesses being efficient.
> 
> That should be a runtime dependency.
> 

Currently there's no easy way to make it a runtime dependency,
especially given RISC-V's support for systems where the
"vector unaligned accesses are supported and efficient" property can
vary across CPUs on the same system and thus also vary at runtime as
CPUs go online and offline.  See
https://lore.kernel.org/linux-riscv/20251206195655.GA4665@quark/ where I
described these challenges in more detail.

I'd certainly *like* to make it a runtime dependency.  But the RISC-V
folks will need to provide a way to do that.  Part of that will likely
involve dropping support for systems where some CPUs don't have the same
feature set as the boot CPU, aligning with the other architectures.

For now, this patch was the only real option.

- Eric

      reply	other threads:[~2026-02-12 17:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-06 21:37 [PATCH] lib/crypto: riscv: Depend on RISCV_EFFICIENT_VECTOR_UNALIGNED_ACCESS Eric Biggers
2025-12-09  4:26 ` Jerry Shih
2025-12-09 23:12 ` Eric Biggers
2026-02-12 10:34 ` Andreas Schwab
2026-02-12 17:47   ` Eric Biggers [this message]

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=20260212174709.GB2269@sol \
    --to=ebiggers@kernel.org \
    --cc=Jason@zx2c4.com \
    --cc=alex@ghiti.fr \
    --cc=ardb@kernel.org \
    --cc=davem@davemloft.net \
    --cc=gaohan@iscas.ac.cn \
    --cc=herbert@gondor.apana.org.au \
    --cc=jerry.shih@sifive.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=martin.petersen@oracle.com \
    --cc=palmer@dabbelt.com \
    --cc=pjw@kernel.org \
    --cc=schwab@suse.de \
    --cc=stable@vger.kernel.org \
    --cc=wangruikang@iscas.ac.cn \
    /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