From: Tom Rini Date: Sun, 7 Jan 2018 19:11:40 -0500 Subject: [U-Boot] [PATCH v3] crypto/fsl: fix BLOB encapsulation and decapsulation In-Reply-To: <20180107192629.23534-1-clemens.gruber@pqgruber.com> References: <20180107192629.23534-1-clemens.gruber@pqgruber.com> Message-ID: <20180108001140.GC31350@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Jan 07, 2018 at 08:26:29PM +0100, Clemens Gruber 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 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. > > Signed-off-by: Clemens Gruber This has passed Travis-CI here, and I will apply it directly if there's no objections, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: