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 5BC2843E57 for ; Sat, 13 Apr 2024 14:55:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5671840A8B; Sat, 13 Apr 2024 14:55:14 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2079.outbound.protection.outlook.com [40.107.95.79]) by mails.dpdk.org (Postfix) with ESMTP id 5F63540DCB for ; Sat, 13 Apr 2024 14:55:13 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O/h1MjNhkZoFnxIpaxdg13+MCI2XsTjTfVayPbFynk3hAT7SC3gXeNn9ttnfX6xHEVf/n2hq+tj+PX8LftXFcyFmAf1FgpMAId6vwMAT6Nc0PK6CkeBLJGi8+1n0DIoqsldyD60Sr4mxArpyIg7MOL62gqOCNaKubKghQh7FpqQCcTJNn+WVv5Fubf/fv/8rInhAou4XiuQva2BebctoMJ4A94mPkkgo4Ga+7KUXwlc+mEPdCqwwFfEp8r/Af/yWTpmltN5ozsllNE6GLH+hDnNGa3wHZbDDyuuhuBWd5GOZ2Oqg+tIpL9VZu7eKXpNtHLVSYQDQjibMHYN9ddQhfw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YWXhNVRqNbwaGYSOYNfV68mRCIosuHCuYNLxmoMqi7Y=; b=HbpmmBxwX3i/HNs2rM8e7oqiD1QAyWHOIH8m7WKMmnefbfoLXcr9vmYossSsk82szJAivdYtWq+sOp3Gm0l4J7H8Vt9AN5/wpxaDqZiDjueEvrApRusr10+e2TLwXWYeedCwInIr3DkOasy1F4nUoidfMU/iG0OOA6uoNLw28+gTAcKJKXHSQH0QyxutH8GkdPYNScXjs0zaQMrxcBb7t3TvBpYfS3jevkgSbnYePWY/QBb6+Vx4hhR13qqca3u6UeTy6v56DeUOHKgyEjbLxyuEEmbL1APuxSdwiF2UbjkwBbzMoVzAiu++fg4HJGXTmCLhv8KOJNBhV0xSXFimeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) 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=YWXhNVRqNbwaGYSOYNfV68mRCIosuHCuYNLxmoMqi7Y=; b=l9IGfyVzQQvdJPxVxOXQ4FsaA5TTVsFG3yXh+8gztY0rpzF8BN41jt+S2aqbZNBCQfkbDMpEJSlQ7aSNZHX6Y3cQlgJZHRcrJYdYyZEvG/wpLbBNB10L45waJvnlNBrcI7jw0Ntjv9hASSsvv9PvrP7pcXGQw0coZL93s0g9mQYYKsfNuQOVs8Z9sB5bx+poa6Sc9q5zzYzEjc1Zrlfqa9O4bnuFfEmPFgwt3m1CoEvtobgjjW9pkePqNzbv3+aq0sLSYOpL5Y01EY9naezahA5gsApZbUgiHExw3TY5rnIbqH83y3ciK2Z3DsjuBAEZX1DXatQm5a19wpnQyyU9Fw== Received: from DM6PR11CA0026.namprd11.prod.outlook.com (2603:10b6:5:190::39) by CH3PR12MB9026.namprd12.prod.outlook.com (2603:10b6:610:125::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Sat, 13 Apr 2024 12:55:11 +0000 Received: from DS3PEPF0000C37A.namprd04.prod.outlook.com (2603:10b6:5:190:cafe::a6) by DM6PR11CA0026.outlook.office365.com (2603:10b6:5:190::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.31 via Frontend Transport; Sat, 13 Apr 2024 12:55:11 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by DS3PEPF0000C37A.mail.protection.outlook.com (10.167.23.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Sat, 13 Apr 2024 12:55:10 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Sat, 13 Apr 2024 05:54:54 -0700 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Sat, 13 Apr 2024 05:54:52 -0700 From: Xueming Li To: Bing Zhao CC: Suanming Mou , dpdk stable Subject: patch 'net/mlx5: fix HWS registers initialization' has been queued to stable release 23.11.1 Date: Sat, 13 Apr 2024 20:48:55 +0800 Message-ID: <20240413125005.725659-55-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240413125005.725659-1-xuemingl@nvidia.com> References: <20240305094757.439387-1-xuemingl@nvidia.com> <20240413125005.725659-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF0000C37A:EE_|CH3PR12MB9026:EE_ X-MS-Office365-Filtering-Correlation-Id: 93501978-f709-4538-4d1d-08dc5bb8f448 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: z/BGUUIrqEyrCxWQfdvWhEapYcUpgRq6j8gQddZk7I8XFlAZ5bvEQCDW87m5zb58etWsC7wUlGTikpgWHb7bW0HEqsUsTKGU2o1M8WgecLNDtsei6igsOkagO2jpwiMYnyCW5yTd2CR17xkdlWNgPGrJgXqw8brMz47PwstlK0uXt5oPNkF5rgOd5XHv+R1XTrCCH5z6OZffsP4gxN5wKyeXkiS8LTHjl4ToKIAI1+EAv59dCXzKtnMeVuNEsTKvJNxMOiyZfTFiB7pZMxStexwmJSsm1DRqqplVEGdDPhafKdNgpfS/D4hGKsQv8zjjRd4xhiz3J55qWZO39c0snTZQFmMrwcbX/XTEEpisuNShA3NMCyeLN8Fjc33d1p9CxlZbQ9CXdxHdaqy3E/gcNrVTixqlmBO/WR4geJSwzIIF2g9PJntN52j/44XLC0jowRaJz46FJiWHz+ltUe9GBcg10gIOvulsvpODOqt1rxJ65clVy403Uwru/QRS/dOB0wS5QEQwSjuRAlLAew301jr+GBtfdMMn95B7k+kSxe6mYMZlRJmUKoqRQ6HT0DgO6/e6roQaKYZSGq88VjDivB3LAf2pm3RhSzPrOZmNuir+hfg1YSXemZNlpad25Om1tYhcugzRDvlOTrU0bhGhn0roZvXmpKVWcolA2a3RvkqRBHKDVkPKXrhnjTtGrrVkOWB1rgVWtxbc03flrDAwxSzSKa8loV5qckZAMNC47gGzKx/jTIlbETJ0rANGN72i X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230031)(82310400014)(1800799015)(376005)(36860700004); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2024 12:55:10.8850 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 93501978-f709-4538-4d1d-08dc5bb8f448 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS3PEPF0000C37A.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB9026 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 Hi, FYI, your patch has been queued to stable release 23.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 04/15/24. 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://git.dpdk.org/dpdk-stable/log/?h=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=ca1084cd4891d179c6a2a8e595358a9045fd3c9b Thanks. Xueming Li --- >From ca1084cd4891d179c6a2a8e595358a9045fd3c9b Mon Sep 17 00:00:00 2001 From: Bing Zhao Date: Tue, 27 Feb 2024 17:26:27 +0200 Subject: [PATCH] net/mlx5: fix HWS registers initialization Cc: Xueming Li [ upstream commit 1beeb6d71fcc2fa73d149071c6880573d78fa071 ] The method to initialize tag registers by using capability bits is not supported on some old NICs. In the meanwhile, the HWS for flow rule insertion is not supported either. There is no need to initialize HWS only resource on the old NICs. Fixes: 48041ccbaa8d ("net/mlx5: initialize HWS flow registers in shared context") Signed-off-by: Bing Zhao Acked-by: Suanming Mou --- drivers/net/mlx5/mlx5.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index 6b5a4da430..df0383078d 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -1689,7 +1689,8 @@ mlx5_init_shared_dev_registers(struct mlx5_dev_ctx_shared *sh) } else { DRV_LOG(DEBUG, "ASO register: NONE"); } - mlx5_init_hws_flow_tags_registers(sh); + if (sh->config.dv_flow_en == 2) + mlx5_init_hws_flow_tags_registers(sh); } /** -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-04-13 20:43:06.743432351 +0800 +++ 0055-net-mlx5-fix-HWS-registers-initialization.patch 2024-04-13 20:43:04.987753945 +0800 @@ -1 +1 @@ -From 1beeb6d71fcc2fa73d149071c6880573d78fa071 Mon Sep 17 00:00:00 2001 +From ca1084cd4891d179c6a2a8e595358a9045fd3c9b Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 1beeb6d71fcc2fa73d149071c6880573d78fa071 ] @@ -12 +14,0 @@ -Cc: stable@dpdk.org @@ -21 +23 @@ -index f2ca0ae4c2..4f7304f099 100644 +index 6b5a4da430..df0383078d 100644 @@ -24 +26 @@ -@@ -1690,7 +1690,8 @@ mlx5_init_shared_dev_registers(struct mlx5_dev_ctx_shared *sh) +@@ -1689,7 +1689,8 @@ mlx5_init_shared_dev_registers(struct mlx5_dev_ctx_shared *sh) @@ -33 +35 @@ - static struct mlx5_physical_device * + /**