Re: [U-Boot] [PATCH] crypto/fsl: Fix HW accelerated hash commands

2018-01-24 Thread York Sun
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 "Invali

[U-Boot] [PATCH] crypto/fsl: Fix HW accelerated hash commands

2018-01-17 Thread Breno Lima
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