RDMA/hns: Bugfix pbl configuration for rereg mr
authorYixian Liu <liuyixian@huawei.com>
Fri, 23 Nov 2018 07:46:07 +0000 (15:46 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 23 Nov 2018 20:11:47 +0000 (13:11 -0700)
commitca088320a02537f36c243ac21794525d8eabb3bd
tree3e7144d8b30ecb6bf87d9bd1431f58cf8fb2b357
parent24c3456c8d5ee6fc1933ca40f7b4406130682668
RDMA/hns: Bugfix pbl configuration for rereg mr

Current hns driver assigned the first two PBL page addresses from previous
registered MR to the hardware when reregister MR changing the memory
locations occurred. This will lead to PBL addressing error as the PBL has
already been released. This patch fixes this wrong assignment by using the
page address from new allocated PBL.

Fixes: a2c80b7b4119 ("RDMA/hns: Add rereg mr support for hip08")
Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c