crypto: atmel-aes - change the DMA threshold
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Thu, 17 Dec 2015 17:13:06 +0000 (18:13 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 23 Dec 2015 10:19:58 +0000 (18:19 +0800)
Increase the DMA threshold to 256: PIO accesses offer better performances
than the DMA when processing small amounts of data.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c

index a34919f6b7d7112ac693c9f6ba0a54211441ee89..ea645b4ee99744d2bd688c1db83f1cb31f0c43c3 100644 (file)
@@ -76,7 +76,7 @@
 
 #define ATMEL_AES_QUEUE_LENGTH 50
 
-#define ATMEL_AES_DMA_THRESHOLD                16
+#define ATMEL_AES_DMA_THRESHOLD                256
 
 
 struct atmel_aes_caps {