On 1/28/2019 9:00 PM, Roland Hieber wrote:
> Hi Horia,
> 
> I didn't understand your patch thoroughly yet, but I tested it and it
> gets rid of my DMA-API warning, so:
> 
As mentioned in the commit message, the main idea is to use the buffer holding
the partial hash (state->caam_ctx) also for the final hash.
So now:
-crypto engine DMA writes final hash to state->caam_ctx
-driver copies hash from state->caam_ctx to req->result

There are some implications of this change, mainly the change of DMA mapping
direction for state->caam_ctx, clean-up code (DMA unmapping) and updates in how
crypto engine job descriptors are generated.

> Tested-by: Roland Hieber <r...@pengutronix.de>
> 
Thanks!Horia

Reply via email to