From 80e2831298dc83891d8e6b5d4d71b3692aa74e30 Mon Sep 17 00:00:00 2001 From: Radu Solea Date: Tue, 23 May 2017 15:13:50 +0300 Subject: [PATCH] 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 (Vipul: Fixed merge conflicts) Signed-off-by: Vipul Kumar --- crypto/gcm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/gcm.c b/crypto/gcm.c index 0ad879e1f9b2..f89deff40519 100644 --- a/crypto/gcm.c +++ b/crypto/gcm.c @@ -104,6 +104,7 @@ static int crypto_gcm_setkey(struct crypto_aead *aead, const u8 *key, u8 iv[16]; struct crypto_wait wait; + struct crypto_gcm_setkey_result result ____cacheline_aligned; struct scatterlist sg[1]; struct skcipher_request req; -- 2.17.1