From patchwork Sat Oct 27 07:15:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lijun Ou X-Patchwork-Id: 10658229 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 286D45A4 for ; Sat, 27 Oct 2018 06:37:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F2A92B858 for ; Sat, 27 Oct 2018 06:37:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 038402BFA1; Sat, 27 Oct 2018 06:37:56 +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 2BC492BF9F for ; Sat, 27 Oct 2018 06:37:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728131AbeJ0PRs (ORCPT ); Sat, 27 Oct 2018 11:17:48 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:42672 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728099AbeJ0PRs (ORCPT ); Sat, 27 Oct 2018 11:17:48 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id C0D4F712F2002; Sat, 27 Oct 2018 14:37:50 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.408.0; Sat, 27 Oct 2018 14:37:49 +0800 From: Lijun Ou To: , CC: , Subject: [PATCH for-next 00/10] hns misc updates for 4.20 Date: Sat, 27 Oct 2018 15:15:14 +0800 Message-ID: <1540624524-118822-1-git-send-email-oulijun@huawei.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.71.200.31] 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 series add two new features, include SRQ and DCQCN. From first to the fourth patch implement the SRQ(Share Receive Queue) verbs and update the poll cq verbs to deal with SRQ complentions as well as add the process flow of asynchronous event. The next three patches mainly add DCQCN(Data Center QCN) and timer support for hip08. The remaining patches includes two bugfixes and a Code optimization Lijun Ou (7): RDMA/hns: Eanble SRQ capacity for hip08 RDMA/hns: Init SRQ table for hip08 RDMA/hns: Add SRQ support for hip08 kernel mode RDMA/hns: Add SRQ asynchronous event support RDMA/hns: Init qp context when modify qp from reset to init RDMA/hns: Use the macro instead of qp state transition support RDMA/hns: Fix the bug while use multi-hop of pbl Yangyang Li (3): RDMA/hns: Add SCC context allocation support for hip08 RDMA/hns: Add SCC context clr support for hip08 RDMA/hns: Add timer allocation support for hip08 drivers/infiniband/hw/hns/Makefile | 2 +- drivers/infiniband/hw/hns/hns_roce_alloc.c | 2 + drivers/infiniband/hw/hns/hns_roce_cmd.h | 16 + drivers/infiniband/hw/hns/hns_roce_device.h | 130 +++++- drivers/infiniband/hw/hns/hns_roce_hem.c | 109 ++++- drivers/infiniband/hw/hns/hns_roce_hem.h | 5 + drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 613 ++++++++++++++++++++++++++-- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 178 +++++++- drivers/infiniband/hw/hns/hns_roce_main.c | 137 +++++++ drivers/infiniband/hw/hns/hns_roce_mr.c | 139 ++++++- drivers/infiniband/hw/hns/hns_roce_qp.c | 50 ++- drivers/infiniband/hw/hns/hns_roce_srq.c | 490 ++++++++++++++++++++++ include/uapi/rdma/hns-abi.h | 6 + 13 files changed, 1799 insertions(+), 78 deletions(-) create mode 100644 drivers/infiniband/hw/hns/hns_roce_srq.c