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 0F883A034F for ; Wed, 10 Nov 2021 07:46:40 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 05DC040683; Wed, 10 Nov 2021 07:46:40 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2072.outbound.protection.outlook.com [40.107.92.72]) by mails.dpdk.org (Postfix) with ESMTP id 948D040142 for ; Wed, 10 Nov 2021 07:46:38 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J862GNNYpZ5RFjceXg48MpBJA8vN9fv0hc0xLCfJmlEkhjOLU9RB4feJml+O2R1jv227wymvNxSp/JRSeEeXLbYUIeO2uoOAd8vXuVC5Phh6ml4uXkLhbSmtQYWAq5Ckoa37i7WJeO052S22Yc57LSb94fPedvZLI1KKRWQ+DlGdMD/EB+Nj3xtNk4hiwhyMtUb22cWn1qpfhujbeGqzcJ2WEGeBUHamLCDxDdVEJBO4b2xSFG0yOgWqoKkNpDqPq5hUGa9pBE1nkuhWr/defYRHlTASz+OMRIJrHs0JboGDv8uKmGvgbRc1X6n9tsbKPPMHdwhl6WkL0SIKwEgojA== 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=nh27MB6NTg1aupOD4KDv0Cc/FZdrdLAVsxSMzu+H21s=; b=J2eGJ7J4LHBNMkGWWeS1+mbYdTN3AaAIzcXO6MbxbyK0ktiFFQrq+gAP8mre4qZFubqPQbb5hqzXECoQXXVo3ObCdUdG08EhYi4E8k+bdvdKmJFoxHvR1DIjNc22SD5Emp/WU+g51NuFZXiXtFv5ktRCMweIA0LUBAhUr+SNiLLkqV9U0JlkkYVBaHkc1Udjc0LgXHRMCBdAuWKrh68COX9wIq7Cet/IDh4dd7M0LyYy76XpEufENGGY9cvRG6tUyJSjN2gJn406gH4psC2xVpXt8dt6df4TlyeSObTHu6ZR7Jzx1KtuMlVEcklndOfWNuMOUs+jIyRGuOasqDmcUA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=arm.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine 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=nh27MB6NTg1aupOD4KDv0Cc/FZdrdLAVsxSMzu+H21s=; b=o9ZBCXu3ZGK+5bwumHS86UWPeVzzPfjPJtM8tR8y31z64HJmBpd7y9500MAfp9LP/XVJ1xBEUyfRgUtKKI+NPi7otLua7LdQVgyGlnFE5bVB/yQ0CNifubpIMnZq3OddWubG8jyfyQr7NI2mJs5kCZikckhR5vDlm5HDxLGwfqxOfTAhlheMq2XoLLKOCR1oaA6WZAqMJsIPXB9++NKL3k2kRhDrmJr0flCDciiJ+EocU0rHHM6aN1pcLGuaCdBWWbjXMVMTK1xO0eCgMbC+mX/0eGkEu9aFTNOF/mBYBBteXR6zhjNKCJ4R5dzkS/YhH30UcIPjPP0KcCVoPhNOCw== Received: from BN9PR03CA0649.namprd03.prod.outlook.com (2603:10b6:408:13b::24) by BY5PR12MB4067.namprd12.prod.outlook.com (2603:10b6:a03:212::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.16; Wed, 10 Nov 2021 06:46:36 +0000 Received: from BN8NAM11FT036.eop-nam11.prod.protection.outlook.com (2603:10b6:408:13b:cafe::d9) by BN9PR03CA0649.outlook.office365.com (2603:10b6:408:13b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.16 via Frontend Transport; Wed, 10 Nov 2021 06:46:36 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) 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.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT036.mail.protection.outlook.com (10.13.177.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 06:46:35 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 10 Nov 2021 06:46:33 +0000 From: Xueming Li To: David Christensen CC: Luca Boccassi , Ruifeng Wang , dpdk stable Date: Wed, 10 Nov 2021 14:30:10 +0800 Message-ID: <20211110063216.2744012-127-xuemingl@nvidia.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211110063216.2744012-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3f2e6965-4b2d-476a-e3a8-08d9a415d732 X-MS-TrafficTypeDiagnostic: BY5PR12MB4067: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bNvafOtGNFZnznyXHpk5UxTTErs4DuWwR+HX0Mux3IZSs2oe6SX/47dEdz/5rc/uVDqqSAWOGtU/LSiDljgn82pOypGwMcAsR1jQbZYIJu2IRvhFYMHorVCWhbRBm/QDFEXjn8uH5tfcY/4D2vE5IFFl3ZS2g3igb8jbrO7uIY8jE4dn83QD62hf8gI93OaKUArbv+mfsoe0DAisj7+FmuJHpPAHGEeKQQKFCuujGYRdFk705y/cytkODij4h/c6KSzhrdRpp21/va0kkvYcqY2SH4WlsknjDgcDMXhMAr0+MP/lbVwegj7lNgfqwn4zLuVnsYFZVZqoHraTiGYH5Ew78g+uXUVu96HlIhK1ME1z3AhJKGQGu4OxFZsHvg8WrFV+0mrwW0brBCU7kB0GwB/5Gos1ToSpSu3Y1azigN72Dj2VHq5EYC3ihwHq8p3S35EVyx+evQonefe07BeEKJ/56QRC/Sx6JTzr2F6baBxHTJyGjpLQRzwxO3lxnsF2zHLEXzPP/bDxPdh2gINfEEZhDznko2OtygPXBg/9fCl35V0thDkQcNHOeh2rMOtjSOpjmzyJFGpKlrjhB8qfMni4xkYmPva5bIFoKDsTC0SDS8zMGY2NK1cvdVGxT5dgssbmm6Bd4YWxGcS+1NfxZifaHeoCZ17VGGLnuXw0xUAPPHIrjTINS2qgkfK930dU+iwz/kDqNo6ucbYS1Wq08pdjn8lV75RAx5perEYHqtT7ZLUTtZMt0sKZbgLoZ3Nlma86GBXYjwB0ZKHrO9OLVDZBNtScR7bTh0dM0CatiF6Kgzj7Lk9zeFTn8LbP+m9zGtsUWb8w9jykN8Ths3XI5g== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(26005)(16526019)(54906003)(186003)(7696005)(4001150100001)(53546011)(4326008)(8676002)(5660300002)(336012)(426003)(2906002)(47076005)(316002)(2616005)(8936002)(83380400001)(966005)(86362001)(508600001)(6666004)(36756003)(70586007)(36860700001)(70206006)(356005)(82310400003)(1076003)(6916009)(6286002)(55016002)(7636003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 06:46:35.9701 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3f2e6965-4b2d-476a-e3a8-08d9a415d732 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT036.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4067 Subject: [dpdk-stable] patch 'test/atomic: fix 128-bit atomic test with many cores' has been queued to stable release 20.11.4 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.4 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/12/21. 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://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/0f93cfa12ee8255eed7ca9a92ecb56f886922d7a Thanks. Xueming Li --- >From 0f93cfa12ee8255eed7ca9a92ecb56f886922d7a Mon Sep 17 00:00:00 2001 From: David Christensen Date: Wed, 8 Sep 2021 10:48:20 -0700 Subject: [PATCH] test/atomic: fix 128-bit atomic test with many cores Cc: Xueming Li [ upstream commit 17a042376be17f6c615b93b189a53eaca1b8bd48 ] When checking the results of the rte_atomic128_cmp_exchange() function, current code compares the values of a uint32_t and a uint64_t variable. If the number of lcores used by the test is large, or the value of the iteration count N is increased, the variable size mismatch can cause a false test failure. Modify the comparison to compare uint64_t values. Fixes: fa3253c534b1 ("test/atomic: add 128-bit atomic compare exchange test") Signed-off-by: David Christensen Tested-by: Ruifeng Wang Reviewed-by: Ruifeng Wang --- app/test/test_atomic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_atomic.c b/app/test/test_atomic.c index f10f555af8..ce0c259bd7 100644 --- a/app/test/test_atomic.c +++ b/app/test/test_atomic.c @@ -591,7 +591,7 @@ test_atomic(void) rte_atomic32_clear(&synchro); iterations = count128.val[0] - count128.val[1]; - if (iterations != 4*N*(rte_lcore_count()-1)) { + if (iterations != (uint64_t)4*N*(rte_lcore_count()-1)) { printf("128-bit compare and swap failed\n"); return -1; } -- 2.33.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-10 14:17:07.555331570 +0800 +++ 0126-test-atomic-fix-128-bit-atomic-test-with-many-cores.patch 2021-11-10 14:17:01.887412621 +0800 @@ -1 +1 @@ -From 17a042376be17f6c615b93b189a53eaca1b8bd48 Mon Sep 17 00:00:00 2001 +From 0f93cfa12ee8255eed7ca9a92ecb56f886922d7a Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 17a042376be17f6c615b93b189a53eaca1b8bd48 ] @@ -13 +15,0 @@ -Cc: stable@dpdk.org