diff options
author | Horia Geanta <horia.geanta@freescale.com> | 2014-07-23 04:59:38 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-07-23 09:28:40 -0400 |
commit | 29b77e5dd88e1b920e3e65681f0e7b961ebbdeb8 (patch) | |
tree | da212d3ff05961e7728f9cfc78f40e0fa4abab93 /crypto/testmgr.h | |
parent | 126ae9adc1ec8d9006542f1a5e474b0183845e21 (diff) |
crypto: testmgr - avoid DMA mapping from text, rodata, stack
With DMA_API_DEBUG set, following warnings are emitted
(tested on CAAM accelerator):
DMA-API: device driver maps memory from kernel text or rodata
DMA-API: device driver maps memory from stack
and the culprits are:
-key in __test_aead and __test_hash
-result in __test_hash
MAX_KEYLEN is changed to accommodate maximum key length from
existing test vectors in crypto/testmgr.h (131 bytes) and rounded.
Signed-off-by: Horia Geanta <horia.geanta@freescale.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.h')
-rw-r--r-- | crypto/testmgr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h index 4bb607189b8d..46df9e88bbf3 100644 --- a/crypto/testmgr.h +++ b/crypto/testmgr.h | |||
@@ -32,7 +32,7 @@ | |||
32 | #define MAX_DIGEST_SIZE 64 | 32 | #define MAX_DIGEST_SIZE 64 |
33 | #define MAX_TAP 8 | 33 | #define MAX_TAP 8 |
34 | 34 | ||
35 | #define MAX_KEYLEN 56 | 35 | #define MAX_KEYLEN 160 |
36 | #define MAX_IVLEN 32 | 36 | #define MAX_IVLEN 32 |
37 | 37 | ||
38 | struct hash_testvec { | 38 | struct hash_testvec { |