[U-Boot] [PATCH] crypto/fsl: Fix HW accelerated hash commands
York Sun
york.sun at nxp.com
Wed Jan 24 19:13:30 UTC 2018
On 01/17/2018 04:02 AM, Breno Lima wrote:
> The hash command function were not flushing the dcache before passing data
> to CAAM/DMA and not invalidating the dcache when getting data back.
>
> Due the data cache incoherency, HW accelerated hash commands used to fail
> with CAAM errors like "Invalid KEY Command".
>
> Check if pbuf and pout buffers are properly aligned to the cache line size
> and flush/invalidate the memory regions to address this issue.
>
> This solution is based in a previous work from Clemens Gruber in
> commit 598e9dccc75d ("crypto/fsl: fix BLOB encapsulation and
> decapsulation")
>
> Reported-by: Anatolij Gustschin <agust at denx.de>
> Signed-off-by: Breno Lima <breno.lima at nxp.com>
> ---
Applied to fsl-qoriq master. Thanks.
York
More information about the U-Boot
mailing list