crypto: caam - ensure descriptor buffers are cacheline aligned
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
3d5a2db695
commit
e11793f5da
|
@ -99,17 +99,17 @@ static struct list_head hash_list;
|
|||
|
||||
/* ahash per-session context */
|
||||
struct caam_hash_ctx {
|
||||
struct device *jrdev;
|
||||
u32 sh_desc_update[DESC_HASH_MAX_USED_LEN];
|
||||
u32 sh_desc_update_first[DESC_HASH_MAX_USED_LEN];
|
||||
u32 sh_desc_fin[DESC_HASH_MAX_USED_LEN];
|
||||
u32 sh_desc_digest[DESC_HASH_MAX_USED_LEN];
|
||||
u32 sh_desc_finup[DESC_HASH_MAX_USED_LEN];
|
||||
dma_addr_t sh_desc_update_dma;
|
||||
u32 sh_desc_update[DESC_HASH_MAX_USED_LEN] ____cacheline_aligned;
|
||||
u32 sh_desc_update_first[DESC_HASH_MAX_USED_LEN] ____cacheline_aligned;
|
||||
u32 sh_desc_fin[DESC_HASH_MAX_USED_LEN] ____cacheline_aligned;
|
||||
u32 sh_desc_digest[DESC_HASH_MAX_USED_LEN] ____cacheline_aligned;
|
||||
u32 sh_desc_finup[DESC_HASH_MAX_USED_LEN] ____cacheline_aligned;
|
||||
dma_addr_t sh_desc_update_dma ____cacheline_aligned;
|
||||
dma_addr_t sh_desc_update_first_dma;
|
||||
dma_addr_t sh_desc_fin_dma;
|
||||
dma_addr_t sh_desc_digest_dma;
|
||||
dma_addr_t sh_desc_finup_dma;
|
||||
struct device *jrdev;
|
||||
u32 alg_type;
|
||||
u32 alg_op;
|
||||
u8 key[CAAM_MAX_HASH_KEY_SIZE];
|
||||
|
|
Loading…
Reference in New Issue