diff options
author | oulijun <oulijun@huawei.com> | 2017-11-10 09:55:43 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-11-10 18:15:11 +0100 |
commit | d55142461759890ac6dc3e93b4c5a4271937b1cf (patch) | |
tree | 342d589b56d413d0ed8a2ebae210ff64c72c1521 /drivers/infiniband/hw/hns | |
parent | RDMA/hns: Configure sgid type for hip08 RoCE (diff) | |
download | linux-d55142461759890ac6dc3e93b4c5a4271937b1cf.tar.xz linux-d55142461759890ac6dc3e93b4c5a4271937b1cf.zip |
RDMA/hns: Update calculation of irrl_ba field for hip08
The irrl(initiator RDMA Read/Atomic list) base address of qp
context is assigned for addr[63:6]. This patch mainly fixed
it.
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
Signed-off-by: Shaobo Xu <xushaobo2@huawei.com>
Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/hns')
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index 3b0cf5536486..a950f7838555 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -2393,11 +2393,11 @@ static int modify_qp_init_to_rtr(struct ib_qp *ibqp, V2_QPC_BYTE_108_RX_REQ_EPSN_M, V2_QPC_BYTE_108_RX_REQ_EPSN_S, 0); - context->irrl_ba = (u32)dma_handle_2; + context->irrl_ba = (u32)(dma_handle_2 >> 6); qpc_mask->irrl_ba = 0; roce_set_field(context->byte_208_irrl, V2_QPC_BYTE_208_IRRL_BA_M, V2_QPC_BYTE_208_IRRL_BA_S, - (dma_handle_2 >> 32) & V2_QPC_BYTE_208_IRRL_BA_M); + dma_handle_2 >> (32 + 6)); roce_set_field(qpc_mask->byte_208_irrl, V2_QPC_BYTE_208_IRRL_BA_M, V2_QPC_BYTE_208_IRRL_BA_S, 0); |