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 4ED3445CE3 for ; Mon, 11 Nov 2024 07:36:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 477E340685; Mon, 11 Nov 2024 07:36:39 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2062.outbound.protection.outlook.com [40.107.94.62]) by mails.dpdk.org (Postfix) with ESMTP id 662CF40685 for ; Mon, 11 Nov 2024 07:36:38 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=oI+YvjSBQ+NIXDRi8F5luqskPhbjUwN5foyC0Uil2Tcs7J6FZaTWDx7zciiRP8be7r0AuTskA+G3yGxY+mZnCsn5aOehcm9/KGTKTxP3hKfH4hUnsDaoTPCApjJJgt40PSm+6mIP0KHIS5nCKlxCW9f4kD98EeEEdLARRQLHy/20vGMYzbp/HLxSnVfU8QbZFyFb5yJ8FmwFIOKU5gmqdXmowuPKBJ0pCJMwPl8Lt02CP8V9/TEsnBe4/GiUojpWLayoKUJB2zZHdrt6qh8trYBT2HKc2OxwdVtWnfAmuLIlAUfVKNPk8o1M0MzXXkyx+lnQuvlYp2kWreIDPMbqPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Xj9TOtk6UUqtDuTEJLdpr77JpGvdbBDYKJNId+C9c0o=; b=caWKPR1swH9O7BPXB+fUmGQzU3knf15ca0Zf8qtziyJzeWBg3xt59Vi1uxTCfnvUoUtYBN3nNJQ6V4k/daaDJLdL7M+rLqg776alkns4ih7wnohUmlzzLSr2Q7ZRk/xh644HZVEC2xC/QD4DBFPORy59TfUacPnhtO5AvhwyxSGq0jHwPV5tF12kLY18UwmOKweBkekCrI1HD5L8TA+vAfd7QaatIaAjre3UopiOatuj5TLROtbDziA1umhbOIsvFyYx62gkwHPChEfyyQLhDGpfQFZySNug5TI1Hf9tXdgI4JDjxAB7+2xuNqY/AXMKqPsqdKRvwSC/EX4jPc3QLQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=intel.com 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=Xj9TOtk6UUqtDuTEJLdpr77JpGvdbBDYKJNId+C9c0o=; b=kldzIKHmTYCwFA1kPrLb5JNT/kmtuFFt+2RvfmfZ1uZ3vRfY5x7nxTtA/3qYmNw4FubbOwE/o50NT331qYRSMpN+4dpRyFd7xaLW9ZNjsOllKZcHQqNEnV9DfHhPXwGshId2601IP4fYrc+ILKCJEHQE38NRLXNSR9M08yLdx8+qdPtTTq9vOKIIi1n/irgIYG5M4V/AA+LQneHymqoHyqXUaFO7Xnq1auoK5rWZiXil5shipfYOIF//kYK+plZC2OUqyTpnh+vcUCkjaBIING1IEcnFq9ojJR3AwIffWN8rky5+DiyBOZl4n9BH30rKrMEv0RNCcpcorO56DHVeFA== Received: from BL0PR02CA0127.namprd02.prod.outlook.com (2603:10b6:208:35::32) by IA0PR12MB8862.namprd12.prod.outlook.com (2603:10b6:208:48e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.27; Mon, 11 Nov 2024 06:36:35 +0000 Received: from BL02EPF00021F68.namprd02.prod.outlook.com (2603:10b6:208:35:cafe::b6) by BL0PR02CA0127.outlook.office365.com (2603:10b6:208:35::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.27 via Frontend Transport; Mon, 11 Nov 2024 06:36:35 +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 BL02EPF00021F68.mail.protection.outlook.com (10.167.249.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.14 via Frontend Transport; Mon, 11 Nov 2024 06:36:35 +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.1544.4; Sun, 10 Nov 2024 22:36:20 -0800 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.1544.4; Sun, 10 Nov 2024 22:36:18 -0800 From: Xueming Li To: Bruce Richardson CC: , Ian Stokes , dpdk stable Subject: patch 'net/ice: fix AVX-512 pointer copy on 32-bit' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:27:56 +0800 Message-ID: <20241111062847.216344-71-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241111062847.216344-1-xuemingl@nvidia.com> References: <20241111062847.216344-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: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF00021F68:EE_|IA0PR12MB8862:EE_ X-MS-Office365-Filtering-Correlation-Id: 9dab0420-17ff-4313-8bc5-08dd021b307a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?XPcA6URLelOblpwQuCR1OUyGOWEIr5efwD2obx0H6w3JccRxSW+oOy2buZSV?= =?us-ascii?Q?kRRuhL6SOlh+2Xdwlva4lHoxV7DE6NmM6HPSXq5xt5AVcr4bY8sRSKzy6rD4?= =?us-ascii?Q?8uPB4tBLpFvG85TFlXmaepcZrrZ1gXPClZs/B2hpmD1mj+ls78VLmpL2z07x?= =?us-ascii?Q?dcHLWcmjlfSz+L2v/EUlAr/J5ZzFbYqV/Z+YqEwzXiwdI7iPrS/QOVKxoHqv?= =?us-ascii?Q?EntZ8ukhNBJ2Z4m9WCuCwDFwTPy+byAMgbDOXxn1vlHzvTU1+wlP4V+GiYZk?= =?us-ascii?Q?OO+9N0KCHsTo5g8fIPcimyX4pyAZFq+t+0oIUumd6z29kQ/CucV+UmbtZJI9?= =?us-ascii?Q?pY56srnEZ3XZKzCzDQdnHIeriVsS/P4bkk9PqFpV7mgQbzVuzlGyYS6vQm7C?= =?us-ascii?Q?WfZ4vakKD92oW11N65KNiNAX9gHafqwMBvzOsdiwvcGPrbBgODEg3rBtG7bV?= =?us-ascii?Q?iz5DfxL911lb1haPWj3VvmXSTAYZd4TMasxSLow+qG/Bl/a+XMkQTI4VrYgj?= =?us-ascii?Q?EVfiUNwE+buf5/LdQIKvtYfb6CJAg9nPmWCD9bdj0ZmsTiJZR/FkSagXI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.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230040)(1800799024)(376014)(36860700013)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 06:36:35.5157 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9dab0420-17ff-4313-8bc5-08dd021b307a 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: BL02EPF00021F68.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8862 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.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/30/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=d3a59470caf12bea8b3cf166d7965509b2e1de5a Thanks. Xueming Li --- >From d3a59470caf12bea8b3cf166d7965509b2e1de5a Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Fri, 6 Sep 2024 15:11:25 +0100 Subject: [PATCH] net/ice: fix AVX-512 pointer copy on 32-bit Cc: Xueming Li [ upstream commit da97aeafca4cdd40892ffb7e628bb15dcf9c0f25 ] The size of a pointer on 32-bit is only 4 rather than 8 bytes, so copying 32 pointers only requires half the number of AVX-512 load store operations. Fixes: a4e480de268e ("net/ice: optimize Tx by using AVX512") Signed-off-by: Bruce Richardson Acked-by: Ian Stokes --- drivers/net/ice/ice_rxtx_vec_avx512.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ice/ice_rxtx_vec_avx512.c b/drivers/net/ice/ice_rxtx_vec_avx512.c index 04148e8ea2..add095ef06 100644 --- a/drivers/net/ice/ice_rxtx_vec_avx512.c +++ b/drivers/net/ice/ice_rxtx_vec_avx512.c @@ -907,6 +907,7 @@ ice_tx_free_bufs_avx512(struct ice_tx_queue *txq) uint32_t copied = 0; /* n is multiple of 32 */ while (copied < n) { +#ifdef RTE_ARCH_64 const __m512i a = _mm512_loadu_si512(&txep[copied]); const __m512i b = _mm512_loadu_si512(&txep[copied + 8]); const __m512i c = _mm512_loadu_si512(&txep[copied + 16]); @@ -916,6 +917,12 @@ ice_tx_free_bufs_avx512(struct ice_tx_queue *txq) _mm512_storeu_si512(&cache_objs[copied + 8], b); _mm512_storeu_si512(&cache_objs[copied + 16], c); _mm512_storeu_si512(&cache_objs[copied + 24], d); +#else + const __m512i a = _mm512_loadu_si512(&txep[copied]); + const __m512i b = _mm512_loadu_si512(&txep[copied + 16]); + _mm512_storeu_si512(&cache_objs[copied], a); + _mm512_storeu_si512(&cache_objs[copied + 16], b); +#endif copied += 32; } cache->len += n; -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-11 14:23:08.474181072 +0800 +++ 0070-net-ice-fix-AVX-512-pointer-copy-on-32-bit.patch 2024-11-11 14:23:05.172192839 +0800 @@ -1 +1 @@ -From da97aeafca4cdd40892ffb7e628bb15dcf9c0f25 Mon Sep 17 00:00:00 2001 +From d3a59470caf12bea8b3cf166d7965509b2e1de5a Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit da97aeafca4cdd40892ffb7e628bb15dcf9c0f25 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org