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 7CDA045CE3 for ; Mon, 11 Nov 2024 07:36:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F3FE40685; Mon, 11 Nov 2024 07:36:42 +0100 (CET) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2053.outbound.protection.outlook.com [40.107.95.53]) by mails.dpdk.org (Postfix) with ESMTP id 98A7240E1B for ; Mon, 11 Nov 2024 07:36:40 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Z9xQBhQVsW1PTgm4szQf9kzK1nLXH96iBz9/WoBGDLvFfP2+2cSIOJtAdp6gtED6CvRLJGz61dAEMSQkr97L5DIYiCxspqKBlKpwoiBI4huPbP6CdeVOAhogARdrf5ld7AXvnWKYqSSUlTVQmHI4st9hTxzSYLOAlP16Z1yvOoCTrDwn173T6iz4dhqkS1T/fZHTLCqEtvBFLO3p53yH6azNgKCw4SxNLyfGy2vHnFqqMfXOOSEub7HLlhi5cdj1+1RwUlntj5HGF/vXw0Mk+N14ZSxzndYLo29z93p/brxIWsbbryktufWpM2S8XyfzszPGjs2m6PSv8qyJS5FUkA== 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=iUTkLQvtkX/ukEW1ezXetj4Mec51ly42S7om1rE3SdE=; b=AEwXVHRHps7iNb63dXvWzkO7BUrwTxLleiCZc6oi1K4vnlAWGo6iQGAv2oIu4jHkjDe0WzGGu2HFHP2zGFXo3Aw1cs+d+pcV0rRcKC/cYx6Wit4jENC7bd7ook/EbgzO7c422AQ9DQh1eEiHULhd+Nbidsu9HQE77xroryVIsam7PJHQunh7FYAlbO22HfmkcFOcmG/kiSNK3AzjM/KOqolOCRd5z0eYGluxgxof+Herw7kWvB6C4epbb/6RmvkoyDYaRjGEXTui5/ftagpf6nTK6E/70ZUEov0iUGytcA3kVdqqr+YC44Dds6TOsFLEcMMqtJbxRR1cgZKAQGeeAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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=iUTkLQvtkX/ukEW1ezXetj4Mec51ly42S7om1rE3SdE=; b=rSM+nbsIbvM5wAlps5kGR0egCY5qojA7pwNq3LWj9xwU/FQ3eI1Ci3hJOXaYN2W0mSR7ndqvcy+c2lqV8ddazjTQ7skFfe7uQFTfXiII5h+gNVnAjqoimwbwAK9f2haXAiH/4ap/JMaWAz4JXlBZmqqvDgVSkQi2elIT8Yfpkqq3m8iOnnQyvrWT6Miu4LRnIljWs1SXPCJ235tNnGNVDlYYZYfD0kYd7zezpivXRg6t2zg/p2tnPnBHEi+C/nF/x5tzFZ9Jmzu5+8Q79KY9hSJ/gGrQucl2qcvbkfAzCHedQ0xT6JZ+JmkydhxU88ip/r1QAfa6Xk14QI/jJ5Ct4A== Received: from BN0PR04CA0168.namprd04.prod.outlook.com (2603:10b6:408:eb::23) by CYXPR12MB9425.namprd12.prod.outlook.com (2603:10b6:930:dc::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 06:36:37 +0000 Received: from BN2PEPF000044AC.namprd04.prod.outlook.com (2603:10b6:408:eb:cafe::fc) by BN0PR04CA0168.outlook.office365.com (2603:10b6:408:eb::23) 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:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN2PEPF000044AC.mail.protection.outlook.com (10.167.243.107) 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:37 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) 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:22 -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:20 -0800 From: Xueming Li To: Bruce Richardson CC: , Ian Stokes , dpdk stable Subject: patch 'net/iavf: fix AVX-512 pointer copy on 32-bit' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:27:57 +0800 Message-ID: <20241111062847.216344-72-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: BN2PEPF000044AC:EE_|CYXPR12MB9425:EE_ X-MS-Office365-Filtering-Correlation-Id: 28b15d72-adb4-40c6-7fe5-08dd021b3167 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|376014|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?64xOQwPl/97aThq/XdNHww1CDcZxJdGoRlmYxNdeUspJykCxUdxvJGq5mxAX?= =?us-ascii?Q?/WD4RdSkIH48lcqsUKSq+qaYen2nQp17oznzMTI0DwLP/4i8727zS6etM/7N?= =?us-ascii?Q?yT62g2IOqqjztkDL2prMC76nvnT4LeqWUH8y8lKtcgTh7mBKz8dJpgDi7C64?= =?us-ascii?Q?TgwNltd7Jn5zmfpSRQxpHeoklCI6c5HOKPXxsaNK15mxL+8rL9Ub13Emi3eO?= =?us-ascii?Q?tgbRx70R4WPcbvqqbUz63PR7hqkNrOcwacFiGP5M3NW7SKdKnuPgDRKxdrIm?= =?us-ascii?Q?QqHYwpyTJ3BoyejmvaZCRp2pXoYr2XJQYR3fxL2AZHmJ/gdeQqSfcNxOYnQp?= =?us-ascii?Q?J40xCSGeMI48AM12sUdiConHZuaamS8hrY6/jwq7xjtpQXxNDukwv74TTX2S?= =?us-ascii?Q?4WOdFtgSGFAUH1U8BF20zHUl+l9csO9OwlvOnaXh1gLv+9nMxQKT/xnGjHqV?= =?us-ascii?Q?eYVSv8cRd36jO8CTAIdX8Yr6yh/HYhbrF9QVvhTQE/K37hjI8I7IDNUwiXAp?= =?us-ascii?Q?+tAYj+MmNk3SbNzFc5Q902irPBs9C4mfBlt6onmIUpwRkdxJQbqOqcAIf+ak?= =?us-ascii?Q?P8GTlYpGH6hYFlCVRgOrwKgr36piBRvOyvpuxRwUxDvqrKQDD8GynlDf8wfl?= =?us-ascii?Q?QNRllmHdUlnLCFTUTWciFLHvk6/R4tczIWdw1GV2rA96gFgh36lxquZFv6aR?= =?us-ascii?Q?UWcXSlKu54+jta68hG5HMBhwX2gWtFRtUozTO1kmYeAlzGkamcW3mg++9GmJ?= =?us-ascii?Q?cvDKzXjlpHRy47UC5iX5ywkyVBkFiY81o+f9ir2U/DOBSP9wUSxC8+D0RF7r?= =?us-ascii?Q?JCozVR12cuI9MhuFm9hWnQ4O0hC+4cv3u+QPDiUgG+z1U2TM/G9uJ7ykyKaB?= =?us-ascii?Q?YUCzNETbkUEdwAZ7CPP7VOYQlAiLsLobWr80e43BnvutvCnLQxlvXztGBsLb?= =?us-ascii?Q?H5EYQTxr4nUxr8nySVTJ/YPPwVys1Ank+z2KEtxIJyJcb06XL4IHGu0Z16ta?= =?us-ascii?Q?Fpb+07dL7Zn0uTtj7g26kk/1++t8AhOwu8Z4ulNAs6E2pAw7pm3xwk2RjWhB?= =?us-ascii?Q?pFONSHSN5PpKphYX+oW7Bwue+8hHJ84vkXqSjIVqLKIyhdB87CVP9SKVVDEA?= =?us-ascii?Q?wqW315xVIR4duw8+5EZ3UjXre6fojLEkx4NZgwe2ALtngD07S7k5+Ro81tOx?= =?us-ascii?Q?oCvp9icUUH1ULAZpGQvfpUKMbeojavb42slFoS9d/8ZiyQftAuk8020ku28o?= =?us-ascii?Q?NULVgP/O5iVofRARH8NfZFbQ7sVtk28XY2WNsdW8VzOtIkoSUHO8nkuQzCwH?= =?us-ascii?Q?Cey+E8GI55ZoypQb49ZYKKCbbSGFNd7+PdzydSu4pJIKillhdc54a8eHyMcp?= =?us-ascii?Q?wtDgq3rKSstJ8q+Gn7e7v9Bcd5kDwACaC0Y9p3YcW+ONEQoNIg=3D=3D?= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230040)(36860700013)(376014)(82310400026)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 06:36:37.0686 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 28b15d72-adb4-40c6-7fe5-08dd021b3167 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.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN2PEPF000044AC.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYXPR12MB9425 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=bbcdd3ea1a4193c5e2198cabdd843899669acf61 Thanks. Xueming Li --- >From bbcdd3ea1a4193c5e2198cabdd843899669acf61 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Fri, 6 Sep 2024 15:11:26 +0100 Subject: [PATCH] net/iavf: fix AVX-512 pointer copy on 32-bit Cc: Xueming Li [ upstream commit 77608b24bdd840d323ebd9cb6ffffaf5c760983e ] 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: 9ab9514c150e ("net/iavf: enable AVX512 for Tx") Signed-off-by: Bruce Richardson Acked-by: Ian Stokes --- drivers/net/iavf/iavf_rxtx_vec_avx512.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/iavf/iavf_rxtx_vec_avx512.c b/drivers/net/iavf/iavf_rxtx_vec_avx512.c index 7a7df6d258..0e94eada4a 100644 --- a/drivers/net/iavf/iavf_rxtx_vec_avx512.c +++ b/drivers/net/iavf/iavf_rxtx_vec_avx512.c @@ -1892,6 +1892,7 @@ iavf_tx_free_bufs_avx512(struct iavf_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]); @@ -1901,6 +1902,12 @@ iavf_tx_free_bufs_avx512(struct iavf_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.507644371 +0800 +++ 0071-net-iavf-fix-AVX-512-pointer-copy-on-32-bit.patch 2024-11-11 14:23:05.172192839 +0800 @@ -1 +1 @@ -From 77608b24bdd840d323ebd9cb6ffffaf5c760983e Mon Sep 17 00:00:00 2001 +From bbcdd3ea1a4193c5e2198cabdd843899669acf61 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 77608b24bdd840d323ebd9cb6ffffaf5c760983e ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -20 +22 @@ -index 3bb6f305df..d6a861bf80 100644 +index 7a7df6d258..0e94eada4a 100644