]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/hns: Fix mbx timing out before CMD execution is completed
authorChengchang Tang <tangchengchang@huawei.com>
Wed, 10 Jul 2024 13:37:05 +0000 (21:37 +0800)
committerLeon Romanovsky <leon@kernel.org>
Thu, 11 Jul 2024 10:25:12 +0000 (13:25 +0300)
commitbbddfa2255dd0800209697fd12378e02ed05f833
tree912012433c2b1129eac1477b5a79670f28e71a18
parent0b8e658f70ffd5dc7cda3872fd524d657d4796b7
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: a04ff739f2a9 ("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>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c
drivers/infiniband/hw/hns/hns_roce_hw_v2.h