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 328E745A67; Mon, 30 Sep 2024 12:30:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1FC1340656; Mon, 30 Sep 2024 12:30:20 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2072.outbound.protection.outlook.com [40.107.20.72]) by mails.dpdk.org (Postfix) with ESMTP id DAC21402CB; Mon, 30 Sep 2024 12:30:13 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CfUFpL2VLJAI1jvmCX9j4WeR0GYfei0lX9oZuHUozELa5fsJkWiuDEw1Y/pKwRdlnKHPjGN9EcI5YVp+gwDcdJ+8J3G/l/cAqLkc+eNC7kRnMkG1iQCV+ALFItVWrg6rrRIHHImKL+b8BVxi74sfLY+wFppvYNVCUfvixVQL0Ly+qfoEHVS7Vm7+EOoZaaDBiCRKD99URiocc2//CpFsk5FjHp96MQmBGDm0oyCcUOI9PHI/OkWWJ8P1X6a9kq5keX51cqJKF/VGFPmhhLZ92DCr/p1lE7e38cUeh/4BGLInq0eFH+uwVeUyaRa7/aQFSnOGMx2GNxHe6Lc1D1lZwg== 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=5gzOlFqHHOKX2aDsrgYIZEEnx6dTdb6uJxfJzlHJT8I=; b=uzfRHOli32xdTrL15whJ/hglU2D2EhFDFX5QjqM3i1YjMfuyYQDiJ7GSI3OU3hoMcelCZFm0+JpwojslYLvdLaZ0DV9bAuryCFtYmoSt6vwWTW4OQbgYs2noKvd9TdhPh5EtZSNIUg0QS3W3VxNzurdY0lB5mDHZ7vgVeOd65+U2Q45caRpYbzm56sq8vs8g8k/c3n6FSF1B2CojD4zGrvaaRPm3NYsH9B2x0BmbrS0sgQz0xz19VsY033JyCFE9tvwxopClQkW7v/CMYncAkThqWw79MCz/vRCbi7ZffJ8c3u4xfaiDfDVQH1ZOb7hZIUGAAoXxTNaANaR0i8GqJA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5gzOlFqHHOKX2aDsrgYIZEEnx6dTdb6uJxfJzlHJT8I=; b=bf+xi1z2ORbbbDaJythkAD9vgJF2mGRCVrI6ER9AOZaxK050q1U7qdX4q9dFWrOvFxYMCTFsmqozuMiT6C7JDeMFQYjluyiX5tqUz8fOIv2qOUd27cCZg0EDOzFJ4zEnpCLQ/SRZilcuUqwSa1AFybAi4wpkx4ZRppxR9cgLWPYczDGwUwmYKAm7nlPBTbobxv7Hu9jZ1FYgeOXMTvuSTk0CbN/nYLB0ATiwJY+u6LGo85TDDu2lI1ZFxB+D4BUvvynj1Mi1neAtRiwITuKOT40i4q9zrMfQa7aL3ZuhTndjrAJUEK8sKIE0wap86SE1J2kqOIwDvUDsLAiifPwtJQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) by VI0PR04MB10161.eurprd04.prod.outlook.com (2603:10a6:800:242::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 10:30:08 +0000 Received: from PAXPR04MB9328.eurprd04.prod.outlook.com ([fe80::367:d59:375:fb87]) by PAXPR04MB9328.eurprd04.prod.outlook.com ([fe80::367:d59:375:fb87%3]) with mapi id 15.20.8005.026; Mon, 30 Sep 2024 10:30:08 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@amd.com, stable@dpdk.org Subject: [PATCH v3 04/18] bus/dpaa: fix the fman details status Date: Mon, 30 Sep 2024 15:59:32 +0530 Message-Id: <20240930102946.3236998-5-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240930102946.3236998-1-hemant.agrawal@nxp.com> References: <20240823073240.3708320-1-hemant.agrawal@nxp.com> <20240930102946.3236998-1-hemant.agrawal@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2P153CA0027.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::14) To PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9328:EE_|VI0PR04MB10161:EE_ X-MS-Office365-Filtering-Correlation-Id: 3299739c-2d12-42e0-f739-08dce13adb37 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|52116014|376014|366016|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?QDYWJb/PSRUmHyGxTJaFcaK0nf6RwnpX4vg0LD7r0SzAVqfuSS6dPeFqxHVH?= =?us-ascii?Q?w30hABz0Fev5+JXGdqn8WSRMpa2c0JjMf3pzyauyZ9g3jrrBaLYho12Ukcf+?= =?us-ascii?Q?Fj71evLV9qPifGGq5HmP4JWCw7mbctsmKfpelaQf7/CMtaz3GrPRwaocaagf?= =?us-ascii?Q?MGPidcmALu9eaf21m5I5s9RT14QbmBtOwhr48xLz1/ob4fboSYCXc3SM5gPa?= =?us-ascii?Q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txDBBnt4ardnfWx6ADvSO/dgpE8Yp?= =?us-ascii?Q?9bR8AtvDU1vCmH02TCmsuzq6TQxY13MyvbCU9ieVCaPcdeVxRRznOI2Efwk7?= =?us-ascii?Q?jhZX9wiXXmG9ug1NqEOkZ5xGIVuXQ+IrhbsvC6YKDC3dQrrWM/dfWLHUUrrG?= =?us-ascii?Q?hnh9L8ETab4/5SLTQqPWV3b1mFxUECd4szTQZR2ZVlrTPMgj5y0zNmngPPvf?= =?us-ascii?Q?OfvDBJa6XoqUD9UwSvY0gyzxJtyU6KsiRGUUvbw8Xq3Zrw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9328.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(52116014)(376014)(366016)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?dpt/VEIWBBJTlRoepWjl7cqD5IW+q5nQ20bPJXTgCZmc7BywCnntlPl4KRSz?= =?us-ascii?Q?t9TEnAv+FmfTklOJXi1vTQbYPesfIB4eDrC9Lf3C69xVuWqh0Bk6rGhnUqW1?= =?us-ascii?Q?JT4L7io5dslD23WYfrgvfl53KXf1M27GnEdjlRUMpBSNIRkh0ETgAkyI73+C?= =?us-ascii?Q?Y/10bzZWlmvcWoHLjlwZZxNIOth/Y5AifyQKRs7f7WAOuVeyDvGcbnJn9aGc?= =?us-ascii?Q?G/PoLL0Y7ybeq2Irpb7kOvOAFuQIk4mAjASu/ucr9oICKxsF7KpayyQV5ZA3?= =?us-ascii?Q?adm/gtUPHZ5iKdrGSVYYZY1IyMv6MQTkymW47JnniftsyiPgzdj/lIWBhA2e?= =?us-ascii?Q?IuJCJznvWg7hqI2Gktbw2gP7u8+aXg3RLsEi9/aYBkS/VvIcuCh8PKYIK/Rp?= =?us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J+8LCX5fEitSTw?= =?us-ascii?Q?bvNvRGgnk4ppUFqK0R+2bsbUISrUgwp7ERbTIgD2Ej7S62D/GSwtg6ArZroh?= =?us-ascii?Q?312D3qby627+UYVyyRsjW16oS7o2qyyesrkc6ngtf2MZg/Uy0hrJxwnaiYoX?= =?us-ascii?Q?RjAX3Oa8lKwfwGQSbVoaapTtMdAQF3PdmktCsMEN5GcLgUdGH4uVjK5Oxm6I?= =?us-ascii?Q?9Q4DVx4w5Dk7UlMvTvXpNuUVoKN74fef9Jrfp8v4bmIAl/2A0/zfomHisgoJ?= =?us-ascii?Q?e1/MZzCDa+U4mJICkRJI0E7ZyOxjUjxmeC6aHgv4+FuZ5iJCkqY5BXGWhKad?= =?us-ascii?Q?5Q=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3299739c-2d12-42e0-f739-08dce13adb37 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9328.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 10:30:08.4864 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QUY1Kq3KtWppM6e02m5WA+X0FMdeK9KVJbMmdcnq9A8d1UWjjcpffkmgsbwVFcKmBzobM0437dDYFQLWU1YR9w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10161 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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") Cc: stable@dpdk.org 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.25.1