[PATCH v2] crypto/fsl: add invalidate_dcache_range for hash output buffer

sbabic at denx.de sbabic at denx.de
Fri Apr 22 10:46:50 CEST 2022


> 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 at nxp.com>
> Reviewed-by: Fabio Estevam <festevam at denx.de>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list