From 1f9e27111692f020940b2dcd9ad89eab67fc9e36 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 --- crypto/gcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.17.1