linux/drivers/infiniband/hw/hns
Chengchang Tang bbddfa2255 RDMA/hns: Fix mbx timing out before CMD execution is completed
When a large number of tasks are issued, the speed of HW processing
mbx will slow down. The standard for judging mbx timeout in the current
firmware is 30ms, and the current timeout standard for the driver is also
30ms.

Considering that firmware scheduling in multi-function scenarios takes a
certain amount of time, this will cause the driver to time out too early
and report a failure before mbx execution times out.

This patch introduces a new mechanism that can set different timeouts for
different cmds and extends the timeout of mbx to 35ms.

Fixes: a04ff739f2 ("RDMA/hns: Add command queue support for hip08 RoCE driver")
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20240710133705.896445-9-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
2024-07-11 13:25:12 +03:00
..
Kconfig RDMA/hns: Remove support for HIP06 2022-01-05 15:50:56 -04:00
Makefile RDMA/hns: Add debugfs to hns RoCE 2023-11-19 14:55:43 +02:00
hns_roce_ah.c RDMA/hns: Support DSCP 2024-04-09 10:27:41 +03:00
hns_roce_alloc.c RDMA/hns: Remove unused parameters and variables 2024-04-16 15:06:47 +03:00
hns_roce_cmd.c RDMA/hns: Support SW stats with debugfs 2023-11-19 14:55:43 +02:00
hns_roce_cmd.h RDMA/hns: Append SCC context to the raw dump of QPC 2024-03-07 11:26:10 +02:00
hns_roce_common.h RDMA/hns: Remove support for HIP06 2022-01-05 15:50:56 -04:00
hns_roce_cq.c RDMA: Pass entire uverbs attr bundle to create cq function 2024-06-27 16:28:21 -03:00
hns_roce_db.c RDMA/hns: Remove support for HIP06 2022-01-05 15:50:56 -04:00
hns_roce_debugfs.c RDMA/hns: Support SW stats with debugfs 2023-11-19 14:55:43 +02:00
hns_roce_debugfs.h RDMA/hns: Support SW stats with debugfs 2023-11-19 14:55:43 +02:00
hns_roce_device.h RDMA/hns: Fix missing pagesize and alignment check in FRMR 2024-07-11 13:25:11 +03:00
hns_roce_hem.c RDMA/hns: Add mutex_destroy() 2024-04-16 15:06:47 +03:00
hns_roce_hem.h RDMA/hns: Use complete parentheses in macros 2024-04-16 15:06:47 +03:00
hns_roce_hw_v2.c RDMA/hns: Fix mbx timing out before CMD execution is completed 2024-07-11 13:25:12 +03:00
hns_roce_hw_v2.h RDMA/hns: Fix mbx timing out before CMD execution is completed 2024-07-11 13:25:12 +03:00
hns_roce_main.c RDMA/hns: Add mutex_destroy() 2024-04-16 15:06:47 +03:00
hns_roce_mr.c RDMA/hns: Fix missing pagesize and alignment check in FRMR 2024-07-11 13:25:11 +03:00
hns_roce_pd.c RDMA/hns: Support SW stats with debugfs 2023-11-19 14:55:43 +02:00
hns_roce_qp.c RDMA/hns: Fix shift-out-bounds when max_inline_data is 0 2024-07-11 13:25:12 +03:00
hns_roce_restrack.c RDMA/hns: Append SCC context to the raw dump of QPC 2024-03-07 11:26:10 +02:00
hns_roce_srq.c RDMA/hns: Fix undifined behavior caused by invalid max_sge 2024-07-11 13:25:12 +03:00