From patchwork Mon Oct 8 10:57:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixian Liu X-Patchwork-Id: 10630395 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 317C4112B for ; Mon, 8 Oct 2018 10:57:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2279228B3F for ; Mon, 8 Oct 2018 10:57:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1696828B5C; Mon, 8 Oct 2018 10:57:24 +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 4290028B4B for ; Mon, 8 Oct 2018 10:57:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726511AbeJHSI3 (ORCPT ); Mon, 8 Oct 2018 14:08:29 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:55582 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726612AbeJHSI3 (ORCPT ); Mon, 8 Oct 2018 14:08:29 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E40CF5A99643D; Mon, 8 Oct 2018 18:57:16 +0800 (CST) Received: from localhost.localdomain (10.67.212.132) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.399.0; Mon, 8 Oct 2018 18:57:16 +0800 From: Yixian Liu To: , CC: , Subject: [PATCH v2 rdma-core 0/3] libhns: Add mw support for hip08 in user space Date: Mon, 8 Oct 2018 18:57:40 +0800 Message-ID: <1538996263-18072-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 patchset adds memory window (mw) support for hip08, including mw alloc, dealloc and bind. --- v1->v2: 1. revise according to Jason'comments, remove unsupported checking, and reture 0 when function ends with success. Yixian Liu (3): libhns: Add alloc mw support for hip08 libhns: Add dealloc mw support for hip08 libhns: Add bind mw support for hip08 providers/hns/hns_roce_u.c | 3 ++ providers/hns/hns_roce_u.h | 5 +++ providers/hns/hns_roce_u_hw_v2.c | 34 ++++++++++++++++++-- providers/hns/hns_roce_u_hw_v2.h | 12 +++++++ providers/hns/hns_roce_u_verbs.c | 68 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 120 insertions(+), 2 deletions(-)