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 AF9D741D8D for ; Mon, 27 Feb 2023 08:06:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A76A6410D3; Mon, 27 Feb 2023 08:06:38 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2057.outbound.protection.outlook.com [40.107.244.57]) by mails.dpdk.org (Postfix) with ESMTP id 3B6D4410D3 for ; Mon, 27 Feb 2023 08:06:37 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W7LkFPZGXo4xNi/JLKqLE17rcq7895aZkPmGpVrpVOrGj01nxpZdV8B6dT72oG9zWoPLx212ErTtQsIH0layp2DpSF0xjcNtp3CEx5DdACQaZIEnGnpMzcQkqmhB6+/KdPBWKgRQ6nK6UvioAPVqe34K+nQGJvT1o/63a7F35/X/WsIuC0K6Lmo2ZCrQSZo0Zxgvc7tnN3KKC68zL/R7yIMTAuEk57nwYRk63bhMFPPu3MDM4iKmsJmvYVP+G6vtvqhQ3aYrYhY3rx175PHcyw203CtgrCV5jgUqYgJL1Pz4kUym+QFHy9yFKXyfITBVyYCGaRbFH38xnS8tG5zc3Q== 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=mh6zKs4EQTof8PWEhliryuZbA25LTzp4qpGOvVqfeHw=; b=dM4Ql0TpARYFsr7//yyIn/CP4OFJtMTpJ5UKO0TfU3/9qZ/Thyd5WIPRzSEoN1ghwRavznqtzwPy+ZJvUvXTE1RNU9ome7+AewOKAMYnYS331aQDf2ePgkJTQHxDxE/9y67fGYqLFlVfPRW2w2MG6TvFLrNglETphZASKwjvHuAo1tzaQrYU7walVCgwFFTxmfxPcQZCCwj48p07S34Dpe4g2E69i+lHRaWHtuNVz2LOOxDzRF8NND8AZnfBz1NpSZFOtI8NkY2MVhWZ5ibN/pYTt88t2FZxzJ0Bje6jwD77mfleNs4waMnM88gPAKjWI+pw9slFVAJWHUd3HvLAaw== 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 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=mh6zKs4EQTof8PWEhliryuZbA25LTzp4qpGOvVqfeHw=; b=WwuygH4qbGv8qTVePv6Yx8MRy6g7Hg7+LuijzR+9ShLAIfzvT3SwACYAI9DLBEvUuxvHJzfI2C18UJqpMSBtwYtk2blG+b+l46L1fSCaMi8+d6rlQR3MGHCJ98ZfEHfW4eEhnIX7asg+3r51TVdwD3VonZFIJ9OT/Trrov5MG63TIxp83M1gJwVamQcLdMN7qN0WmwOHTPclaJ4JR/xP5ENAvz+CdWNjWC3mJJDufMzJylyY+PB6xNzG5kTbCTvOtuGPZAxAtcvmBiCpjJMQMqETGQ5/xLrtB9evlZAfSxZDDfuYfHaGBc6D+/sJKU9Jh6PQ6KBJRcb3/ZEEj6UGKg== Received: from MW4P222CA0008.NAMP222.PROD.OUTLOOK.COM (2603:10b6:303:114::13) by MN2PR12MB4175.namprd12.prod.outlook.com (2603:10b6:208:1d3::13) 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:06:35 +0000 Received: from CO1NAM11FT017.eop-nam11.prod.protection.outlook.com (2603:10b6:303:114:cafe::52) by MW4P222CA0008.outlook.office365.com (2603:10b6:303:114::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29 via Frontend Transport; Mon, 27 Feb 2023 07:06:34 +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 CO1NAM11FT017.mail.protection.outlook.com (10.13.175.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.16 via Frontend Transport; Mon, 27 Feb 2023 07:06:34 +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:06:19 -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:06:16 -0800 From: Xueming Li To: Hernan Vargas CC: Maxime Coquelin , dpdk stable Subject: patch 'baseband/acc: fix memory leak on acc100 close' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 14:59:14 +0800 Message-ID: <20230227070107.15664-46-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-Transfer-Encoding: 8bit Content-Type: text/plain 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: CO1NAM11FT017:EE_|MN2PR12MB4175:EE_ X-MS-Office365-Filtering-Correlation-Id: 8038a2bc-d7c4-4bae-315f-08db18912960 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Fqoftw2cjBU0iSz8N3I9QvQBHAIPa5lklGTv/USkLxH20uuZ29FZR2rlVhOzRswg85+Kh8/c/Pun5bmSaPrADH3r0DkIW/HbcKsm70Sut72ZsYEiiI4iFWWWo2SNA9tCYEPmsCs4xbIr4/BHU8nGmchx0KS4aymmqCBGaCGSlZ/4Shr9WkPUpdvwFhLA5c5Yi2w3fIGUkAT44rwu8HU2apba4KpxDydE4ybf4T6HTgLrkcJ8erHyqiDw4J43vlzInnmxZxDPqWGLHEzO3lBha54dPyzi1Up6q+BlYgoZCiTSG14ZhTKcy+Upd5Dd/B/gi0uPOwmU6JwSOe/AtR8OqAtYkfl1w5XwVvM8AtHLTEEN9imciHJYIQ4Ed4OWdPVgwjYSRjT8y93P55NXQBTjTiPMnmHeG30G7D2qDe+s2SqAWenMKnebkRGTkrjkG3ECvH1gWMdTZ3HyPLAUUtiGL3pg40gL8tIRv2UdaYt1lu8LC3rGfRb2+AgkAXFxYQy2i3Z6y9MpBBlrqMVw5zLMx0zpjeZitzbGGuUYyb4VN8cpq5DbSA92ylrbuhBByemho//xcK9upXvjjs0Sfp7MRu4z2GGTEouulopyrd3ngv/6PJQ4Xph4fNPEQpdKpikm3VP17HjM8WyIYT+xk21oFnnbzSM42Xzjz50gRpwQhdT7lNQ9O/eyFAZtu3rfVTgMleIUtQGQAh9jwe0+s5ZuNsOk/RjZD8BOTLogJXJuru9JQiv9NzDKqrS30YhXGk6LsqUIuWvr1j4LVr9num0xGIdzXWNWP8YuiNiU+ZLv7viCKwJK/ie5R9VyCwFg6Ga/ 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)(39860400002)(376002)(346002)(136003)(396003)(451199018)(40470700004)(36840700001)(46966006)(36756003)(40460700003)(316002)(54906003)(966005)(478600001)(5660300002)(2906002)(8936002)(7696005)(70586007)(70206006)(8676002)(4326008)(6916009)(41300700001)(7636003)(36860700001)(34020700004)(356005)(86362001)(55016003)(40480700001)(82740400003)(6286002)(186003)(26005)(16526019)(2616005)(53546011)(83380400001)(1076003)(82310400005)(336012)(47076005)(426003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:06:34.4989 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8038a2bc-d7c4-4bae-315f-08db18912960 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: CO1NAM11FT017.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4175 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=f770622597b0ea82fd76d58c1225115219eb25e4 Thanks. Xueming Li --- >From f770622597b0ea82fd76d58c1225115219eb25e4 Mon Sep 17 00:00:00 2001 From: Hernan Vargas Date: Thu, 12 Jan 2023 11:36:03 -0800 Subject: [PATCH] baseband/acc: fix memory leak on acc100 close Cc: Xueming Li [ upstream commit 1bc7f26ebd45da2ab2740a00c991100dc8f0037d ] Explicitly call rte_free for harq_layout pointer in dev_close function to prevent memory leak. Fixes: ba2262fe16c ("baseband/acc100: fix close cleanup") Signed-off-by: Hernan Vargas Reviewed-by: Maxime Coquelin --- drivers/baseband/acc/rte_acc100_pmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc100_pmd.c index ba8247d47e..0177a9e0ea 100644 --- a/drivers/baseband/acc/rte_acc100_pmd.c +++ b/drivers/baseband/acc/rte_acc100_pmd.c @@ -622,6 +622,7 @@ acc100_dev_close(struct rte_bbdev *dev) rte_free(d->tail_ptrs); rte_free(d->info_ring); rte_free(d->sw_rings_base); + rte_free(d->harq_layout); d->sw_rings_base = NULL; d->tail_ptrs = NULL; d->info_ring = NULL; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:42.416533800 +0800 +++ 0047-baseband-acc-fix-memory-leak-on-acc100-close.patch 2023-02-27 14:08:40.759237000 +0800 @@ -1 +1 @@ -From 1bc7f26ebd45da2ab2740a00c991100dc8f0037d Mon Sep 17 00:00:00 2001 +From f770622597b0ea82fd76d58c1225115219eb25e4 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 1bc7f26ebd45da2ab2740a00c991100dc8f0037d ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -19 +21 @@ -index b3164529dd..146a22bd64 100644 +index ba8247d47e..0177a9e0ea 100644 @@ -22 +24 @@ -@@ -620,6 +620,7 @@ acc100_dev_close(struct rte_bbdev *dev) +@@ -622,6 +622,7 @@ acc100_dev_close(struct rte_bbdev *dev)