diff options
author | Wei Hu (Xavier) <xavier.huwei@huawei.com> | 2019-02-03 20:43:14 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-02-04 16:13:50 -0700 |
commit | 6a04aed6afaefd5fd396f23da184298135f31e37 (patch) | |
tree | 3a03143501975d57cfa47cd755872cb0ec89bb89 /drivers/infiniband/hw/hns/hns_roce_hw_v2.h | |
parent | RDMA/hns: Fix the Oops during rmmod or insmod ko when reset occurs (diff) | |
download | linux-dev-6a04aed6afaefd5fd396f23da184298135f31e37.tar.xz linux-dev-6a04aed6afaefd5fd396f23da184298135f31e37.zip |
RDMA/hns: Fix the chip hanging caused by sending mailbox&CMQ during reset
On hi08 chip, There is a possibility of chip hanging and some errors when
sending mailbox & doorbell during reset. We can fix it by prohibiting
mailbox and doorbell during reset and reset occurred to ensure that
hardware can work normally.
Fixes: a04ff739f2a9 ("RDMA/hns: Add command queue support for hip08 RoCE driver")
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h index 938d36a5fa3d..f22094e2ebab 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h @@ -96,6 +96,8 @@ #define HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE 2 #define HNS_ROCE_V2_RSV_QPS 8 +#define HNS_ROCE_V2_HW_RST_TIMEOUT 1000 + #define HNS_ROCE_CONTEXT_HOP_NUM 1 #define HNS_ROCE_SCCC_HOP_NUM 1 #define HNS_ROCE_MTT_HOP_NUM 1 |