[U-Boot] [PATCH] crypto/fsl: fix BLOB encapsulation and decapsulation
Tom Rini
trini at konsulko.com
Wed Jan 3 17:26:26 UTC 2018
On Wed, Jan 03, 2018 at 02:32:44PM -0200, Fabio Estevam wrote:
> Hi Tom,
>
> On Wed, Dec 20, 2017 at 8:08 PM, Clemens Gruber
> <clemens.gruber at pqgruber.com> wrote:
> > 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 allocate aligned memory to store the data passed
> > to/from CAAM and flush/invalidate the memory regions.
> > Blobs can now be encapsulated and decapsulated with the blob cmd as well
> > as from board code by calling blob_encap and blob_decap directly.
> >
> > Tested on an i.MX6Q board.
> >
> > Signed-off-by: Clemens Gruber <clemens.gruber at pqgruber.com>
>
> This bug fix patch seems like a good candidate for 2018.01.
>
> Not sure who can pick it and apply it.
>
> Tom, York? What do you guys think?
I'm fine with it coming in directly or via a PR.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180103/03ad84df/attachment.sig>
More information about the U-Boot
mailing list