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 E94FD41D8D for ; Mon, 27 Feb 2023 08:18:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E28BA40ED6; Mon, 27 Feb 2023 08:18:28 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2043.outbound.protection.outlook.com [40.107.237.43]) by mails.dpdk.org (Postfix) with ESMTP id 36E7940A84 for ; Mon, 27 Feb 2023 08:18:27 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ILTjI+iniWxSwDQ6HwRFq7jKp9elZp9PmGL3MT3320zhmbeY7W2BoNZOciNd0gPBglNQfvEX6Xhe0c+yscvEa80MEa2ssanR14G44hnSUuUwsoNlIALZiz6YeolWOuvLQkREEhDjZCJp+orhbOWbh+DA7H4tr0sv4ZUlTT3bQz7c0blc/Pgo7AMPW8RGCovdm2s1WLeC551qfQHXlUfeNwM5RzC/F29rxZDXH12BetgckUiP6ybAGuak1MZySxEK3WL+j5gSeSe+R9OSGCPFYir8a/VHZrlEswF+ALZcKATu4hOqW2ZmLPRQ9xslxYkaHGbVeoFPWiJhuOIJyhblwA== 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=4H9cCzEmprt7uaO6xqmdsJ+S2DiacYnv7Bh48jZckck=; b=XhUHvhtRZkOwrOsppW3VQzJga/Vsbk0905yLI15WItiPj/xcG/rUXjhBb4fwY6iL4WufjnZWMhaS/Age+MxWWt/+SdY9M5UxSR5YcBtPgujYF+0YenDV5W3qZJmZ00Evrr+RF5Bt61yrYjToW7iVOfeqMiRez9f/Dq1k7gswkNdai9snWin3ph3BGNJBd9Hjy4gYu6mhpdoikhTQBfq4RTITTgIhcujhwPRYSwbNs/U3mFw6G0qQ6Vod8EFShyMs3XLMGfIIKQIEeH9yorBmHTGuUl2PcMwDKw0lyfs/5oSC61DN5Cf0pLAPwVtJ/t7aqujp2wtoE+/jzv8Yy6egyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=arm.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 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=4H9cCzEmprt7uaO6xqmdsJ+S2DiacYnv7Bh48jZckck=; b=essPKus9dGzfp6Iq5ZJHOwotemzW6XVfXma74LcO+knItRxvYXgqB2BaMZvsVna8xuN+a7RLnyCPevs/zOyr3K0qVAT2Ztfne2D8nZHbAY9Q9dxm7Go9j39ATh82rsnyYHMD5vu4pNVeYM+kHe+4HeKottZXF1ywmH/8lDjieQZW5iHu4jpkvERGU/y1wboWoQ6xpgzk7Mpq+qtBGSjXa+UMEwf0czS68cnWdeNTqhCofcCYL6/gzY1aJgNRa+ymq9W8ZmvrSkB+DhMXzY6B50MyZCu7nhHQxQcz4YQ0y94rs7/Icm8TMOG9frBiEPNl5U7SmmB3X3fakWn4Yj2Rsw== Received: from MN2PR19CA0035.namprd19.prod.outlook.com (2603:10b6:208:178::48) by IA0PR12MB7674.namprd12.prod.outlook.com (2603:10b6:208:434::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29; Mon, 27 Feb 2023 07:18:25 +0000 Received: from BL02EPF00010206.namprd05.prod.outlook.com (2603:10b6:208:178:cafe::2c) by MN2PR19CA0035.outlook.office365.com (2603:10b6:208:178::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21 via Frontend Transport; Mon, 27 Feb 2023 07:18:25 +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 BL02EPF00010206.mail.protection.outlook.com (10.167.241.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Mon, 27 Feb 2023 07:18:23 +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.36; Sun, 26 Feb 2023 23:18:05 -0800 Received: from nvidia.com (10.126.231.37) 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.986.37; Sun, 26 Feb 2023 23:18:02 -0800 From: Xueming Li To: Honnappa Nagarahalli CC: Ola Liljedahl , Ruifeng Wang , =?UTF-8?q?Morten=20Br=C3=B8rup?= , Tyler Retzlaff , dpdk stable Subject: patch 'eal: use same atomic intrinsics for GCC and clang' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 15:01:05 +0800 Message-ID: <20230227070107.15664-157-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.126.231.37] 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: BL02EPF00010206:EE_|IA0PR12MB7674:EE_ X-MS-Office365-Filtering-Correlation-Id: 486c67a8-f05c-44d7-2877-08db1892d03e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Lw+f2gd+37I0bB+lm3mgSduGXAby7y0Wy+eT6iTcOLzlTczAHdkbGVP3lORTr+K6tOzT5lJaYww4e1P/FJkUFufQuNTx7yO2a9jVcKP5A39D5IhRoaJYFLR1U0++L7Ie0fhNQnhMKlWqGdCo2J3tye31lUOvrBw5ufQ2fKmqZH3mG4Y/4sSVzusmaQcg0wdnVaztIrTPjb1w0mYRYo/94wHAClSSgoarc9LTSfFdszZJxRZYW1l8rfKA4qmfXBS+tn6i46EAhlOgUfmSqKgAuAQxN4EdDW36bBPb9IXOFTPvoUSa5eB2us0PO2kvtr0RHp2LdqUH0UtfffiYFhJBEhBSgzo8qFXbiCSTRBL1F4CwAIo5T61SDvgvgPLJTkC5+abUyOVg+wfx40icWIPdEy2zTMhmQgGYts2eBiZYZVlb5hJhzClGklgGDAcQlC3AQ8SK+l5d+JQJLiRHc5UbiPVKJzP0DQ4dn8mG+QApqwzHMTM0Ri74OWzszaSMD3kiSw7icmN5/v3Cdb88dY+p5UcNHaaxcuUioBWkxM/HQ5IwY8fDn2l6YwTvE2oaPW1IhIWDOPXZg2LmtA+ACIKWgj+rD0WVywdQLs3wvgvmvi/EeAKVvNnoatPwebpioPNG5dxhzNkQ+q6z/9CD4xoC4rRTzqYW2Q/ijPgrxH46ip4Ua7aJrJsG6nJA5vyEY/eZ7C77JKlwiRW/XBpMWmirZF5LJDxRnp+auqudyRi9eWq2/MOgSdGnZVW2GCZRwEJMYCdHdQvP3Lu2VUH3cDiTYWraGLl+A7tkEYOQfT9oOig= 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:(13230025)(4636009)(376002)(346002)(136003)(39860400002)(396003)(451199018)(36840700001)(46966006)(40470700004)(336012)(47076005)(426003)(66574015)(316002)(54906003)(36756003)(40460700003)(55016003)(40480700001)(86362001)(356005)(7636003)(36860700001)(82740400003)(82310400005)(1076003)(53546011)(83380400001)(2616005)(186003)(26005)(16526019)(6286002)(5660300002)(8936002)(7696005)(2906002)(966005)(478600001)(4326008)(41300700001)(8676002)(6916009)(70206006)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:18:23.8896 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 486c67a8-f05c-44d7-2877-08db1892d03e 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: BL02EPF00010206.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB7674 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 22.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/01/23. 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=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=1b9356337876bd96035ac6306252d054ec92d6e5 Thanks. Xueming Li --- >From 1b9356337876bd96035ac6306252d054ec92d6e5 Mon Sep 17 00:00:00 2001 From: Honnappa Nagarahalli Date: Fri, 17 Feb 2023 19:58:03 -0600 Subject: [PATCH] eal: use same atomic intrinsics for GCC and clang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Xueming Li [ upstream commit 0c0eb1156e3d52ede4b19d687aa5387d1dca7666 ] The size generic atomic intrinsics generate the same code as the size specific intrinsics for gcc. Use size generic intrinsics for both gcc and clang. Fixes: 7bdccb93078e ("eal: fix ARM build with clang") Signed-off-by: Honnappa Nagarahalli Reviewed-by: Ola Liljedahl Reviewed-by: Ruifeng Wang Acked-by: Morten Brørup Acked-by: Tyler Retzlaff --- lib/eal/include/generic/rte_atomic.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/eal/include/generic/rte_atomic.h b/lib/eal/include/generic/rte_atomic.h index f5c49a9870..234b268b91 100644 --- a/lib/eal/include/generic/rte_atomic.h +++ b/lib/eal/include/generic/rte_atomic.h @@ -176,11 +176,7 @@ rte_atomic16_exchange(volatile uint16_t *dst, uint16_t val); static inline uint16_t rte_atomic16_exchange(volatile uint16_t *dst, uint16_t val) { -#if defined(__clang__) return __atomic_exchange_n(dst, val, __ATOMIC_SEQ_CST); -#else - return __atomic_exchange_2(dst, val, __ATOMIC_SEQ_CST); -#endif } #endif @@ -459,11 +455,7 @@ rte_atomic32_exchange(volatile uint32_t *dst, uint32_t val); static inline uint32_t rte_atomic32_exchange(volatile uint32_t *dst, uint32_t val) { -#if defined(__clang__) return __atomic_exchange_n(dst, val, __ATOMIC_SEQ_CST); -#else - return __atomic_exchange_4(dst, val, __ATOMIC_SEQ_CST); -#endif } #endif @@ -741,11 +733,7 @@ rte_atomic64_exchange(volatile uint64_t *dst, uint64_t val); static inline uint64_t rte_atomic64_exchange(volatile uint64_t *dst, uint64_t val) { -#if defined(__clang__) return __atomic_exchange_n(dst, val, __ATOMIC_SEQ_CST); -#else - return __atomic_exchange_8(dst, val, __ATOMIC_SEQ_CST); -#endif } #endif -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:45.871504700 +0800 +++ 0158-eal-use-same-atomic-intrinsics-for-GCC-and-clang.patch 2023-02-27 14:08:40.969237000 +0800 @@ -1 +1 @@ -From 0c0eb1156e3d52ede4b19d687aa5387d1dca7666 Mon Sep 17 00:00:00 2001 +From 1b9356337876bd96035ac6306252d054ec92d6e5 Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Xueming Li + +[ upstream commit 0c0eb1156e3d52ede4b19d687aa5387d1dca7666 ] @@ -14 +16,0 @@ -Cc: stable@dpdk.org