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 9066C45E41 for ; Sat, 7 Dec 2024 09:05:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 88D9E40281; Sat, 7 Dec 2024 09:05:14 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2047.outbound.protection.outlook.com [40.107.237.47]) by mails.dpdk.org (Postfix) with ESMTP id 4EA6740281 for ; Sat, 7 Dec 2024 09:05:13 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=l22jupvUYKam8ledX2lbpdt5XAzK4eTnuiP6dxLrdew+r7KZYh/e3B/3DaiTl2Yih9+5fsPE1ih3R4TunkciOCfmQlTtKkfc5QtKlNLBfrMoLZ42CZ+k6hG+cZ32l57waw31hlg9mE7LRaJLi0zedBIKWHbdZT3g47Fo232/+sqFh7rT85chqRp1MQUfryW0KyJ2jhbbbWpngdbgPjzlD/HS9uS4pCbSTt+/bmNM3FGCXrn1lOjqBIS1GU3zgnWjqYq/IGtDqj1USYSQXbL6kf5HiBqurf3Mxg72LWV1Uew+aOcwgvi4/p276W5gN9HpQjYmPc69FYsSORawruUvAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=gn1PJhdG0XTFQKcu+OC4K6hLsjhnl9VDhOtE4BKL93s=; b=SQAaDVYKZiRttYgt/y0ZjchPVw+eDFs1KqZLVeWhuf7Q5OVBKFx0SKR74xkHsse7V6DqncO+vDml9mzfD4213zOYyi15cA+WDS71os8/Nqn9fTkvbT6ZmVhQHcBmKD5MI3Es88lex52HtD+ZlV5hdKzi2TTwyhfEN8ld/ZkP2Yhjni2Et3WTSaEQTHxMyxWLW4jyazrXV5MeGlU5T2KwOGaEZotXANXbIOjwnfLubQP23Y/MCFWXs8rW139DTexV87UI+XYgFTjM6BswzTc9tq0ga/qcVzO8llWkORo6op0eXM24Jf6+JNMY85jVfqDqRwrb1LX7S0n+VZxhbAhZUg== 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 (0) 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=gn1PJhdG0XTFQKcu+OC4K6hLsjhnl9VDhOtE4BKL93s=; b=bF+m2FRbzIPKz9y5OndeBA0/quY3MrWiGD74g4pFWsHpNxwMlpz7EYMo7QP9VoEEgqO3gTEdbjNyYvs6vPSw2TShBai/6twU4l3X/9YlANsvv7dcxx3ktWvQZaLNJv3lpgB6CgZVG9vYf7MJ6YUODUqlmThETTHoIP4voSgCC27in8C36LaXo5rTWgJeW8uDvwPZ6hgQnaELifG0zBfqWu4k2ShS08eosPgIgeUdtX90Zec02DJbO5erVRTH88s+NauImfsJzu5gTq/252fS2YrcRHDBTCDfudzSPmDs3u6FTlHAlXix967gY+4oAI19MZgWE9ohrgl165Qvkofeuw== Received: from SJ0PR03CA0132.namprd03.prod.outlook.com (2603:10b6:a03:33c::17) by PH7PR12MB7985.namprd12.prod.outlook.com (2603:10b6:510:27b::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8207.18; Sat, 7 Dec 2024 08:05:09 +0000 Received: from SJ1PEPF00001CE2.namprd05.prod.outlook.com (2603:10b6:a03:33c:cafe::5c) by SJ0PR03CA0132.outlook.office365.com (2603:10b6:a03:33c::17) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.10 via Frontend Transport; Sat, 7 Dec 2024 08:05:09 +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 SJ1PEPF00001CE2.mail.protection.outlook.com (10.167.242.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.7 via Frontend Transport; Sat, 7 Dec 2024 08:05:09 +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.1544.4; Sat, 7 Dec 2024 00:05:03 -0800 Received: from nvidia.com (10.126.231.35) 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.1544.4; Sat, 7 Dec 2024 00:05:01 -0800 From: Xueming Li To: Nicolas Chautru CC: Xueming Li , Maxime Coquelin , dpdk stable Subject: patch 'baseband/acc: fix ring memory allocation' has been queued to stable release 23.11.3 Date: Sat, 7 Dec 2024 16:00:02 +0800 Message-ID: <20241207080055.488538-45-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241207080055.488538-1-xuemingl@nvidia.com> References: <20241111062847.216344-122-xuemingl@nvidia.com> <20241207080055.488538-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF00001CE2:EE_|PH7PR12MB7985:EE_ X-MS-Office365-Filtering-Correlation-Id: 0f4dd7ca-2dcb-4265-bda6-08dd1695dea2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|82310400026|1800799024|36860700013|7053199007; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?pI/cOgu5KPIvp+k8HY179adYImKFrASDNnR5B3qozMCohymz9R2OqoR7TEA2?= =?us-ascii?Q?OZoBOAaDhgxv4GCE8TzEfjvvGnxvcEal0/Qenfgb9dP8sNksXuyspfocxMSt?= =?us-ascii?Q?ivYZAO7Nxl44qktlv+SOTVO78SgTsM31QwxHKHGdwfNulK4BMQpODEoOt9vN?= =?us-ascii?Q?3Wru4n0hmyIC5N0iTh6BoT1iHgyqwcOI2YI8EQZTbJsWtHHGH8C3ZHpylBBH?= =?us-ascii?Q?cNF3GRAjDfXn1xIGyUrxIOdDpLAUc5t0eKWiid7ySQ4w+XV19cb10dlFga3B?= =?us-ascii?Q?XKrlLTGuHuVpi6wJZ07f9J6v8cILps/Q+RjJfQahx+02Hg7yN0Q7RjivYz9o?= =?us-ascii?Q?+nuO2TIAqc7USCPL7uZidtXFU/O1ThZkf1HeLf1agQL76bikyjYKXlAD3H3o?= =?us-ascii?Q?mYm3uE1Fc9QI92TLgqet+brb68PjljuW1+ElA9p3tsLj7vHKz16zgE8YbZ8j?= =?us-ascii?Q?wYldNtqtDP2yThMP6fdG+G+OQY/Ya1fOM+FiVqvPPlMp162884wSBbLGD36v?= =?us-ascii?Q?BKT+BR85KeP8PbhtH2D4P9Q2gJgYHPVCuB3cGElkWzv8v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147BDjmo8So?= 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:(13230040)(376014)(82310400026)(1800799024)(36860700013)(7053199007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2024 08:05:09.6373 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0f4dd7ca-2dcb-4265-bda6-08dd1695dea2 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: SJ1PEPF00001CE2.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7985 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 23.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/10/24. 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=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=91dc468e14825496f56e730bbf1e8e7ac2544109 Thanks. Xueming Li --- >From 91dc468e14825496f56e730bbf1e8e7ac2544109 Mon Sep 17 00:00:00 2001 From: Nicolas Chautru Date: Thu, 7 Nov 2024 16:32:38 -0800 Subject: [PATCH] baseband/acc: fix ring memory allocation Cc: Xueming Li [ upstream commit 0c5709824b531e83b36ed91852cea98b1cb292e1 ] Allowing ring memory allocation whose end address is aligned with 64 MB. Previous logic was off by one. Fixes: 060e76729302 ("baseband/acc100: add queue configuration") Signed-off-by: Nicolas Chautru Reviewed-by: Maxime Coquelin --- drivers/baseband/acc/acc_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/baseband/acc/acc_common.h b/drivers/baseband/acc/acc_common.h index 6752c256d2..13f7ec40e6 100644 --- a/drivers/baseband/acc/acc_common.h +++ b/drivers/baseband/acc/acc_common.h @@ -787,7 +787,7 @@ alloc_sw_rings_min_mem(struct rte_bbdev *dev, struct acc_device *d, sw_rings_base, ACC_SIZE_64MBYTE); next_64mb_align_addr_iova = sw_rings_base_iova + next_64mb_align_offset; - sw_ring_iova_end_addr = sw_rings_base_iova + dev_sw_ring_size; + sw_ring_iova_end_addr = sw_rings_base_iova + dev_sw_ring_size - 1; /* Check if the end of the sw ring memory block is before the * start of next 64MB aligned mem address -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-12-06 23:26:45.567760310 +0800 +++ 0044-baseband-acc-fix-ring-memory-allocation.patch 2024-12-06 23:26:43.943044828 +0800 @@ -1 +1 @@ -From 0c5709824b531e83b36ed91852cea98b1cb292e1 Mon Sep 17 00:00:00 2001 +From 91dc468e14825496f56e730bbf1e8e7ac2544109 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 0c5709824b531e83b36ed91852cea98b1cb292e1 ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -19 +21 @@ -index 4c60b7896b..bf218332be 100644 +index 6752c256d2..13f7ec40e6 100644 @@ -22 +24 @@ -@@ -795,7 +795,7 @@ alloc_sw_rings_min_mem(struct rte_bbdev *dev, struct acc_device *d, +@@ -787,7 +787,7 @@ alloc_sw_rings_min_mem(struct rte_bbdev *dev, struct acc_device *d,