Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5225828rwp; Sun, 16 Jul 2023 23:24:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlE/8CSvZlbwk+9LKw8ztGi7JWX26qeCcBVmozM/bRE/E/ZxiV3dzOkYDxVGEcQnpomjGOAj X-Received: by 2002:a17:902:d2cb:b0:1b8:b4f6:1327 with SMTP id n11-20020a170902d2cb00b001b8b4f61327mr6871626plc.6.1689575086815; Sun, 16 Jul 2023 23:24:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689575086; cv=none; d=google.com; s=arc-20160816; b=CrN0LunwDN1kkvK4ARv9e9BpT01NtyZvNtT+EnlTw26eIKWLgi9QoE9CPDxJJ4GTKr iTHKeW6iGUfw/3qG2R1AT92TGVC4mbN/RITUmpFvNaD0yIR7ph5WhB55O6IGf4Rk2Uc0 7GUqeVj9tCfRrpxvb4Zo+4l0wJfcbkhuZr0VmcgVbZv42CtXT+67A4pX/uKl7WPYHFBb blCwbu9vo1W4731h7JKfJmLaBJ1eLoqSwdeihPGsSUmiT8J+EZiOEYaw9EJL8/Be8v7W FpL6Er2mEj0BpF7meJffWBEq8uHhIAH2B1sRvo7lt63mkBgwjyXz+j7kQmI7M9Bg74Jz JDlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=cngJpyIlm2GAOVogjXIJ8kZyWf76TOJLB7uPAkbCzAs=; fh=3H3oLXANh5v13tjHxrBYuXblpWbB01kHKe+fQJ1oJi8=; b=Moe5GhR+5FNDEDmww1eTgD18iG0DWZIoD16Alnz/dOHtG9lUkndNEmFn3ebwX68FiD smtWd13AaMZzX9llZ63aZW9TdG8p99l+NJs8jibA4MVcIH95uHNr5G/1yqJWJeom4RY6 QPmWlSUWBIRStrIIeHkJdwbhbv6D7Uk7MdREW/tdLwExaE+k+YHZ9o3VGYwk277rJ999 dioDhrQsd3FkT1Nk1xfW1KTQ7e3r78Pv658efR4lLqTMBVs1DHeZkAUSu+q9kgUve2Rc lr8PDfNNjzYdKpV8XXy6yLPjpS4nvKE2Ky0r0RhRDDzwk3EFbguIf075hgdWEj/cEIxW srIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z8-20020a170902d54800b001b3bd85f54bsi4894548plf.35.2023.07.16.23.24.34; Sun, 16 Jul 2023 23:24:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231414AbjGQGGZ (ORCPT + 99 others); Mon, 17 Jul 2023 02:06:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231287AbjGQGGP (ORCPT ); Mon, 17 Jul 2023 02:06:15 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D337CE60; Sun, 16 Jul 2023 23:06:13 -0700 (PDT) Received: from kwepemi500006.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R4BMH0WrRzNmFK; Mon, 17 Jul 2023 14:02:51 +0800 (CST) Received: from localhost.localdomain (10.67.165.2) by kwepemi500006.china.huawei.com (7.221.188.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 17 Jul 2023 14:06:09 +0800 From: Junxian Huang To: , CC: , , , Subject: [PATCH v2 for-rc 0/3] RDMA/hns: Improvements for function resource configuration Date: Mon, 17 Jul 2023 14:03:37 +0800 Message-ID: <20230717060340.453850-1-huangjunxian6@hisilicon.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.165.2] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500006.china.huawei.com (7.221.188.68) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here are 3 patches involving function resource configuration. 1. #1: The first patch supports getting xrcd num from firmware. 2. #2: The second patch removes a redundant configuration in driver, which is now handled by firmware. 3. #3: The third patch adds validity check for function resource and adjusts the invalid ones. V2 removes 'inline' before function names in the third patch. Junxian Huang (2): RDMA/hns: Remove VF extend configuration RDMA/hns: Add check and adjust for function resource values Luoyouming (1): RDMA/hns: support get xrcd num from firmware drivers/infiniband/hw/hns/hns_roce_device.h | 1 - drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 194 ++++++++++++-------- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 50 +++-- 3 files changed, 157 insertions(+), 88 deletions(-) -- 2.30.0