]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e3c958b42f2feda9305414120681297243c5642
tree3e7144d8b30ecb6bf87d9bd1431f58cf8fb2b357
parent22308e5da2c2f105d013f09206aa1fa1c0f5c96d
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: b99de745c9fa ("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