[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251017170456.GD1566@sol>
Date: Fri, 17 Oct 2025 10:04:56 -0700
From: Eric Biggers <ebiggers@...nel.org>
To: Ard Biesheuvel <ardb+git@...gle.com>
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-crypto@...r.kernel.org, herbert@...dor.apana.org.au,
Ard Biesheuvel <ardb@...nel.org>
Subject: Re: [PATCH v3 03/21] crypto/arm64: sm4-ce-gcm - Avoid pointless
yield of the NEON unit
On Wed, Oct 08, 2025 at 05:45:37PM +0200, Ard Biesheuvel wrote:
> From: Ard Biesheuvel <ardb@...nel.org>
>
> Kernel mode NEON sections are now preemptible on arm64, and so there is
> no need to yield it when calling APIs that may sleep.
>
> Also, move the calls to kernel_neon_end() to the same scope as
> kernel_neon_begin(). This is needed for a subsequent change where a
> stack buffer is allocated transparently and passed to
> kernel_neon_begin().
>
> While at it, simplify the logic.
>
> Acked-by: Eric Biggers <ebiggers@...nel.org>
> [ardb: Simplify convoluted logic]
> Signed-off-by: Ard Biesheuvel <ardb@...nel.org>
> ---
> arch/arm64/crypto/sm4-ce-gcm-glue.c | 25 +++++---------------
> 1 file changed, 6 insertions(+), 19 deletions(-)
Reviewed-by: Eric Biggers <ebiggers@...nel.org>
- Eric
Powered by blists - more mailing lists