summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2023-12-24 11:21:36 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-26 01:33:33 +0300
commit28076a1a44407a15442589780b1d06579504adc3 (patch)
treeddb28bf4a0dd3b5aa76bb38778fec52812f4ddf0 /crypto
parent8bb4be72f74b13d51e5e460441b97618252ce481 (diff)
downloadlinux-28076a1a44407a15442589780b1d06579504adc3.tar.xz
crypto: sahara - do not resize req->src when doing hash operations
[ Upstream commit a3c6f4f4d249cecaf2f34471aadbfb4f4ef57298 ] When testing sahara sha256 speed performance with tcrypt (mode=404) on imx53-qsrb board, multiple "Invalid numbers of src SG." errors are reported. This was traced to sahara_walk_and_recalc() resizing req->src and causing the subsequent dma_map_sg() call to fail. Now that the previous commit fixed sahara_sha_hw_links_create() to take into account the actual request size, rather than relying on sg->length values, the resize operation is no longer necessary. Therefore, remove sahara_walk_and_recalc() and simplify associated logic. Fixes: 5a2bb93f5992 ("crypto: sahara - add support for SHA1/256") Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions