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 27C5745CE3 for ; Mon, 11 Nov 2024 07:36:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1DC2140685; Mon, 11 Nov 2024 07:36:19 +0100 (CET) Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2067.outbound.protection.outlook.com [40.107.102.67]) by mails.dpdk.org (Postfix) with ESMTP id CA81140685 for ; Mon, 11 Nov 2024 07:36:17 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=B7L0RGks6Gd+6rKOFaeLC2tJOv45JcJPP81ucxzw0FqrdF0jmWXN5S+eRcUCPoScVlUv8nxKctczlGwA5RgZvzYyadg8uHBaewoup/XjodiQN5CsZzN03BttrZwCma8bnSfuV0wr7TYqhIQy6ToSI3XlX8PknjcygtXY2jZhNRDmLEi6DuMUdtqbyzBWMZVc54JbxfSn+B7/BkSH8KU9GqZXJ6TgB9ehyMECAiIoHFCylGc5jSyvYxgzZHS6psopVi3asPD0EbLkqbyvXBdYEFc/z4rd0c13W48utW8kZewq2TJNscZSMLk3f3Mb070O/Jf7PjcBob8VMeswykHXNA== 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=NazhBAaFhCuhLMNj6/RGlZx0aGiczoJjvQTY0Sf/zE0=; b=st+0xl+KRmqN2I0VWvB+HE2DODAmPgsndHU/pAYj1iV8cNslMw33jJ3LE6CSKAcoW1ZOiV3SsiUcSdyPKJwNvpjYb137ONKzDj05ysE0CDQJTVPhpeIgvY0SWyaY1fvzgnN9oNQte5hCph/qjre1CzEWFYromS+kJ4Db3jO9Pu2C9Z2sk+6WsbpjUXZE9HLtZpIqZnaXNGK4Ei95CHeI8TqzyCg5rHH3b14bvhc7RIB0yy5cMT2SHghMNe+QKiXbA1O9XQk+D0hKc+K0CGSkyoF2fVbTmennGhPE/9m/qh+ByZIH6aMbydp7zyjontWZu24OghX1fQ+9Gq5LGglT/A== 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=NazhBAaFhCuhLMNj6/RGlZx0aGiczoJjvQTY0Sf/zE0=; b=YL5rHMcbCKrCjr/5TU39mCtPK0ay10zZ8m2ijBPGy4uK/D1P+dk82TXLYkLp9YOyufUeSY94PC6wsqVfwGVrAIlbi0w+FqaZOYSBCywkxJtV5QPEaEVnFX7pi5PwVPBpwyoq1Xximvj4MfShMCZV6gny0pdECWmbAopgfK7rWacLDneGO/LuFrdpuqnMl0PoWJURPXxtjVI3bNwJC/50uqfPjO2reLR1dZd1Wvh2gazoMJqRAV4aBTKaXDmlxu1Rg0CppPfRnW0LjaEXN/VbCY/RTw356rN9TX4f6j8gkeQmi5RAooisetRsMbuGVRg2a0qSzkMb7mXbRU/G8P0Lqw== Received: from BL1PR13CA0436.namprd13.prod.outlook.com (2603:10b6:208:2c3::21) by MN0PR12MB6221.namprd12.prod.outlook.com (2603:10b6:208:3c3::22) 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:13 +0000 Received: from BL02EPF00021F6D.namprd02.prod.outlook.com (2603:10b6:208:2c3:cafe::30) by BL1PR13CA0436.outlook.office365.com (2603:10b6:208:2c3::21) 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:13 +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 BL02EPF00021F6D.mail.protection.outlook.com (10.167.249.9) 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:13 +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:35:58 -0800 Received: from nvidia.com (10.126.231.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:35:56 -0800 From: Xueming Li To: Bruce Richardson CC: , Ian Stokes , dpdk stable Subject: patch 'net/i40e: fix AVX-512 pointer copy on 32-bit' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:27:55 +0800 Message-ID: <20241111062847.216344-70-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.231.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: BL02EPF00021F6D:EE_|MN0PR12MB6221:EE_ X-MS-Office365-Filtering-Correlation-Id: 33512be5-4879-4e5f-ab95-08dd021b236f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|82310400026|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?g3jYxcb5GILEPMfgD/InEWP7NqVW3pgntb/dyi/WE/xc/i9X7ggc+cGMsllz?= =?us-ascii?Q?Xn+q/g5A8ywd2joEY0fgxI+n8JKBuanfWu9tI/I/fNjWispr6w8NOD+yWC/C?= =?us-ascii?Q?c6SKHMHA55ZV49BiFgkd9f7n8ZMoSDEcQE6LdyctS+YnT3FoT4PM/+f/HdDJ?= =?us-ascii?Q?5sHRDe15I2b4PPuZOC4a9dYnUAAdUWdYwlZqqzxltec6IwLmtSYl2Ib4s60r?= =?us-ascii?Q?iGcee4Y9ZJj1RSv8Ls1SG2S7W2cEwqncR0itp+LGGX34WgUHucTKK+l/0QIA?= =?us-ascii?Q?3Q89ATqTdjjnxuHVli30HpOWC+vzawW8LzSAiFjR0LmbazYVFvLjsKiZrlqt?= =?us-ascii?Q?8eA9hlspLhtzTQz9oVaEwtuTiBNrXvI1dULyHo3pXxjt9URQW2iYZxxTSGzZ?= =?us-ascii?Q?eCJ8kaDX6twM/LsnUosyrb2wbh0c0GErHogMTY8If0NLbFljce4ePLwDCO/L?= =?us-ascii?Q?tfHZZ+GAwr1LeQCdGC0aHRBWGtRRa1m4NOfdB1bp62A+E4BB479JvLPHftxJ?= =?us-ascii?Q?vWuloZutq5eBO0f/zMr91oavvMliEzaq2AzrqpaEPWioKzKf33cZsRx7Eo3g?= =?us-ascii?Q?Z46N52H38g8Kv4aOS08kGFUZP0vczlon1f8DEFeHADShIwnH1/9qI5n6SQFv?= =?us-ascii?Q?2jHThkLiHo/EWlfZss9ZeI81CVuQf0mzk75gEiqFi1yH6dcZjEwNxMqfWZRN?= =?us-ascii?Q?25e8Ztmjvh9O1l0W4tmA76QxOEJr6BSM0deKL9h37MSfK6LPU99uiGq+D7DJ?= =?us-ascii?Q?8D74nO/3e+VBmwO+DqMjMdnTZ6cpoqQbnLoEDSI1aGe707K3+AA890F0zdIw?= =?us-ascii?Q?VDLijrHmkdKzD9+ps4QCtlVEfUlBjtiqtv8nS5/kWsxNbEaMzSUXTng/Rg0b?= =?us-ascii?Q?m1BHwq9lVd7uocGGG3/SejnF0rc0afXtCfmSS0itXblccgwyH82gtDOHRW7e?= =?us-ascii?Q?qrn6fWvJ24clzrdbvRFj75RD8gPqHL57QkvvMjPLy79jkloZ1NBLGBYOibVm?= =?us-ascii?Q?qkV+NRI9qaZI0If/SxR8HYGCbzFuJJ9L373YkVFjvm9BJD1l0HSQ5c5Otofd?= =?us-ascii?Q?07HA9i9SgWlVEKLEnXkHBcwHZEJ8IA0/d7sb3vv67yj1b3jYfPKPdxIvImbQ?= =?us-ascii?Q?nAHrxja8ir6w9TRQ3pvKmp1aft0ugZi/336S6Ng3ovQchJWQAWYibOdJaMqu?= =?us-ascii?Q?4hivdMHZnEZ7zhPLHUnU0+MQB+/yui4QGy3iPifPZ748gWzqW4e1Yb0CWdOl?= =?us-ascii?Q?VfjPCkulfwexOjzH0soObERx+ms9XHv28cAtd17ceAUtO5IM8x6KrXlUk1ZB?= =?us-ascii?Q?9QJ50jjAiJrC547NNHILa7y1Sci5D2XaKoWY0eUykdxu879Ul4Trx8zZ3v/z?= =?us-ascii?Q?DUEN4byBCJMHD768zS9Ce2g9X4r9lalKWmA5X0xv8shQQ4zOgw=3D=3D?= 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:(13230040)(36860700013)(82310400026)(1800799024)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 06:36:13.6496 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 33512be5-4879-4e5f-ab95-08dd021b236f 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: BL02EPF00021F6D.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6221 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=ff90a3bb8523c29d5e02b6ff2c8e79345ba177be Thanks. Xueming Li --- >From ff90a3bb8523c29d5e02b6ff2c8e79345ba177be Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Fri, 6 Sep 2024 15:11:24 +0100 Subject: [PATCH] net/i40e: fix AVX-512 pointer copy on 32-bit Cc: Xueming Li [ upstream commit 2d040df2437a025ef6d2ecf72de96d5c9fe97439 ] 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: 5171b4ee6b6b ("net/i40e: optimize Tx by using AVX512") Signed-off-by: Bruce Richardson Acked-by: Ian Stokes --- drivers/net/i40e/i40e_rxtx_vec_avx512.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/i40e/i40e_rxtx_vec_avx512.c b/drivers/net/i40e/i40e_rxtx_vec_avx512.c index f3050cd06c..62fce19dc4 100644 --- a/drivers/net/i40e/i40e_rxtx_vec_avx512.c +++ b/drivers/net/i40e/i40e_rxtx_vec_avx512.c @@ -799,6 +799,7 @@ i40e_tx_free_bufs_avx512(struct i40e_tx_queue *txq) uint32_t copied = 0; /* n is multiple of 32 */ while (copied < n) { +#ifdef RTE_ARCH_64 const __m512i a = _mm512_load_si512(&txep[copied]); const __m512i b = _mm512_load_si512(&txep[copied + 8]); const __m512i c = _mm512_load_si512(&txep[copied + 16]); @@ -808,6 +809,12 @@ i40e_tx_free_bufs_avx512(struct i40e_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_load_si512(&txep[copied]); + const __m512i b = _mm512_load_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.441488072 +0800 +++ 0069-net-i40e-fix-AVX-512-pointer-copy-on-32-bit.patch 2024-11-11 14:23:05.172192839 +0800 @@ -1 +1 @@ -From 2d040df2437a025ef6d2ecf72de96d5c9fe97439 Mon Sep 17 00:00:00 2001 +From ff90a3bb8523c29d5e02b6ff2c8e79345ba177be Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 2d040df2437a025ef6d2ecf72de96d5c9fe97439 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -20 +22 @@ -index 0238b03f8a..3b2750221b 100644 +index f3050cd06c..62fce19dc4 100644