This patch set adds memory window (mw) support for hip08 in kernel space, including mw alloc and dealloc. --- v1->v2: 1. delete unnecessary user-space judgement as kernel not support mw. 2. refactor patch set to avoid making changes for patch 1 in patch 2, which is unreasonable. Yixian Liu (2): RDMA/hns: Add dealloc mw support for hip08 RDMA/hns: Add dealloc mw support for hip08 drivers/infiniband/hw/hns/hns_roce_device.h | 21 +++++ drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 45 +++++++++++ drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 10 +++ drivers/infiniband/hw/hns/hns_roce_main.c | 12 +++ drivers/infiniband/hw/hns/hns_roce_mr.c | 120 ++++++++++++++++++++++++++++ 5 files changed, 208 insertions(+) -- 2.7.4