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 8F90445CE3 for ; Mon, 11 Nov 2024 07:38:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 838C54067A; Mon, 11 Nov 2024 07:38:13 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2087.outbound.protection.outlook.com [40.107.94.87]) by mails.dpdk.org (Postfix) with ESMTP id 252D04067A for ; Mon, 11 Nov 2024 07:38:12 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=zO5y4bFKkQizs2/hwbeY+w30m/8BMv5DCU67BzqVctAmdJ200cEJwuEpnQ4y7dN+BtyUmxcHVtkt2Iy+76uJTOHGMOxEOIoWk6oCxE6kI7Mkjxu9RcdmqsXuBoPow/WAGq8Uj5Kln4MN+aZoAOEdy/45Nr1Tc3oe2DwfxgiyJicrwoLeP8wyzgmzRNka3gmz3wQa7h7Dqc3MPjOA52JeCocRYFCbbAuHJPk37Zyh0h/1WuBSWp5D1PuOlCd2XqDTgAO90w+AgXYvE6DfCVE4Tun6kPjMInhcfAhxZ4a7VCfOPPz2BCFlO28vmJMi64OhrOw79tAlLZR6QpsLrj202g== 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=A+yiTfTUimi+FchnmpuaT8rUi/K9SVA5dyCbGJ7Tuhk=; b=zJ7iJcSCCnhkLijojzda1cdpES9ariMHuGRF+bQ+wOo2XrR7PUo6qNgrbMezY3hpIOw/ZW1Y3yOU6bVnQ0soKAlgHTrAqT83OGE+Utj06LovVn0sTxfEcpNhFElFts3mIpgMFhSkazIoBSK1NI7tKa0MGjs2JvbazWuD63wqPvi6lM5E5wvkg6FVboJZmV8O1RyLLmNUyQ3Yc0harXorRqU4oiIviL1NoHx+MxwwD7Zq7WfJA3JM6KX7B/WIfMHW/9kPjlaPDUjAOBz7rvhT9VHrKEQdd4AkVoEU+sVJOsMYMjH++zAE5Pt72dFavQfl7MmQf30/Xazl48X90vb5pA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=nxp.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=A+yiTfTUimi+FchnmpuaT8rUi/K9SVA5dyCbGJ7Tuhk=; b=g2cZK8u8vhtTMelNc7yPaH1DgjgZlcKTOzEvn1BXT59FUy+YMJtPFlfS6CLFlio+P/qVKTrySOyL9qF8P2/pxhLta6SxmYUXaiqgL0O8iJslRdYXHE7du7p8MdwvBg9Gd1DmGd4OuVfZUYN+36Yg10X4zjWdXvc3zEgVM+IZQ++8h+tE0PuD0RIHZ/rfhCdN5aThZ4405xD/CRH0OPe7QkauSd8N0E+rJ1oOvg09ljVQd1UaVIJqjRV3pgnjzlLAqfUHEkvyjEAUtmJm5rbwdpjM3bO1XywK5Lje0khgSUdI6SfmsaxFk5fz5FgamhvKuyjGlBQJ4DUZIFbkUZ4K6g== Received: from BN0PR04CA0176.namprd04.prod.outlook.com (2603:10b6:408:eb::31) by MN2PR12MB4109.namprd12.prod.outlook.com (2603:10b6:208:1d9::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 06:38:05 +0000 Received: from BN2PEPF000044AC.namprd04.prod.outlook.com (2603:10b6:408:eb:cafe::47) by BN0PR04CA0176.outlook.office365.com (2603:10b6:408:eb::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.27 via Frontend Transport; Mon, 11 Nov 2024 06:38:05 +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 BN2PEPF000044AC.mail.protection.outlook.com (10.167.243.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.14 via Frontend Transport; Mon, 11 Nov 2024 06:38:04 +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.1544.4; Sun, 10 Nov 2024 22:37:52 -0800 Received: from nvidia.com (10.126.230.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; Sun, 10 Nov 2024 22:37:51 -0800 From: Xueming Li To: Hemant Agrawal CC: , dpdk stable Subject: patch 'bus/dpaa: fix the fman details status' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:28:12 +0800 Message-ID: <20241111062847.216344-87-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241111062847.216344-1-xuemingl@nvidia.com> References: <20241111062847.216344-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] 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: BN2PEPF000044AC:EE_|MN2PR12MB4109:EE_ X-MS-Office365-Filtering-Correlation-Id: 0de88086-2c07-4f04-2a3f-08dd021b6596 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|82310400026|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Er/+ZSaiMIwHGUmYQk0YqknENImg3YAR+mFvcj4uQ2A0kWPFfUjcNwAZXM6H?= =?us-ascii?Q?xwrs2Fa+nmy7MSvw9HtvT1Fc0/oHCFV6nIqrNyGxLZhJi9AL9m+ESO35y8Yx?= =?us-ascii?Q?HRH+LeTun8JkZmLDI0g1d2UTMyHxy9pbVgT4tSA4wxeL+7ziZUxCqIXP/Fvj?= =?us-ascii?Q?1iYtCvnv6ApAVvwz9BR4sHRtmCvE/CEVYQb0bt0yCo/vnUANhpXBTXG7lIE2?= =?us-ascii?Q?g7Bwr5/sAy4KL0D24rnLZ+Cwif8SLX3sTObWtJSCPY326M2Gk2NEts+uf4AG?= =?us-ascii?Q?bSZK1Jo2hRtWDIOKDQmqJxbotlNFcC/9KfjlcsxRlRaFL5FHAkvU27jnN4Tw?= =?us-ascii?Q?97fbwzDl9Z/VZnJKS1h98JNyh5p3ESy4yB7Eg/oCV/0EvsqCXK9JKofrdsCF?= =?us-ascii?Q?gPIr4UUOnKS/KBrj+iIz5OyRZL7MEICNWMFymoy9nBj1FXZ1o3yINeDDsYb4?= =?us-ascii?Q?LgdQageJrGdD31F9ykiECOLLwGfAgFthqeiLBGdzGPL6KM0lOvd6alJctVCD?= =?us-ascii?Q?eYZLq1BM7kIPl58czum6zpqZl7X5d63Ue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ispam-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:(13230040)(36860700013)(82310400026)(1800799024)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 06:38:04.6159 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0de88086-2c07-4f04-2a3f-08dd021b6596 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: BN2PEPF000044AC.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4109 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 11/30/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=adfe2ce7037c09e6a0b37d1d1381775e6b619f96 Thanks. Xueming Li --- >From adfe2ce7037c09e6a0b37d1d1381775e6b619f96 Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Tue, 1 Oct 2024 16:33:11 +0530 Subject: [PATCH] bus/dpaa: fix the fman details status Cc: Xueming Li [ upstream commit a87a1d0f4e7667fa3d6b818f30aa5c062e567597 ] Fix the incorrect placing of brackets to calculate stats. This corrects the "(a | b) << 32" to "a | (b << 32)" Fixes: e62a3f4183f1 ("bus/dpaa: fix statistics reading") Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/base/fman/fman_hw.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/bus/dpaa/base/fman/fman_hw.c b/drivers/bus/dpaa/base/fman/fman_hw.c index 24a99f7235..97e792806f 100644 --- a/drivers/bus/dpaa/base/fman/fman_hw.c +++ b/drivers/bus/dpaa/base/fman/fman_hw.c @@ -243,10 +243,11 @@ fman_if_stats_get_all(struct fman_if *p, uint64_t *value, int n) int i; uint64_t base_offset = offsetof(struct memac_regs, reoct_l); - for (i = 0; i < n; i++) - value[i] = (((u64)in_be32((char *)regs + base_offset + 8 * i) | - (u64)in_be32((char *)regs + base_offset + - 8 * i + 4)) << 32); + for (i = 0; i < n; i++) { + uint64_t a = in_be32((char *)regs + base_offset + 8 * i); + uint64_t b = in_be32((char *)regs + base_offset + 8 * i + 4); + value[i] = a | b << 32; + } } void -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-11 14:23:09.065665660 +0800 +++ 0086-bus-dpaa-fix-the-fman-details-status.patch 2024-11-11 14:23:05.222192838 +0800 @@ -1 +1 @@ -From a87a1d0f4e7667fa3d6b818f30aa5c062e567597 Mon Sep 17 00:00:00 2001 +From adfe2ce7037c09e6a0b37d1d1381775e6b619f96 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit a87a1d0f4e7667fa3d6b818f30aa5c062e567597 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org