]> git.dujemihanovic.xyz Git - u-boot.git/commit
crypto/fsl: add invalidate_dcache_range for hash output buffer
authorGaurav Jain <gaurav.jain@nxp.com>
Tue, 19 Apr 2022 05:22:28 +0000 (10:52 +0530)
committerStefano Babic <sbabic@denx.de>
Thu, 21 Apr 2022 13:18:25 +0000 (15:18 +0200)
commit2c16bf2d14d7fbacafb5473f49487ba7f219e40c
tree4a6aef4c41c0ba1b4c33151f812b59c0f2d5e648
parent96b2c9c9e0036e89fe65ad608275152ff44c5907
crypto/fsl: add invalidate_dcache_range for hash output buffer

HW accelerated hash operations are giving incorrect hash output.
so invalidate cache lines to avoid cache overwriting in DDR memory region.

caam_hash()
 -moved address alignment check in the beginning of function.
 -added invalidate_dcache_range for pout buffer before running descriptor.

Fixes: d7af2baa49 (crypto/fsl: Fix HW accelerated hash commands)
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
drivers/crypto/fsl/fsl_hash.c