summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorRadu Solea <radu.solea@nxp.com>2017-05-23 15:13:50 +0300
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:26:37 +0800
commitbc08b51441e90900fb71d638dc2ada7ac4dace5d (patch)
tree03a4c602b3e6645046c629cd35c9fbce3173e4a3 /crypto
parenta22977448636ab89401c1d7c9ae44b4ea11a759a (diff)
MLK-14785 CAAM: Fix gcm.c to work correctly with CAAM
CAAM uses DMA to transfer data to and from memory, if DMA and CPU accessed data share the same cacheline cache pollution will occur. Marking the result as cacheline aligned moves it to a separate cache line. Signed-off-by: Radu Solea <radu.solea@nxp.com>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/gcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/gcm.c b/crypto/gcm.c
index 3841b5eafa7e..cd9591285233 100644
--- a/crypto/gcm.c
+++ b/crypto/gcm.c
@@ -119,7 +119,7 @@ static int crypto_gcm_setkey(struct crypto_aead *aead, const u8 *key,
be128 hash;
u8 iv[16];
- struct crypto_gcm_setkey_result result;
+ struct crypto_gcm_setkey_result result ____cacheline_aligned;
struct scatterlist sg[1];
struct skcipher_request req;