Re: [PATCH v2 2/2] crypto: caam - fix DMA mapping of stack memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <rhi@xxxxxxxxxxxxxx>
> 
Thanks!Horia




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux