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 54BD5428F8 for ; Sun, 9 Apr 2023 17:26:25 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4EA2140EDE; Sun, 9 Apr 2023 17:26:25 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2070.outbound.protection.outlook.com [40.107.237.70]) by mails.dpdk.org (Postfix) with ESMTP id EAF02406B8 for ; Sun, 9 Apr 2023 17:26:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PzzuYB5N8Rs2WR9g63gxw2fXRZGi/vgpPIoOcR6n7BBL8Q5rC7vhd8NnorWFH53WBh65baz4334ymaqr75eKHAT1Qg41H93Vp/hSQpS6qs++VsmVTcM/CkyU0lYDCt9+F090+rKe8n9L2gKYw5zWQ7+xpjBAUWm5W0M3aiYhbI9I/WDfdxeURFY41McR8QjxxY9KAr0oqetKapinllDJXIoIYqXcCFa/0iRUPUdP3k7DU2niTYrt4qxyoA3pw9kogoTnDhiiXIZiOI8xHs5t7FB9RaN4kaIuKk/bTEfhg15998FVslRiz9NhHBIiziu1qXhIDuMxFevI4nR0yyDaaA== 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=WpOEUmTkscwQgwMkFZPi19ZM0G8InvohfliJim8xCYU=; b=NNp3B8yUUi/mqKBLCN6AQCMrH9+zXoNRndbCYFqaLatzKL5u5hqv2kx9pqkKUFMw08f9lSBFvukefXzz4N9VxgsR6nT6PY4CrksIej6Cnr9GS2k7CdJpiS84ful7iSZFTWi1WYr23ufZZ54yGHaQ2VUfH8FWQa/zGS59hqxL8XYt2ojzb4zTkaqbOQ0IcaZtgeReGWBRsrqWtmeaS6Y829IRBFNOX4SFWLTbjidNDY2CIhf/2IX7VN/kg2f3xxJ0Nh7ZhSubtp1TuwwOFgblYQUVP4s2yjkfU/IqbD1tG69iMfOS3OQz0cOCPiixZpR6xRbvhszFyDy9XOqT6erZvg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=marvell.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=WpOEUmTkscwQgwMkFZPi19ZM0G8InvohfliJim8xCYU=; b=T5XoEwzua1jPV2ylyvIuiQ3N6g0xea7oHzbBJfBMn02rQWHr2P2uYHYWt0IdoKqon7vzJ6ewFTc2nlHCD9BT9NPMRuWrUY0Xy9LWQOvyvWnueKxD0LsBPi80Qhmenz2GXefHF6gBorYVsOR8eyMp7zuMOR5xZJ1jBSSxojQScnnDOe2uSLdCMj93kFMK7T6vIPbFbPUr0qUys35EWllKsqeTrdyIr/XUFe2QnSeFMxHa67iGKljdQBdOcCA8jlvHHb1XE8rqYr+MvS69p5eCj+dp9eo8OGKAvf+1E6nP6UO6+BpugRnmsvT+TSet2IIoDa3IxeoE+0jAYhI/L9o1Gw== Received: from MW4PR03CA0300.namprd03.prod.outlook.com (2603:10b6:303:b5::35) by DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.36; Sun, 9 Apr 2023 15:26:21 +0000 Received: from CO1NAM11FT012.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b5:cafe::e) by MW4PR03CA0300.outlook.office365.com (2603:10b6:303:b5::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.36 via Frontend Transport; Sun, 9 Apr 2023 15:26:21 +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 CO1NAM11FT012.mail.protection.outlook.com (10.13.175.192) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.25 via Frontend Transport; Sun, 9 Apr 2023 15:26:20 +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.986.5; Sun, 9 Apr 2023 08:26:14 -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:26:13 -0700 From: Xueming Li To: Volodymyr Fialko CC: dpdk stable Subject: patch 'event/cnxk: fix SSO cleanup' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:23:14 +0800 Message-ID: <20230409152529.5308-7-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: CO1NAM11FT012:EE_|DM4PR12MB6280:EE_ X-MS-Office365-Filtering-Correlation-Id: 89c36559-4c44-46a9-ff74-08db390ec54c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LgXDVBOHWM2nHpCjriuAF1ujRznULV9vV+2uWTu4DelpVuKTQ/MRIHRYpuXPboC6SPH5aV1DtBaK9r+BSZstGsvQTn6FZp2tMht/7811mRRaVR4ncBUxnEYMx6o36sbM/RwkGizo4Gp8VB6cqsK0CGXrpTzaovMtCjOAeHvfPKWQW6fIgbR5DORvnOOs3PoHiQ1swLcyRgw3AIvE8sGvToVG/qSfz6lwss0RZfrajXo3MYJGc/6RRYW0/NqDvmAZLsBCVJsP7Idom6ZzY+B5c1isyhG7YpwBMZkm3tpnhn/KrM5M2FTSj0jCIGn3TQM9e1pi6Gte7Xf01OvrNmCgUZzYWdg2Nav7bqk3njdVoZwQFG4XyDJkRcSzmrDYKlngNxcsAuse1bi4Y/Fw99iEpPBY5JFipG7eKPJY6RASvh9JchkOmKNbz7i7oocRaXGQVpwAkEZuFKsabZP9RYU4vfIak6AYCsBPFi7CXWo8J+AFhZ8mjjpiYnjxJ2/MSiZPE6IKBFDb1jkB+qffLiFkwtgaL61xYZW8Ggj+RIMQsl15aJZVBrWxM2IwgzF3IW25QHmuVOPi+HO1RgQM30tWXEi8Fh0iIBSQQwPS6YDxMGzA4pa3OkGWsqC0K++4sRvpNde+nrpNSD8fqkIDlhQ1TgmrvFwpQwck021tfYQWlSb2pV/ZohcCT6xZe/i6Cce1+8deul5UQ6FCcH+gn62EXuiIMy1VHQ+iaHQJ3r41GR28pvasoTu0vIhuyp5YZpWEAbUo2ZP30AKMyJ8LoiWHDqvtDOk5yYz3X/gsx9gmIeNFyxzCRRBqhjdbcYhH7s+vweG5EwkREAYWle/0iAvp0Q== 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:(13230028)(4636009)(376002)(346002)(396003)(136003)(39860400002)(451199021)(36840700001)(46966006)(40470700004)(55016003)(8936002)(7696005)(40480700001)(40460700003)(966005)(5660300002)(86362001)(70586007)(70206006)(8676002)(6916009)(4326008)(478600001)(316002)(82310400005)(36860700001)(82740400003)(7636003)(356005)(2906002)(53546011)(1076003)(26005)(2616005)(83380400001)(47076005)(426003)(336012)(41300700001)(36756003)(186003)(16526019)(6286002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:26:20.4602 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 89c36559-4c44-46a9-ff74-08db390ec54c 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: CO1NAM11FT012.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6280 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/2f9bb3f72a14cae2ff3a37810411946b08762743 Thanks. Xueming Li --- >From 2f9bb3f72a14cae2ff3a37810411946b08762743 Mon Sep 17 00:00:00 2001 From: Volodymyr Fialko Date: Thu, 2 Mar 2023 11:58:32 +0100 Subject: [PATCH] event/cnxk: fix SSO cleanup Cc: Xueming Li [ upstream commit c31a3b37bb26c2f7f270592c8976072b510869dd ] dev_fini() can return EAGAIN in case if LF is active(used by other devices). Ignoring return code leads to early free of resources that are still in use. Fixes: 8558dcaa05b8 ("event/cnxk: add build infra and device setup") Signed-off-by: Volodymyr Fialko --- drivers/event/cnxk/cnxk_eventdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/event/cnxk/cnxk_eventdev.c b/drivers/event/cnxk/cnxk_eventdev.c index db62d32a81..db50d193a5 100644 --- a/drivers/event/cnxk/cnxk_eventdev.c +++ b/drivers/event/cnxk/cnxk_eventdev.c @@ -613,9 +613,8 @@ cnxk_sso_fini(struct rte_eventdev *event_dev) cnxk_tim_fini(); roc_sso_rsrc_fini(&dev->sso); - roc_sso_dev_fini(&dev->sso); - return 0; + return roc_sso_dev_fini(&dev->sso); } int -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:38.993538500 +0800 +++ 0006-event-cnxk-fix-SSO-cleanup.patch 2023-04-09 21:45:38.569042200 +0800 @@ -1 +1 @@ -From c31a3b37bb26c2f7f270592c8976072b510869dd Mon Sep 17 00:00:00 2001 +From 2f9bb3f72a14cae2ff3a37810411946b08762743 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit c31a3b37bb26c2f7f270592c8976072b510869dd ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -19 +21 @@ -index 5f1fa1e96d..cb9ba5d353 100644 +index db62d32a81..db50d193a5 100644 @@ -22 +24 @@ -@@ -670,9 +670,8 @@ cnxk_sso_fini(struct rte_eventdev *event_dev) +@@ -613,9 +613,8 @@ cnxk_sso_fini(struct rte_eventdev *event_dev)