]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 08:24:35 +0000 (09:24 +0100)
commit4c7d50c23a88f3e655bf241c4be67d6716fa87a6
treee63fb13de444f490bd2e89c6b845c6405107b565
parentad374d10b78e3af930119d9b381e9578c41d986f
RDMA/hns: Bugfix pbl configuration for rereg mr

[ 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>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c