mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-30 00:21:06 +00:00
d7af2baa49
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
|
||
---|---|---|
.. | ||
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 |