From: JiangShui Yang yangjiangshui@h-partners.com
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8LFYK CVE: NA
----------------------------------------------------------------------
In the case of high concurrency of multiple threads, the bus is easily congested when accelerator tasks are running, which prolongs the time required for mailbox operations. Increase the maximum time for the driver to wait for the mailbox operation to complete.
Signed-off-by: JiangShui Yang yangjiangshui@h-partners.com --- drivers/crypto/hisilicon/qm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index 9a96a6f19177..470675093ad1 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -33,7 +33,7 @@ #define QM_MB_CMD_DATA_SHIFT 32 #define QM_MB_CMD_DATA_MASK GENMASK(31, 0) #define QM_MB_STATUS_MASK GENMASK(12, 9) -#define QM_MB_MAX_WAIT_CNT 6000 +#define QM_MB_MAX_WAIT_CNT 20000 #define QM_MB_WAIT_READY_CNT 10
/* sqc shift */