mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
598e9dccc7
The blob_encap and blob_decap functions were not flushing the dcache before passing data to CAAM/DMA and not invalidating the dcache when getting data back. Therefore, blob encapsulation and decapsulation failed with errors like the following due to data cache incoherency: "40000006: DECO: desc idx 0: Invalid KEY command" To ensure coherency, we require the key_mod, src and dst buffers to be aligned to the cache line size and flush/invalidate the memory regions. The same requirements apply to the job descriptor. Tested on an i.MX6Q board. Reviewed-by: Sumit Garg <sumit.garg@nxp.com> Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com> |
||
---|---|---|
.. | ||
desc.h | ||
desc_constr.h | ||
error.c | ||
fsl_blob.c | ||
fsl_hash.c | ||
fsl_hash.h | ||
fsl_rsa.c | ||
jobdesc.c | ||
jobdesc.h | ||
jr.c | ||
jr.h | ||
Kconfig | ||
Makefile | ||
rsa_caam.h | ||
sec.c |