Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37886612rwd; Tue, 11 Jul 2023 23:09:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlEMZGpcFGRw8pAOMDvy/RuQehJene2fE06VQQg1AIUgzf3VjoZC12kbjINhC/F9qkMoJLi8 X-Received: by 2002:a05:6a00:15c6:b0:682:a6bd:e952 with SMTP id o6-20020a056a0015c600b00682a6bde952mr18046803pfu.6.1689142147490; Tue, 11 Jul 2023 23:09:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689142147; cv=none; d=google.com; s=arc-20160816; b=d+GIRPTEUQolc+wu6aGIg80FopxijgbA5bl9e2N9Shah/yLtq6tgLqhjedd8Pj6CSc bvJms1SkExGQ4CB4Vh5g9rE1gblRlfElop1PdDlZBTCjvRhM4pasvtTze4EP7i+5Yumd 3tqEa727c4hZCtCEZVSBv1WAhx250ZSW7M/9/7J6U2dYBKd0xDSLO2iwzMm3RRSFc8O+ Pqm5rf8+bU3zIpyvVsB2MIMd4Jr7uXY47KS0nSK5Ivdw0femMZuSvrKR+j3clscOL4w2 bELW7iOd8DJifF/7UMyLGGrc9rKt6xGuVwKcXY2ET5IrZwo1wJP40jmYAyOBrLIUcKvH PgIQ== 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=o0kBUN9GmwG1hWBEG79bcK6CNrKjVxRXn7hpdQn1NOw=; fh=3H3oLXANh5v13tjHxrBYuXblpWbB01kHKe+fQJ1oJi8=; b=WgD4yzQZ4VWw7eXYG19oMS5xIaVYogG78PyIWtryfWW3wkkuNzhCtt3C8GNwjGAapH ChQRQPjjJEIcFqcyWOryq1uUhjbMg9oAoKxVZlNymzQiu171hS6v5k4JFaNO8uPod0Xz xO/Brl2VsVK4inK/AcIiQc8aNzdwFL2LG1AYjg9SRK+SrFfPPIZHuY2JzozWp/XhkziY UqDZkb215FNsbmhTuEJM89P3Lnk1kKae0X60XKM9BHPAZADHQny1gTj/iA058WOmShRt 3mT3cU5d0qXlbGzBEQaRoSFeoTh1bkJa+4Iev+Du8ZS26PFegJ2dtP98MwILCHCeztHE aj3w== 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 k2-20020a63ff02000000b0055adfd71daesi2268696pgi.663.2023.07.11.23.08.42; Tue, 11 Jul 2023 23:09:07 -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 S231992AbjGLGDZ (ORCPT + 99 others); Wed, 12 Jul 2023 02:03:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230329AbjGLGDQ (ORCPT ); Wed, 12 Jul 2023 02:03:16 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49155173F; Tue, 11 Jul 2023 23:03:04 -0700 (PDT) Received: from kwepemi500006.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R16X00kJKzMqbW; Wed, 12 Jul 2023 13:59:44 +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; Wed, 12 Jul 2023 14:03:00 +0800 From: Junxian Huang To: , CC: , , , Subject: [PATCH for-rc 0/3] RDMA/hns: Improvements for function resource configuration Date: Wed, 12 Jul 2023 14:00:30 +0800 Message-ID: <20230712060033.15961-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: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500006.china.huawei.com (7.221.188.68) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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. 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 | 195 ++++++++++++-------- drivers/infiniband/hw/hns/hns_roce_hw_v2.h | 50 +++-- 3 files changed, 158 insertions(+), 88 deletions(-) -- 2.30.0