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 5AAB945A68 for ; Mon, 30 Sep 2024 14:16:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 415514065C; Mon, 30 Sep 2024 14:16:19 +0200 (CEST) Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2071.outbound.protection.outlook.com [40.107.241.71]) by mails.dpdk.org (Postfix) with ESMTP id 53EE94025D; Mon, 30 Sep 2024 14:16:13 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BuOrwsLVWblq/JTnQ21I5MXlwa2EvzfJB5r1u3BkZCM5ytnIC91uY0Pu/tH2JMCUKNAKraUQ/d9tknPXorUhxvIpiLBrugb+ZT6J1Xui7R4jUTrbdPoaY06pMbicTKa/R9g5Gwc7I9BRjXMcZZSBj7U77KR3KUWnv54W/SyuvqGSTEDvEn9GNrr6KJbhv/UUXr9Sh0pjBel2SLg1veZzodR/UJ5gwcmoR6zb0TQwVfBcMJq6b01Ppfu0W6E59pRZQ9Nycyw3CghS/gCP3ze0s59hsmTf7LIuz3W5L8sLIGDWtRWAfJ1GKQh1Xp0aRYpXPuiWj3wcJMh9ZbB0/XH7mQ== 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=GAW7WRGQ0ElQTu64kIqe1nhb8b65BJIyOcAlEBDZvj7YU9GPubqAqX66S9Gma2Q+0mvgxpz56he6gWhqfhfkBVY7Q29bA4TLFLatoGdgGsBn5KWYWJ3BYs5HB8a2Ta3mU1DuAev4zbpRM8PQCoLRjsLiQpz8uZ7Ej5eda7bFGwxiSqKq8CNWbW3GmAzVgSlXW2xDmPWIOKbQWAZrLwQUhh9JENM346fO24t8KeEC4EU5ENBWJNXEbOhJYG5HvhTwywStiICzajUl2sYRrtUuOJBockzaRbORrNHNZQ/T++ZA5e1QliuWbzCGGqMfYG7JyZbzu88HSTImiFYwzsYoyA== 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=ZsKvw2io3cjanyb5LZgHOx74C3o4Kp93kw0O7Gfk6xV8dgcaSwTqQnEScyDuXL+aWn0p6A84wRleAQtqd7nofii4+fpAe0u/EFu8fnjjONnFRZXHRA7SAiw7oSwemFzCieQuTM6lTCb/Ush4aI1YvxFyJvF3FOZY+8woWutX+RLKwJ+rxL+Di5S8qZQ5klPaVxkRiY20TwfVYizmGk9BS0aBGmxYVMtIlfzjHMbD/+SpesHH9aoPtYTqgy0X0bu4/YKMyWdjdoSTDkLsb2UI+7n0Cgq6qKdsq3guyi65nV74vHQzCylftee40jT4fhapYYwvufibTw9NtNAxyKTZyQ== 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 PAXPR04MB8334.eurprd04.prod.outlook.com (2603:10a6:102:1cc::8) 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 12:16:12 +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 12:16:12 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@amd.com, stable@dpdk.org Subject: [PATCH v4 04/18] bus/dpaa: fix the fman details status Date: Mon, 30 Sep 2024 17:45:11 +0530 Message-Id: <20240930121525.3452847-5-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240930121525.3452847-1-hemant.agrawal@nxp.com> References: <20240823073240.3708320-1-hemant.agrawal@nxp.com> <20240930121525.3452847-1-hemant.agrawal@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0124.apcprd01.prod.exchangelabs.com (2603:1096:4:40::28) To PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9328:EE_|PAXPR04MB8334:EE_ X-MS-Office365-Filtering-Correlation-Id: 04ad3829-1c2b-45f8-e181-08dce149ac37 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?e7O1dMrj3VwwGxQUSk+XEJkoZlRpAqOvJJmFrO8Gvc+ZA4qmQF1fn+cvrquS?= =?us-ascii?Q?AD9mCd2KKgoCtPpTmjsepYZZ6K4x/8as8gpOuqwUzmGbt+G+vbogb5ZAhHNZ?= =?us-ascii?Q?3QidNypwdXv12vYFyuHaE9Q++Ff3aRzAmh5kazcM+Rqw9t29Jfzmd13gutgI?= =?us-ascii?Q?zwI9NrH/eqWB/qKOJiFvBlq3xC7FKTcR6LvcbFPTurkMWZpUwOhCbOZT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aLYaywu9+H/wkk9XU/wVkh29F/2rLqORowJUFAf?= =?us-ascii?Q?aWo9DRVZmEQfT/rOJ8/wlF8ERJMtCS8if1B1PXJheJA+bJ3fZipPTg2olIIX?= =?us-ascii?Q?gzfEQ2j8Mcf3jtPqX+2cqZ7eQqRrwg6pbD13d2Aa6gn8GXSkYhbgNQHni2aO?= =?us-ascii?Q?UPf+sXBQmiKLGWF1Vcc8fst7cBB9xEj7GcFTNUB0oCP35nVa7kv/syqBnOmn?= =?us-ascii?Q?CPQQGoF/wos51XT2/sbtgNywMBAwpBNDe5RV15UqhPbBrA=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)(366016)(52116014)(376014)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?dJ3O6tgm/0vTYV6K+LYL/OqIaYU7+oMeeQ2H31J8w0kcaC1fKgK6xF+Qn5d8?= =?us-ascii?Q?rflD/v1hl+MhSVElHNNy7jUI/4hAQtvTufZHyQbWyE3NVTsnqAtiII3GLUam?= =?us-ascii?Q?n4uG/2yRyGKSpSsu72u0GI0KqQwjVMlccxBSeHqj2v9BRsMwmf3rQtSGxVzh?= =?us-ascii?Q?+7E8sku23t5TyhBanDyr1FCESspnIded19t8lhs82lWZ02g2TxciUFbx6RML?= =?us-ascii?Q?GG76JTKnn5oxkNSkQJjWUGIL3ycGsoPqgeJ86wn7FtdPWHDJKueNJvB0hzlw?= =?us-ascii?Q?HUzx9djF0K8D9X7Lwbcy2Yk531SVXRL1ufCCfbvbO9w2WmEOeOxB3PCEp+cP?= =?us-ascii?Q?7Tsruv6OXtkV1rTwQtVGafG6dykD+92dzgIp6jIErVJpBm0xB9L+FXNVuXie?= =?us-ascii?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vx/21Jjw5mjoZuFHVcLQr2?= =?us-ascii?Q?9fFjDcwscD9ux26wYCxMk8INnDeF8gXJtoFuhS16giJ70aZW1503wP5PKqvn?= =?us-ascii?Q?CGt7WCO9MQ7gumvu7CfKmbHdsGsUrfmAwpK1sUDqabZZ2QBZLwxmZzGnViYQ?= =?us-ascii?Q?SjQiKQi0t1lJSF08C6Hn6hd/+/QqvfhNAEg0V6vND0+HasonsNsDRC4HQaT1?= =?us-ascii?Q?0tjFgs7VkvK1qL0gzupssaiazR6Hl2Wm/sezbFHm5IHUrXz6xaPsK8YBztNd?= =?us-ascii?Q?dqhWd9L0vPes+RtEGYBdRkrcRqYSscLnVEKwALUbY/8TDCQMwghBd3uu2Zdw?= =?us-ascii?Q?hw=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04ad3829-1c2b-45f8-e181-08dce149ac37 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9328.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 12:16:12.1325 (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: pQVBujjLBzhEFA/POv6EeqhP1J3CiSWrfzKDjE8ci3+Yr8YAYHEDnCPGy+Zz0qrAYGdNYJuTEbDQQ/yi5SdVFQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8334 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 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