RDMA/hns: Bugfix for memory window mtpt configuration
authorYixian Liu <liuyixian@huawei.com>
Thu, 26 Nov 2020 10:26:12 +0000 (18:26 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 26 Nov 2020 14:57:32 +0000 (10:57 -0400)
commit17475e104dcb74217c282781817f8f52b46130d3
tree3e234fff9bebe437deb1f1602f81caeb0626fabe
parentab6f7248cc446b85fe9e31091670ad7c4293d7fd
RDMA/hns: Bugfix for memory window mtpt configuration

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