crypto: arm64/crc-t10dif - move NEON yield to C code
authorArd Biesheuvel <ardb@kernel.org>
Wed, 3 Feb 2021 11:36:25 +0000 (12:36 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 10 Feb 2021 06:55:58 +0000 (17:55 +1100)
commitfc754c024a343b836cfbb794afd3c7a87f625dbb
treeb8ac74fbba399721a116d8be67033e28bcfe8c45
parentf0070f4a7934e4deba83fdde70c79d9798b2366b
crypto: arm64/crc-t10dif - move NEON yield to C code

Instead of yielding from the bowels of the asm routine if a reschedule
is needed, divide up the input into 4 KB chunks in the C glue. This
simplifies the code substantially, and avoids scheduling out the task
with the asm routine on the call stack, which is undesirable from a
CFI/instrumentation point of view.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/crct10dif-ce-core.S
arch/arm64/crypto/crct10dif-ce-glue.c