Home
last modified time | relevance | path

Searched hist:"46 a22776bc97aa5ab9d5f9dc4829859219b86365" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/arm/crypto/
H A Daes-neonbs-glue.cdiff 46a22776bc97aa5ab9d5f9dc4829859219b86365 Tue Sep 03 11:43:24 CDT 2019 Ard Biesheuvel <ard.biesheuvel@linaro.org> crypto: arm/aes-ce - yield the SIMD unit between scatterwalk steps

Reduce the scope of the kernel_neon_begin/end regions so that the SIMD
unit is released (and thus preemption re-enabled) if the crypto operation
cannot be completed in a single scatterwalk step. This avoids scheduling
blackouts due to preemption being enabled for unbounded periods, resulting
in a more responsive system.

After this change, we can also permit the cipher_walk infrastructure to
sleep, so set the 'atomic' parameter to skcipher_walk_virt() to false as
well.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
H A Daes-ce-glue.cdiff 46a22776bc97aa5ab9d5f9dc4829859219b86365 Tue Sep 03 11:43:24 CDT 2019 Ard Biesheuvel <ard.biesheuvel@linaro.org> crypto: arm/aes-ce - yield the SIMD unit between scatterwalk steps

Reduce the scope of the kernel_neon_begin/end regions so that the SIMD
unit is released (and thus preemption re-enabled) if the crypto operation
cannot be completed in a single scatterwalk step. This avoids scheduling
blackouts due to preemption being enabled for unbounded periods, resulting
in a more responsive system.

After this change, we can also permit the cipher_walk infrastructure to
sleep, so set the 'atomic' parameter to skcipher_walk_virt() to false as
well.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>