This patch series fix some bugs as well as optimze some codes Change from V2: 1. Add a patch 2. Simplify qp state transition 3. Use inline function instead of macro definition 4. Resolve the conflict with SRQ series patch 5. Fix the commit with the third patch Change from V1: 1. Seperate it from the patchset("hns misc updates for 4.20") 2. Add a patch which use cmdq method instead of operating registers of mailbox. Because the hip08 need to limit directly operating register. Lijun Ou (5): RDMA/hns: Init qp context when modify qp from reset to init RDMA/hns: Encapsulate and simplify qp state transition RDMA/hns: Fix the bug while use multi-hop of pbl RDMA/hns: Update posting & querying mailbox RDMA/hns: Bugfix for RoCE loopback test drivers/infiniband/hw/hns/hns_roce_common.h | 3 - drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 137 +++++++++++++++++++--------- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 47 +++++++--- drivers/infiniband/hw/hns/hns_roce_mr.c | 4 +- 4 files changed, 133 insertions(+), 58 deletions(-) -- 1.9.1