]> git.baikalelectronics.ru Git - uboot.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)
commit72f5d609bfe9507fa9386a3b2955486e1c52c424
tree4a6aef4c41c0ba1b4c33151f812b59c0f2d5e648
parent578f9c400b5ad3f86cbd217193d6adb75936f37d
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: b33dbb8714 (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