From patchwork Fri Dec 11 01:37:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weihang Li X-Patchwork-Id: 11967077 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1FEFAC1B0E3 for ; Fri, 11 Dec 2020 01:42:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0344923C18 for ; Fri, 11 Dec 2020 01:42:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390525AbgLKBlV (ORCPT ); Thu, 10 Dec 2020 20:41:21 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:8985 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390514AbgLKBk4 (ORCPT ); Thu, 10 Dec 2020 20:40:56 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4CsYNT2qR6zhqT5; Fri, 11 Dec 2020 09:39:05 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Fri, 11 Dec 2020 09:39:22 +0800 From: Weihang Li To: , CC: , , Subject: [PATCH v5 for-next 00/11] RDMA/hns: Updates for 5.11 Date: Fri, 11 Dec 2020 09:37:26 +0800 Message-ID: <1607650657-35992-1-git-send-email-liweihang@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org There are miscellaneous updates for hns driver: * #1 fixes a potential length issue when copying udata. * #2 fixes the unreasonable judgment when using HEM of SRQ and SCCC. * #3 fixes wrong value of Traffic Class. * #4 and #5 fix issues about Service Level. * #6 ~ #11 are cleanups, including removing dead code, fixing coding style issues and so on. Changes since v4: - Fix a compiler error caused by #9. Changes since v3: - Avoid an unused variable warning in #10. Changes since v2: - Remove WARN_ON() in #5 when filling QPC. Changes since v1: - Only do shift on tclass when using RoCEv2 in #3. Previous version: v4: https://patchwork.kernel.org/project/linux-rdma/cover/1607608479-54518-1-git-send-email-liweihang@huawei.com/ v3: https://patchwork.kernel.org/project/linux-rdma/cover/1607606572-11968-1-git-send-email-liweihang@huawei.com/ v2: https://patchwork.kernel.org/project/linux-rdma/cover/1607078436-26455-1-git-send-email-liweihang@huawei.com/ v1: https://patchwork.kernel.org/project/linux-rdma/cover/1606899553-54592-1-git-send-email-liweihang@huawei.com/ Lang Cheng (1): RDMA/hns: Fix coding style issues Weihang Li (3): RDMA/hns: Do shift on traffic class when using RoCEv2 RDMA/hns: Avoid filling sl in high 3 bits of vlan_id RDMA/hns: WARN_ON if get a reserved sl from users Wenpeng Liang (3): RDMA/hns: Limit the length of data copied between kernel and userspace RDMA/hns: Normalization the judgment of some features RDMA/hns: Fix incorrect symbol types Xinhao Liu (1): RDMA/hns: Clear redundant variable initialization Yixian Liu (2): RDMA/hns: Remove unnecessary access right set during INIT2INIT RDMA/hns: Simplify AEQE process for different types of queue Yixing Liu (1): RDMA/hns: Fix inaccurate prints drivers/infiniband/hw/hns/hns_roce_ah.c | 13 +-- drivers/infiniband/hw/hns/hns_roce_alloc.c | 4 +- drivers/infiniband/hw/hns/hns_roce_cmd.c | 37 +++--- drivers/infiniband/hw/hns/hns_roce_cmd.h | 6 +- drivers/infiniband/hw/hns/hns_roce_common.h | 14 +-- drivers/infiniband/hw/hns/hns_roce_cq.c | 42 +++---- drivers/infiniband/hw/hns/hns_roce_db.c | 8 +- drivers/infiniband/hw/hns/hns_roce_device.h | 87 ++++++-------- drivers/infiniband/hw/hns/hns_roce_hem.c | 44 +++---- drivers/infiniband/hw/hns/hns_roce_hem.h | 2 +- drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 41 +++---- drivers/infiniband/hw/hns/hns_roce_hw_v1.h | 2 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 172 +++++++++------------------- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 6 +- drivers/infiniband/hw/hns/hns_roce_main.c | 19 +-- drivers/infiniband/hw/hns/hns_roce_mr.c | 25 ++-- drivers/infiniband/hw/hns/hns_roce_pd.c | 13 ++- drivers/infiniband/hw/hns/hns_roce_qp.c | 82 +++++++------ drivers/infiniband/hw/hns/hns_roce_srq.c | 48 ++++---- 19 files changed, 297 insertions(+), 368 deletions(-)