From mboxrd@z Thu Jan 1 00:00:00 1970 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 D6772C43461 for ; Tue, 6 Apr 2021 13:27:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 98BCA613B8 for ; Tue, 6 Apr 2021 13:27:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243893AbhDFN2E (ORCPT ); Tue, 6 Apr 2021 09:28:04 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:15560 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243896AbhDFN2E (ORCPT ); Tue, 6 Apr 2021 09:28:04 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FF7Yd1FW3zPnmn; Tue, 6 Apr 2021 21:25:09 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.498.0; Tue, 6 Apr 2021 21:27:47 +0800 From: Weihang Li To: , CC: , , , Weihang Li Subject: [PATCH v2 for-next 0/6] RDMA/hns: Support RoCE on virtual functions of HIP09 Date: Tue, 6 Apr 2021 21:25:08 +0800 Message-ID: <1617715514-29039-1-git-send-email-liweihang@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org This series first do necessary refactor on function's resource code to reduce the complexity of subsequent patches. Then the RoCE support for VFs is introduced. Changes since v1: - Simplify hr_reg_read() by FIELD_GET in #1. - Link: https://patchwork.kernel.org/project/linux-rdma/cover/1617353896-40727-1-git-send-email-liweihang@huawei.com/ Wei Xu (4): RDMA/hns: Query the number of functions supported by the PF RDMA/hns: Reserve the resource for the VFs RDMA/hns: Set parameters of all the functions belong to a PF RDMA/hns: Enable RoCE on virtual functions Xi Wang (2): RDMA/hns: Simplify function's resource related command RDMA/hns: Remove duplicated hem page size config code drivers/infiniband/hw/hns/hns_roce_common.h | 10 + drivers/infiniband/hw/hns/hns_roce_device.h | 6 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 553 ++++++++++++++++------------ drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 236 +++--------- 4 files changed, 385 insertions(+), 420 deletions(-) -- 2.8.1