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 67A72428F8 for ; Sun, 9 Apr 2023 17:37:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5E269410EF; Sun, 9 Apr 2023 17:37:33 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2057.outbound.protection.outlook.com [40.107.92.57]) by mails.dpdk.org (Postfix) with ESMTP id 9FF2C40141 for ; Sun, 9 Apr 2023 17:37:31 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T/6+Pd6HvHf3Ky1pxh7Jw2JxJ3np5gUrY9n0GvhRmOMHiqgeetciSaog/pD75CqQ1bCAd/OYjMIZW0IgJ1w8ggwtQ6yMYKU/mcbOPqBLl4VZyJ4W24P1v6T+UTPlS8rH9TIrG1BkLU6f6f36/Fkt64Z1PW/cfpu+gQoMVGjTX/dTeXMppiXmqUYQ5ii9M+AzyMBdwu73Lo92QJf133kG4gW/iJ9kTMHhzYGW4HSGRlXkaeHuFpclUWOT2H/BcYoLb04ZzJehXESzzsXQPTmQm/vjVkYu9bZEegKH0maPOXoAgGunZDjkuXyIB7W1Zx7FJNmo3BgQSvNkhIUxRyszdQ== 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=nrwmZWE6H0ACPsrJ0476FSGpSiVIDVl1m2Mpm8uUCIU=; b=ft0WcOiErWB3v5Mr7ha6pvFaRrwGEesZ1u4jzj5AP+wGx3CJD+u3LcZkfCssBFbvrkcyfBycMqZQd8FUu0QbaBLl3oThBM0TIDAXWnaQ0QTuBiHs1d+QShjo3HA4f1umPcM2FIoqS3MEsLGzonC7racVUTBy7upjJ1Q3BHjIivNrG6QcFKjB2N+i+nU0Zax6kaJQlqKiFaVQgFxGkVuv6s0TVBPLcGV6gTfBOnfo/Or9fJL3KDxD4FPFyEX/JxGJBp31AqQRpyeD44p+afmL2zh6aURPA0aX34F8kxZUX0Ygty3Jipe3+KgH7yYMHdRzQQk+CJLelmBeTCA+wnlbmQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=linux.vnet.ibm.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=nrwmZWE6H0ACPsrJ0476FSGpSiVIDVl1m2Mpm8uUCIU=; b=JSmG02ViE+2OgmZXQKelgEJEAjNxTMniHZSIcwV7YwQnQIP99VKZk1SZF5m4sefn1R35u5hCH/sVBpJdcqJm8vrzgkO8qR+8dP6q85QYnCOjvvIA5aNiBW/ZxmatBuYdOJtGkOkQIggjk5eCx6yqywoFoSAqLLn/u2nhLNu2aM1SaiR56PG8dFnM8snhyQCnNBsdJtBY5AjxcIXt3gTkAfyim/u8ijgWAw2UlCcPPIZfx/s+Cw/XaDr7KGRCSUD9TWa/4q9HtqfSzsbUolBRR47VC17dP6SMQSRKotCk9ae557loHjr51YQHIxTfpsNL+3iXyKTiafRwdEYPhCDwLA== Received: from BN0PR04CA0017.namprd04.prod.outlook.com (2603:10b6:408:ee::22) by CYYPR12MB8939.namprd12.prod.outlook.com (2603:10b6:930:b8::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35; Sun, 9 Apr 2023 15:37:30 +0000 Received: from BN8NAM11FT018.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ee:cafe::6) by BN0PR04CA0017.outlook.office365.com (2603:10b6:408:ee::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35 via Frontend Transport; Sun, 9 Apr 2023 15:37:30 +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 BN8NAM11FT018.mail.protection.outlook.com (10.13.176.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.20 via Frontend Transport; Sun, 9 Apr 2023 15:37:29 +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.5; Sun, 9 Apr 2023 08:37:23 -0700 Received: from nvidia.com (10.126.230.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, 9 Apr 2023 08:37:22 -0700 From: Xueming Li To: David Christensen CC: Thinh Tran , dpdk stable Subject: patch 'acl: fix crash on PPC64 with GCC 11' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:25:25 +0800 Message-ID: <20230409152529.5308-138-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230409152529.5308-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230409152529.5308-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT018:EE_|CYYPR12MB8939:EE_ X-MS-Office365-Filtering-Correlation-Id: 10a859c5-ba62-4d35-b047-08db3910546b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 00A0un9ThH+BeaHjHFp7qASRtdunW2fXTw36XcPhL+1nx/DJQ4G14SSWAQOoDTcBpVq3oFmOzXp/cUNCMUJ15Sn8hACFhyUQRl4ga1OUehJcihbFPZksy7CbDNydxNisAiZVWZa31D9OKUqHjy3/x0o7bGmVdCfaydNHewzrnigMlDOr8is33ogj+kdAwXLfrCJNkU65bxbdM/ISL7wHDxTB8GzJBo7wX8I8DfBZzKTUfuN/WVjj4jLczF73cpq2h6F+bkhG7efWVKtWB2KBO9mueDbsSD6gVWDQDZ8FRkfZ0xKGjnVAoysKSkPzpTEd8RQIRmfgpV+O1mSX4PvpL2UEqXfVAZ15tIhMAx+CzpSxH1dL8gMtS9x2EQL3TeaHxoHvTfwSFaNXqCasgdzDPPTUFCzpZrDhO+KaPKUznUKM+pkdO1l6u6rh+iqskHfhwu0RS3+4Its2FXUNOLLsN2btKQmEAY5Qe7QYyljKS5e18eii0uZg1d0wbADnvn7qQ/kGMbmAESk9MRs2PCIN8UECmAuGCugcA8anLFjqoY6c9bpMcy/YDffTU4DY+LDvE0f4CaZOyGKwS8EtPB3imPdKR/3BednyXIYXMPJxnhQS7BHfhRlzU+JN8XP7YBmHbr5t5bUoM+35LJ9v64R4WUL0UxPBeFTd+2HSW9J8IehvLD9xu/Luz7swdqRxoEkx9sDJ3nE+Lkl3k05A77aeWIcefwG/R0cLOHZlYSj7qSvO+hzsapC4KqvFALp+Z3udkUlE8OQSK4LoUCe1S+b9z49C7obW2tBbahTNunCOR8a3SCSfaQoAGBW3bl3NiuSDvaQDnPMieLhbj+tqkvHk5g== 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:(13230028)(4636009)(346002)(136003)(396003)(39860400002)(376002)(451199021)(40470700004)(36840700001)(46966006)(478600001)(7696005)(19627235002)(54906003)(316002)(53546011)(1076003)(26005)(16526019)(6286002)(186003)(966005)(2906002)(4326008)(70586007)(70206006)(5660300002)(8676002)(6916009)(41300700001)(8936002)(82310400005)(7636003)(356005)(82740400003)(55016003)(86362001)(40480700001)(36756003)(40460700003)(47076005)(83380400001)(2616005)(426003)(336012)(36860700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:37:29.9629 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 10a859c5-ba62-4d35-b047-08db3910546b 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: BN8NAM11FT018.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB8939 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 04/11/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/log/?h=22.11-staging/commit/0dce56b788728c2c3e72acfd9c5b70147754840c Thanks. Xueming Li --- >From 0dce56b788728c2c3e72acfd9c5b70147754840c Mon Sep 17 00:00:00 2001 From: David Christensen Date: Wed, 22 Mar 2023 13:29:33 -0400 Subject: [PATCH] acl: fix crash on PPC64 with GCC 11 Cc: Xueming Li [ upstream commit 3f62bba2e7aa15e5f1e418cdced0f4160de154b3 ] Original ACL implementation of Altivec optimized code included an explicit -O2 optimization level for a particular inlined function. When DPDK is built with the default -O3 optimization level on gcc 11.x or later, the resulting code may generate a segmentation fault as observed in acl_autotest. Since there is no explicit reason given for the local function optimization level in the original commit, and testing with gcc versions 8.x through 12.x results in working code at all -O optimization settings, the local optimization is removed. Bugzilla ID: 1197 Signed-off-by: David Christensen Tested-by: Thinh Tran --- lib/acl/acl_run_altivec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/acl/acl_run_altivec.h b/lib/acl/acl_run_altivec.h index 4dfe7a14b4..4556e1503b 100644 --- a/lib/acl/acl_run_altivec.h +++ b/lib/acl/acl_run_altivec.h @@ -102,7 +102,7 @@ acl_match_check_x4(int slot, const struct rte_acl_ctx *ctx, struct parms *parms, /* * Process 4 transitions (in 2 XMM registers) in parallel */ -static inline __attribute__((optimize("O2"))) xmm_t +static __rte_always_inline xmm_t transition4(xmm_t next_input, const uint64_t *trans, xmm_t *indices1, xmm_t *indices2) { -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:42.281302000 +0800 +++ 0137-acl-fix-crash-on-PPC64-with-GCC-11.patch 2023-04-09 21:45:38.819042200 +0800 @@ -1 +1 @@ -From 3f62bba2e7aa15e5f1e418cdced0f4160de154b3 Mon Sep 17 00:00:00 2001 +From 0dce56b788728c2c3e72acfd9c5b70147754840c Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 3f62bba2e7aa15e5f1e418cdced0f4160de154b3 ] @@ -18 +20,0 @@ -Cc: stable@dpdk.org