diff options
author | Lang Cheng <chenglang@huawei.com> | 2019-08-21 16:14:33 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2019-08-28 18:57:26 +0300 |
commit | e075da5e7c47ee1c20b4e8f9a20c6105be99b10f (patch) | |
tree | 591799255fd4e84048f6bada5fa7ce24934703c4 /drivers/infiniband/hw/hns/hns_roce_hw_v2.h | |
parent | bfe860351e31e71913d4e6c46aae5724b661a519 (diff) | |
download | linux-e075da5e7c47ee1c20b4e8f9a20c6105be99b10f.tar.xz |
RDMA/hns: Add reset process for function-clear
If the hardware is resetting, the driver should not perform
the mailbox operation.Function-clear needs to add relevant judgment.
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Link: https://lore.kernel.org/r/1566393276-42555-7-git-send-email-oulijun@huawei.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hns/hns_roce_hw_v2.h')
-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 1301629769ed..43219d2f7de0 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.h +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.h @@ -99,6 +99,8 @@ #define HNS_ROCE_V2_HW_RST_TIMEOUT 1000 #define HNS_ROCE_V2_HW_RST_UNINT_DELAY 100 +#define HNS_ROCE_V2_HW_RST_COMPLETION_WAIT 20 + #define HNS_ROCE_CONTEXT_HOP_NUM 1 #define HNS_ROCE_SCCC_HOP_NUM 1 #define HNS_ROCE_MTT_HOP_NUM 1 |