From patchwork Wed Dec 5 09:41:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lijun Ou X-Patchwork-Id: 10713379 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 4185213BF for ; Wed, 5 Dec 2018 09:05:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3040E2CCA2 for ; Wed, 5 Dec 2018 09:05:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 214612CCAA; Wed, 5 Dec 2018 09:05:22 +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 4BC782A3C4 for ; Wed, 5 Dec 2018 09:05:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727138AbeLEJFV (ORCPT ); Wed, 5 Dec 2018 04:05:21 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:50182 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726171AbeLEJFU (ORCPT ); Wed, 5 Dec 2018 04:05:20 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 5D36FA5CC26C3; Wed, 5 Dec 2018 17:05:18 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.408.0; Wed, 5 Dec 2018 17:05:17 +0800 From: Lijun Ou To: , CC: , Subject: [PATCH v4 for-next 0/3] Add DCQCN support for hip08 Date: Wed, 5 Dec 2018 17:41:41 +0800 Message-ID: <1544002904-28495-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 Data Center Quantized Congestion Notification (DCQCN) is a congestion control protocol for large scale RDMA networks. In order to support it, The design of hip08 add a Sofware Congestion Control(SCC) module, which support flow control of 1M QPs. The driver implements the following works: 1.Allocate memory for SCC, which is used for flow contrl info of QPs. 2.Initialize SCC, memory should be clear before used. 3.Allocate memory for timeout retransmission for accurating retransmission interval. This patchset will depend on the patchset("[PATCH v3 for-next 0/4] SRQ support for hip08") Change from v3: 1. Change qpc_timer_table from struct hns_roce_qpc_timer_table to struct hns_roce_hem_table, and struct hns_roce_qpc_timer_table was delete. 2. Change cqc_timer_table from struct hns_roce_cqc_timer_table to struct hns_roce_hem_table, and struct hns_roce_cqc_timer_table was delete. Change from v2: 1. Add changelog 2. Add note for depending on the other patchset. Change from v1: 1. Separate it from the original patchset("hns misc updates for 4.20") 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/hns_roce_cmd.h | 12 ++ drivers/infiniband/hw/hns/hns_roce_device.h | 23 ++++ drivers/infiniband/hw/hns/hns_roce_hem.c | 68 +++++++++- drivers/infiniband/hw/hns/hns_roce_hem.h | 3 + drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 195 +++++++++++++++++++++++++++- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 64 ++++++++- drivers/infiniband/hw/hns/hns_roce_main.c | 54 ++++++++ drivers/infiniband/hw/hns/hns_roce_qp.c | 29 ++++- 8 files changed, 440 insertions(+), 8 deletions(-)