From patchwork Sun Sep 23 09:20:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixian Liu X-Patchwork-Id: 10611619 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3848D15E8 for ; Sun, 23 Sep 2018 09:22:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27B4F2A1FC for ; Sun, 23 Sep 2018 09:22:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C32F2A203; Sun, 23 Sep 2018 09:22:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCADC2A1FC for ; Sun, 23 Sep 2018 09:22:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726102AbeIWPTN (ORCPT ); Sun, 23 Sep 2018 11:19:13 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13108 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726126AbeIWPTN (ORCPT ); Sun, 23 Sep 2018 11:19:13 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 446C02DAD4C5D; Sun, 23 Sep 2018 17:22:21 +0800 (CST) Received: from localhost.localdomain (10.67.212.132) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.399.0; Sun, 23 Sep 2018 17:22:20 +0800 From: Yixian Liu To: , CC: , Subject: [PATCH v3 for-next 0/2] RDMA/hns: Add mw support for hip08 in kernel space Date: Sun, 23 Sep 2018 17:20:45 +0800 Message-ID: <1537694447-50612-1-git-send-email-liuyixian@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.67.212.132] X-CFilter-Loop: Reflected Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+)