summaryrefslogtreecommitdiff
path: root/drivers/crypto/amcc/crypto4xx_reg_def.h
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2017-10-04 02:00:13 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-10-12 17:55:17 +0300
commit4b5b79998af61db8b0506fba6c0f33b57ea457bd (patch)
treea036b55dc30ae334ff97ba7c26634428ce422e00 /drivers/crypto/amcc/crypto4xx_reg_def.h
parent64e1062b2371cb8d6126d4e970832365a1a84562 (diff)
downloadlinux-4b5b79998af61db8b0506fba6c0f33b57ea457bd.tar.xz
crypto: crypto4xx - fix stalls under heavy load
If the crypto4xx device is continuously loaded by dm-crypt and ipsec work, it will start to work intermittent after a few (between 20-30) seconds, hurting throughput and latency. This patch contains various stability improvements in order to fix this issue. So far, the hardware has survived more than a day without suffering any stalls under the continuous load. Signed-off-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/amcc/crypto4xx_reg_def.h')
-rw-r--r--drivers/crypto/amcc/crypto4xx_reg_def.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/crypto/amcc/crypto4xx_reg_def.h b/drivers/crypto/amcc/crypto4xx_reg_def.h
index 279b8725559f..0a22ec5d1a96 100644
--- a/drivers/crypto/amcc/crypto4xx_reg_def.h
+++ b/drivers/crypto/amcc/crypto4xx_reg_def.h
@@ -261,6 +261,9 @@ union ce_pd_ctl {
} bf;
u32 w;
} __attribute__((packed));
+#define PD_CTL_HASH_FINAL BIT(4)
+#define PD_CTL_PE_DONE BIT(1)
+#define PD_CTL_HOST_READY BIT(0)
union ce_pd_ctl_len {
struct {