summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorRadu Solea <radu.solea@nxp.com>2017-05-23 15:13:50 +0300
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit18f7e6949e2606e6c9e0cd56546fb2b8f4156d66 (patch)
treecd0b27f4cf5ec27ab4ecc5d832bf0456fff32469 /crypto
parent346007009521eb6dbf481781bfa3e4ad22f86a64 (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 dd33fbd2d868..8d335ec6dfc5 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;