From: wenglianfa wenglianfa@huawei.com
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBD4ID
--------------------------------------------------------------------------
According to the IB protocol, the qp_num of the GSI QP must be set to 1. Therefore, the QP must be created in BANK 1.
Currently, only QPs in BANK 0 and 6 can use extended SGEs, but the GSI QP in bank 1 also need to use extended SGEs. To fix it, the restriction is changed to allow QPs in BANK 1 and BANK 6 to use extended SGEs.
Fixes: 1c16701634e4 ("RDMA/hns: Fix RoCEE hang when multiple QP banks use EXT_SGE") Signed-off-by: wenglianfa wenglianfa@huawei.com Signed-off-by: Xinghai Cen cenxinghai@h-partners.com --- drivers/infiniband/hw/hns/hns_roce_device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/hw/hns/hns_roce_device.h b/drivers/infiniband/hw/hns/hns_roce_device.h index a8083da693bf..f12e56969fd3 100644 --- a/drivers/infiniband/hw/hns/hns_roce_device.h +++ b/drivers/infiniband/hw/hns/hns_roce_device.h @@ -115,7 +115,7 @@ #define VALID_CQ_BANK_MASK_DEFAULT 0xF #define VALID_CQ_BANK_MASK_LIMIT 0x9
-#define VALID_EXT_SGE_QP_BANK_MASK_LIMIT 0x41 +#define VALID_EXT_SGE_QP_BANK_MASK_LIMIT 0x42
#define HNS_ROCE_MAX_CQ_COUNT 0xFFFF #define HNS_ROCE_MAX_CQ_PERIOD 0xFFFF