]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerSultan Alsawaf <sultan.alsawaf@canonical.com>
Wed, 24 Jul 2019 15:45:11 +0000 (09:45 -0600)
commit40a573d104f5c73e4de5fbdca802df3df2b4e7ea
tree493167b6bb9c7b1011e28c2bec4b8a045d189678
parenta0622823d9a0753c8ce533ec4ba04e80cc39404d
RDMA/hns: Bugfix pbl configuration for rereg mr

BugLink: https://bugs.launchpad.net/bugs/1837161
[ Upstream commit ca088320a02537f36c243ac21794525d8eabb3bd ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c