diff options
| author | Clemens Gruber <[email protected]> | 2018-01-07 20:26:29 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2018-01-08 08:26:03 -0500 |
| commit | 598e9dccc75d8302df58560c52487248a6c33c4d (patch) | |
| tree | 805e773b33c458ab20982405eb3b180623d89419 /include/linux/unaligned/be_byteshift.h | |
| parent | ca833ca9579b29c5667ea2fa7a9d3f89f1599a94 (diff) | |
crypto/fsl: fix BLOB encapsulation and decapsulation
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 <[email protected]>
Signed-off-by: Clemens Gruber <[email protected]>
Diffstat (limited to 'include/linux/unaligned/be_byteshift.h')
0 files changed, 0 insertions, 0 deletions
