This patch set adds memory window (mw) support for hip08 in kernel space, including alloc mw and dealloc mw. --- v2->v3: 1. revise the name of patch 1 caused by a stupid mistake 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 alloc 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 | 9 +++ drivers/infiniband/hw/hns/hns_roce_mr.c | 120 ++++++++++++++++++++++++++++ 5 files changed, 205 insertions(+) -- 2.7.4