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 D52EE45CE3 for ; Mon, 11 Nov 2024 07:36:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CD3D240E2D; Mon, 11 Nov 2024 07:36:45 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2080.outbound.protection.outlook.com [40.107.244.80]) by mails.dpdk.org (Postfix) with ESMTP id 22D5F40685 for ; Mon, 11 Nov 2024 07:36:44 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZW4jqX1YUtdJbSv8E2yKrI02PrKOt3s6FHae/ZzaUncTqPWE7OCeKnhdxL0+/rlC64smd/6j/8XTe8gDQ2NKyWx09uCaW4W4KaC5tmdWhM/xMUoHeHOPgHu4QFGKHKV6nlm4P/CDtWfGHYNtv7z0oX0kCHTefgwCgzieWQhLvLPVd9wE+rfGa6lXVzjUJ+Qipeo6SBnQH0I5x1H6kRBO8p9PeOrKbPiA8MD/BtrSk54VAueIYchv7c+OWdRiTbuxp6GvGUpuLl0u30YiCnn4lAecZu6XhXhJkTbuVQGCMEX/GlCsL+5mMTz6iM63aCbz/PeIvWKAEnkk09o7hOhdCQ== 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=mDhDZ9fx3acUqUDPCoJjC8/zKq6gN5UBpW9ZVe72rTU=; b=jBU7jHdA0/n+UHnjB+0mzVWfQxxukYttWUW7P+NdgIj2WzWZ25RkTL8Q2vmggCt7h6R0b0oh4BGWuhiTb8gbV1FI7wjpfGXUAKTlDib7N/U8wvJHWYnxSfQCVMWL7+6M+suc7yZP5gCSPeETyS0WTWGLTqUOjqIrB1Qs+Ec+9Gp6mGpvD9xFbqsmjBwq02SKqwnkayw+Pq3eGQEZrNzaqjcEsfj+SAjD/HSPSwTGVzhZpJ9f3/scqSjFfwjOMx/zmfNKUa/gwRrkZRKbFQ72W39p8/iCVXP6d1WpTakwSd+i6diellrg7q8vtbH5G55bOgHzAFjHkD4WryqUHc5TBw== 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=mDhDZ9fx3acUqUDPCoJjC8/zKq6gN5UBpW9ZVe72rTU=; b=m8Yi5uiHUD6SsDLEDYLSWdVJk4aIt5LCDBX9UUzIHuRXhpadeaOSNlQshI56STiZfiKj0VIi8BVDk2S+UtByOhSwpIkbzVWW8ZpcAuAjMEq3xf3phAT+smRMweUzYK2Nx6tG/jpd9oIYI4RXm/3dCMmI0telkKjuqFoVrmja76sTvXxhmhrPCQz91Z+OnDNqYQ9IRstR3+b7vI7K6bgnKzKYyci0ZcPEg1uoToz6phs4aqO3TpWL7w4LRdgDAXN8kBJWg6kkyQLmx5gvUs46VpCD0rYtbx+AUD/yBMuM7WPWvykdlrTMSVzu+PKMs0V/kCFjRQqgWlItVvlsaxDdGg== Received: from BN9PR03CA0778.namprd03.prod.outlook.com (2603:10b6:408:13a::33) by CH3PR12MB9220.namprd12.prod.outlook.com (2603:10b6:610:198::13) 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:39 +0000 Received: from BL02EPF00021F69.namprd02.prod.outlook.com (2603:10b6:408:13a:cafe::a9) by BN9PR03CA0778.outlook.office365.com (2603:10b6:408:13a::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28 via Frontend Transport; Mon, 11 Nov 2024 06:36:39 +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 BL02EPF00021F69.mail.protection.outlook.com (10.167.249.5) 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:38 +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:24 -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:22 -0800 From: Xueming Li To: Bruce Richardson CC: , Ian Stokes , dpdk stable Subject: patch 'common/idpf: fix AVX-512 pointer copy on 32-bit' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:27:58 +0800 Message-ID: <20241111062847.216344-73-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: BL02EPF00021F69:EE_|CH3PR12MB9220:EE_ X-MS-Office365-Filtering-Correlation-Id: 0f35fe61-0dcf-4c78-adc9-08dd021b3279 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?kQH+y3YFBmXso0y3akMF0m1ncSz7z38wEv+5xov8iXy7H6Pgn9iRJ7I9z0Sy?= =?us-ascii?Q?vzCVJDHSgZ+86RJlSLPuoyDO0q4JU9QLosG6H6XNg9QdrgHpaqRNYvXwuWo3?= =?us-ascii?Q?iQVptm69IFTX3GC4dacVo/dJzz5jNAr/5dnA5OK464OIOC+lJX39v/gjGmHp?= =?us-ascii?Q?KQqY6A4WKm8Vpr2v8s55slLFEuXrOJD3jpHHste+FNyjC79fIdTKgZdq7ctD?= =?us-ascii?Q?NBZyDkz0nWRe4GgaSziEB2RtizGkuUbYafPwpAfqca1o2ut3qUrGzsHkChHz?= =?us-ascii?Q?aUnDTcTp3GLhnH3UyQfkDO2uEC2uJUS9rf3d7g44mj8ziP5R3i3yBx1gbFHl?= =?us-ascii?Q?BqYpQiXwYLV/HKEigfE/teB1dI+LDZAaKUm91hAzjjbMSDKrAzC5T+y+O6Z3?= =?us-ascii?Q?ebYMXSJfjXUe48f8mQDa6wEt+rPw4cejIRIm87ByJU+lU0xmOCfW6hts+I3o?= =?us-ascii?Q?6gCzrbq/4o3TYlB7n6S1HU2vWbM15+jDCAXbkSM4z4s69+ykFFwrgx6Sk3r0?= =?us-ascii?Q?DEpSmMnNnfmw5AhYXWcUczysJgy7CXBuAv+tAYbXkLTu52LDk2pKbdnATnxM?= =?us-ascii?Q?gjYpipG4SL8qykDTWSqdcE4O38O4y6st6XnmRsadWY5bjBlje5DCN08WzYBt?= =?us-ascii?Q?b3ZonH7tRCQzgXqzR1KDPg9yBCjP/SGhz5bREaUA9tgXqZnP457/Jmdm4uU2?= =?us-ascii?Q?NVYMNIJedZ4rQy0Ggp3TLAOJrvR1eT54EZJRwRNuxWRACskYmOZtgHMVUeUQ?= =?us-ascii?Q?9115OZPiihpeE61XOMhZ2DkAHnBntAcZgwTL3gNMMSyNgPzGN9J/TmIva/+c?= =?us-ascii?Q?MWNa65CZJlAClbNWlEj/BQCXped0MnY1rcUQBdZBuJ8jszdOE/L/0ECNw+T7?= =?us-ascii?Q?NhaVkHKw6ByjYuBWMGiBg+4qDGX8Ab0IUM6wJWl5UfEbhw/rxiyeAVq6N+a0?= =?us-ascii?Q?Y/co/r5uzm5BvfCJRo8xbiF+muFItIGIzGrSah/EilCUPBV17vTtYntl6bH6?= =?us-ascii?Q?oIMhuoMvFMrrcjuqIwAdyU53/hUW20LgTPr0wMr/gNEz2KLBXKvKKKlKxUJY?= =?us-ascii?Q?HJzA46bEoqKW2LRLOJpuf1h/91yAavb+5rT3ZmIsmXMM2UKFzz620ypb8SS3?= =?us-ascii?Q?K5vCe9mtu/uwq5KfQ6GESvb382C6j6JrFOwRVI3sCO4JX8Qfh4QgkBt9EmpN?= =?us-ascii?Q?pTVjutqVy9OrwpreNh4uNOAemiGeEH7sdb8fZ7LojJ6kAWhRa170EgrjfDpP?= =?us-ascii?Q?mfO35QdKCRj+3jpJSUmZIZEMws+My4qhI3+MvrBweTpZB/dG1WN4xtI3816U?= =?us-ascii?Q?y6igwh2nG1LWJiFUJoHmxefuzn/oMmVF/62j3C/di97JF2X4OZuFisd48aJW?= =?us-ascii?Q?ZTHd3Ho8tGT8C3v/Gc5IwnaY88W94Zb2B6XrCuw9wtMKqBWU1A=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:38.8654 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0f35fe61-0dcf-4c78-adc9-08dd021b3279 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: BL02EPF00021F69.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB9220 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=fbbdaf66bbe686f9f864e55f4dc90a95f0b49637 Thanks. Xueming Li --- >From fbbdaf66bbe686f9f864e55f4dc90a95f0b49637 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Fri, 6 Sep 2024 15:11:27 +0100 Subject: [PATCH] common/idpf: fix AVX-512 pointer copy on 32-bit Cc: Xueming Li [ upstream commit d16364e3bdbfd9e07a487bf776a829c565337e3c ] 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: 5bf87b45b2c8 ("net/idpf: add AVX512 data path for single queue model") Signed-off-by: Bruce Richardson Acked-by: Ian Stokes --- drivers/common/idpf/idpf_common_rxtx_avx512.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/common/idpf/idpf_common_rxtx_avx512.c b/drivers/common/idpf/idpf_common_rxtx_avx512.c index f65e8d512b..5abafc729b 100644 --- a/drivers/common/idpf/idpf_common_rxtx_avx512.c +++ b/drivers/common/idpf/idpf_common_rxtx_avx512.c @@ -1043,6 +1043,7 @@ idpf_tx_singleq_free_bufs_avx512(struct idpf_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]); @@ -1052,6 +1053,12 @@ idpf_tx_singleq_free_bufs_avx512(struct idpf_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.545663870 +0800 +++ 0072-common-idpf-fix-AVX-512-pointer-copy-on-32-bit.patch 2024-11-11 14:23:05.172192839 +0800 @@ -1 +1 @@ -From d16364e3bdbfd9e07a487bf776a829c565337e3c Mon Sep 17 00:00:00 2001 +From fbbdaf66bbe686f9f864e55f4dc90a95f0b49637 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit d16364e3bdbfd9e07a487bf776a829c565337e3c ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -20 +22 @@ -index 3b5e124ec8..b8450b03ae 100644 +index f65e8d512b..5abafc729b 100644