]> git.ipfire.org Git - people/arne_f/kernel.git/commit
RDMA/hns: Bugfix for memory window mtpt configuration
authorYixian Liu <liuyixian@huawei.com>
Thu, 26 Nov 2020 10:26:12 +0000 (18:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Dec 2020 07:52:00 +0000 (08:52 +0100)
commita84974f0e712dcf07051ca017bf2fd77ffc1b623
treed5b85a24f5b9df129713cd71b137639ab668ae22
parentc16cfa44478bb8738ac3174fb6b893428935881f
RDMA/hns: Bugfix for memory window mtpt configuration

[ Upstream commit 17475e104dcb74217c282781817f8f52b46130d3 ]

When a memory window is bound to a memory region, the local write access
should be set for its mtpt table.

Fixes: c7c28191408b ("RDMA/hns: Add MW support for hip08")
Link: https://lore.kernel.org/r/1606386372-21094-1-git-send-email-liweihang@huawei.com
Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c