From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 791FFA0A0E for ; Mon, 10 May 2021 18:05:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6FECD4003E; Mon, 10 May 2021 18:05:56 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2046.outbound.protection.outlook.com [40.107.220.46]) by mails.dpdk.org (Postfix) with ESMTP id ECED94003E for ; Mon, 10 May 2021 18:05:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gUYwScw/Iu24DsF9tgwn++0EYytC+mi1pkTpYXjtBM0uqChZ4H2j8kLJsTT50b5xIYCtbsLI4tb+Q4eraABY5LXKmkwy+xcurBuhxaieJYQy50W1BWQFMfZeNALJSTGbcDKa+q+L4E5lLm9u0LvdhZ9xB8hjp2+EmZSw4WKJ/mkVXSnrvm+fi1TfoFVdXp7FpE5AuWXsjkcLGM8aVnc+2OC5rHlhCTabqIt2YIl7ISOgsvcG9JcodayyvE6lNx84wjbxTKqvfE3vubWu0NjnMjaPwaDTLkKaKd7MRzv8uW1SnlOGE97HXYlPGnskbfbTtGbjH5JW9KmjT/5zTyBlow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pOyEISLH4HpHvN/XQwYjR22GuuWoCNxoGnjCgC49rIc=; b=lzKlYx6yujKLtKu+0PNISa53kfRkC4qbTZ+XVVg2iFETlhdFCGMnpm0enPNPe3zGEKNSJc7jUt+5tw8lnRXJrgUTKnnVgx93vZ55ObUUR+Rs7lydZNBxo1buPxyTLbolsIjxgNVeVT4wsfubTcRpzqHcFVyRPdctIxhTUHBC3kSOcZ1UJGiL+GMpVEIfzOj108F0ztwvPNIo2ZKciD7G709flZJtoXQlFPJI3BNwffqqpfskGcLMBL4sk2U9f1asAIMj1nfh8LpsKUnk94AsT2zNV4YrpVLia9xcqtBkJSbFwGAj03k6l5EP9DoyFk+7xfaG5LW+3w64wshznwFO9g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pOyEISLH4HpHvN/XQwYjR22GuuWoCNxoGnjCgC49rIc=; b=cT12PtAgr8x2QW1EPQnRydusZHwKSIcjsuTMKq44koD3gqsaq0220cvZPVetYc5v55Q/X/77cwMAI12GQs1D+KJJS0bPr88ZKZuf7ilT5BWfR19W3//eSmBnTV6T2UjF8ASFYBThdcINBbVNX6xd4cKwS8fre+fH6U7pshz60vEHPwzmNzXrUBrI91Kcp9B5KW5+Y6Ghk3A5re2+HvTWdgLwKCv0Mr2e1MrufXWSkaT/u+U3EdADkoN268YBtWEK9YBl2q8D66FvYc6+7IwbxXAQC9ZCgX8h5ktS6F6Er/nL297iCRuyofn6s9ZTfYO0Ryi9J1pHegrfxtU6yhNbHQ== Received: from BN9PR03CA0060.namprd03.prod.outlook.com (2603:10b6:408:fb::35) by BL0PR12MB4707.namprd12.prod.outlook.com (2603:10b6:208:8a::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.27; Mon, 10 May 2021 16:05:53 +0000 Received: from BN8NAM11FT049.eop-nam11.prod.protection.outlook.com (2603:10b6:408:fb:cafe::2f) by BN9PR03CA0060.outlook.office365.com (2603:10b6:408:fb::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:05:53 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT049.mail.protection.outlook.com (10.13.177.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:05:53 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 May 2021 16:05:51 +0000 From: Xueming Li To: Huisong Li CC: Luca Boccassi , dpdk stable Date: Mon, 10 May 2021 23:59:35 +0800 Message-ID: <20210510160258.30982-26-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510160258.30982-1-xuemingl@nvidia.com> References: <20210510160258.30982-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e8f01542-b534-4ea6-d184-08d913cd7ce9 X-MS-TrafficTypeDiagnostic: BL0PR12MB4707: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fNC05S10h0LgTBCwIHYyD2TaBVMrZBxHrJeF5xAllaTOwFzZbdO5DEceXneHfXNbpELc2z1ISVnc/4IZN2AieCESZZK/7L8zexEeSNhnqwlIT5ZWn1hXLazafi90V0Hc5MkgTX2V3szLeSzslFF9ngp/tWhK0Dsj3Xk572KYD8JUo+e6YP60TFTUnsudddKZnmqKRCuybSUz2pvwfDLDvKYBlYXA/8ny5mEwLHmI0wqoYU6rxp7IlHxhy6S74sNOjt+GRDdeG0oQQbSEZ7DoMbtzXnvzgSU9pNckmXJXlSMOOLiN1hlg8udCORRBdeiLMWdWhxOEPlwidwrXoRRdshtqLTjAgRqCjK+xkWSjMD12Q7ZpRDHJL2JHVTaBQhWXd3r6GA/VccwdBhINeNKM69cWZP0dnoVREGAXAP9KEt6h7uyWxGj6KNZHrT2b1Np7VNBkX8nWyBvvd77MWtp5Wy/RoxBke2NfSsuV73hMZjwcQf8/JMBqiUb5QNsxX8grOPUoo3JZM97wKphBd8iJq1VcgOHsw2mPdcSUIxxO6ICkmMRv/vC/OfZrloXxU32wwGJIQ5AQsQ1heE6wQB3I2pB0zd2Hm/eKeF2Yp9UuWW6IZVyI4iSCi87RY/94wBJRSI+qJF1cDqcgXn6jyVrmZOGDqSIvwvJjNKyl4s3IdhDF2U8tUkaNzaxtbp0CRHZjKeclbHBQl806VwmKFPQ8+cZ+GiO688cvm6QEwdg52nWA1/KmkpHvphV10H1gDRP0Y8Cq69OJ9P6K9KBwhaP+8g== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(136003)(376002)(346002)(396003)(39860400002)(46966006)(36840700001)(966005)(70206006)(2616005)(70586007)(1076003)(8676002)(478600001)(336012)(186003)(6916009)(16526019)(8936002)(47076005)(426003)(82740400003)(7636003)(7696005)(54906003)(4326008)(26005)(5660300002)(36860700001)(6666004)(82310400003)(53546011)(356005)(316002)(36906005)(36756003)(83380400001)(55016002)(86362001)(6286002)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2021 16:05:53.2818 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e8f01542-b534-4ea6-d184-08d913cd7ce9 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT049.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4707 Subject: [dpdk-stable] patch 'net/hns3: fix device capabilities for copper media type' has been queued to stable release 20.11.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/12/21. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/e4e0a6505d77bec24938065bc77ecd0a74e02ae8 Thanks. Xueming Li --- >From e4e0a6505d77bec24938065bc77ecd0a74e02ae8 Mon Sep 17 00:00:00 2001 From: Huisong Li Date: Thu, 4 Mar 2021 15:44:47 +0800 Subject: [PATCH] net/hns3: fix device capabilities for copper media type Cc: Luca Boccassi [ upstream commit 68ed5ee49de7f6e3a57c5ecca812b3bbcced6bbf ] The configuration operation for PHY is implemented by firmware. And a capability flag will be report to driver, which means the firmware supports the PHY driver. However, the current implementation only supports obtaining the capability bit, but some basic functions of copper ports in driver, such as, the query of link status and link info, are not supported. Therefore, it is necessary for driver to set the copper capability bit to zero when the firmware supports the configuration of the PHY. Fixes: 438752358158 ("net/hns3: get device capability from firmware") Fixes: 95e50325864c ("net/hns3: support copper media type") Signed-off-by: Huisong Li --- drivers/net/hns3/hns3_cmd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_cmd.c b/drivers/net/hns3/hns3_cmd.c index 76d16a5a92..7f115d37ef 100644 --- a/drivers/net/hns3/hns3_cmd.c +++ b/drivers/net/hns3/hns3_cmd.c @@ -424,8 +424,14 @@ static void hns3_parse_capability(struct hns3_hw *hw, hns3_set_bit(hw->capability, HNS3_DEV_SUPPORT_PTP_B, 1); if (hns3_get_bit(caps, HNS3_CAPS_TX_PUSH_B)) hns3_set_bit(hw->capability, HNS3_DEV_SUPPORT_TX_PUSH_B, 1); + /* + * Currently, the query of link status and link info on copper ports + * are not supported. So it is necessary for driver to set the copper + * capability bit to zero when the firmware supports the configuration + * of the PHY. + */ if (hns3_get_bit(caps, HNS3_CAPS_PHY_IMP_B)) - hns3_set_bit(hw->capability, HNS3_DEV_SUPPORT_COPPER_B, 1); + hns3_set_bit(hw->capability, HNS3_DEV_SUPPORT_COPPER_B, 0); if (hns3_get_bit(caps, HNS3_CAPS_TQP_TXRX_INDEP_B)) hns3_set_bit(hw->capability, HNS3_DEV_SUPPORT_INDEP_TXRX_B, 1); if (hns3_get_bit(caps, HNS3_CAPS_STASH_B)) -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-05-10 23:59:27.383658500 +0800 +++ 0027-net-hns3-fix-device-capabilities-for-copper-media-ty.patch 2021-05-10 23:59:26.350000000 +0800 @@ -1 +1 @@ -From 68ed5ee49de7f6e3a57c5ecca812b3bbcced6bbf Mon Sep 17 00:00:00 2001 +From e4e0a6505d77bec24938065bc77ecd0a74e02ae8 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Luca Boccassi + +[ upstream commit 68ed5ee49de7f6e3a57c5ecca812b3bbcced6bbf ] @@ -18 +20,0 @@ -Cc: stable@dpdk.org @@ -26 +28 @@ -index 32cd56b478..ec34615558 100644 +index 76d16a5a92..7f115d37ef 100644 @@ -29 +31 @@ -@@ -423,8 +423,14 @@ static void hns3_parse_capability(struct hns3_hw *hw, +@@ -424,8 +424,14 @@ static void hns3_parse_capability(struct hns3_hw *hw,