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 4E97945843; Fri, 23 Aug 2024 09:33:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA38843254; Fri, 23 Aug 2024 09:33:09 +0200 (CEST) Received: from AS8PR04CU009.outbound.protection.outlook.com (mail-westeuropeazon11011011.outbound.protection.outlook.com [52.101.70.11]) by mails.dpdk.org (Postfix) with ESMTP id D634C43245; Fri, 23 Aug 2024 09:33:05 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=N/mi9LkpQCyqLvVDxvUD+6qIEDeyQ4Nf4GeLztbg1NEreLTcE7i3mUIb3svbpWrEbkXnDLIHNYgh6uoyMbb4xidWAkR9+mJ4W6ZaM7QFX0wAcWmfnNO+SJROzgKNzG5MNverTEkmdz9FV3GgYTGY5JRXkL2bHVedDiHo4fUhA4/WW07czbYjasa1Ea+dC3mAcQnbKtQ3wCNmZJSv690zT6hs5atpAyvRL1WfPymmPGqiXruRSbJIuDDevciPrE4RW8Rq5nZyhJ5lu98APDKR37EdtKqQl7R9V9b74nNtAftAOF4UDxJovssePY6uZYmhJM/FmcodhBFRE1ffwqzUPA== 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=EFK6kHj9kiEGaCamF0hjrHIsbTFi83cJkRbCzV9ni6kxvjvlvomhrYkldAhn8TjkNkZoCNUO2LlD8ftecA1fEbqqdvutOhW8xLfIwFLNM2gumG8kyHHmDOv6v74miuIeRcDJxwMgTt9+F3Z+4B/l3HnuxwlIe+orGZqj/i482vAMQqyIM4YDyePvUPFyKjIcQYB0xY4FwaBtONiQNOKSolOnRMRCOGLI4HL2d8g1XzDQTwl+KkN/cq0sWzBWjLS2dNEFkmNlCTUMYkXmkkwIlPoL0onHuhbdWDMeG/WoR0AZPXptu13p74akjRtFDxnYh9nHS+kuG/USQ4jyF9ZAsw== 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=GZnOe3ClC4trp6XFjO5LZSN6a0MIGO6rKd9bi19FjiQnWWav9ItabV3HjajMtBY+bupPbjq/nLk7h7ENi5XU9RXr9VP67LVdENCy5lZS8J43gysRfZwNfWoLf0lWBegqdDjB5TyDz905eT5honUun4H701apGs7OGceHjXjyaqrsKlRK9jfz8c8PyQbLk2foNLWBbIw5ikjsl677MgGz+T48ExuzSNw93mWlVnACwLad63Ld6Qn+ZbG7b/ARJtp+YBg5sCHsNu6/oa/2VC0VWfh6MilT4EG0T8DVzpTD5Z2ThL1r95AmtyAsNym42e02k5JTlxALDAtuKhhRUEvkyQ== 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 DBBPR04MB7547.eurprd04.prod.outlook.com (2603:10a6:10:208::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.21; Fri, 23 Aug 2024 07:33:05 +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.7875.019; Fri, 23 Aug 2024 07:33:04 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, stable@dpdk.org Subject: [PATCH v2 04/18] bus/dpaa: fix the fman details status Date: Fri, 23 Aug 2024 13:02:26 +0530 Message-Id: <20240823073240.3708320-5-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240823073240.3708320-1-hemant.agrawal@nxp.com> References: <20240801105313.630280-1-hemant.agrawal@nxp.com> <20240823073240.3708320-1-hemant.agrawal@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0028.apcprd02.prod.outlook.com (2603:1096:3:18::16) To PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9328:EE_|DBBPR04MB7547:EE_ X-MS-Office365-Filtering-Correlation-Id: 11e9714d-0cc1-484a-5ced-08dcc345d2c0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|376014|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?4CS7pZw7SYJLBHlx7EvGieoU+EVm9SZCMdpFAndkGYZGHyUy7bz9OdM5DRoN?= =?us-ascii?Q?HfpbzUjA8aillyz1g5OSFxPJWmU305ZusRXl83WuNOEDhzyUcSpkHR3MyHI5?= =?us-ascii?Q?/LCTcdFYVxAjqyXr6bsSpMwlu4YyqJ89uVrOsGR9RS86BiOP84E1wBghO637?= =?us-ascii?Q?NoS14FNpdPb03mxf4fdbBw4GsvM8xj8UzPetQ7AnPFA47AH+lRLTziHVt6Rb?= =?us-ascii?Q?m7VCtcfTl5gQWn8lBYVB9eeC48+i96h2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ascii?Q?zo5YyWB9GSBM+8FoFtJcqxnSKzGWugJBu0wNso9w4p/apmwwIcFoqxbRD6tN?= =?us-ascii?Q?oGi+TNI8HKmuu0lERu9sul3NuqEvtIcyXDWD3drrw+ta1wItZ5XAg0Webkre?= =?us-ascii?Q?BsvJEl4ZvlhbZV/7usKjnxlcwa90JM4M3k6G35axfbYhl/bcBQ5Ti70Kx9xl?= =?us-ascii?Q?shhUlgQRTMMVT0gcAP7HGw21WRCVHdbit+DwZdy6QfFZteZ0gYYQmmCozTh7?= =?us-ascii?Q?Y2Yote3iSy5Fy6L9/mLw4QR87XdXfLBXZlP4aGkcPGh5blXOTA=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)(376014)(1800799024)(52116014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Yk+1jcFd2oSE/d2Vl2uwHextshIDtQhedZQ3+Co8KucyGHhYSHfw/0/o+oOV?= =?us-ascii?Q?+Zj2HojXYhoqySyjsXybD9dOSBXid+Z8g6AKIKfqYjmUHk4MDFwxTNBoHq8h?= =?us-ascii?Q?pKFTWLvzS4G8EwnIT2fYk2/DUE91PPsc4DuGQPiy0D5WL3d0c6//02oN9teq?= =?us-ascii?Q?acASC93WLjMD+WzqOIADqHX5p1XDOGspBGMbmo93p+z6d6sG2Ks2uSE+kfAC?= =?us-ascii?Q?WRkw+j/Dr9pgNDOPf6uHMm7h1NVMqbWRAvAhP5sZYT6XKsqnnjdiShTnE3Un?= =?us-ascii?Q?41bukZZHGR6Ts7rBHXbjxuKonKTmX2cQuscnz8W3b3IQpsRB3y3sonUKTWxi?= =?us-ascii?Q?r6QGttj4vDO3P6HQLvsBKEO6hx9DHq6H4MuYsG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/Ghu4YiylPjAYvzZYwkq0MmoRyJTLUYjdASy456YSnlGF0lZznV0wPl?= =?us-ascii?Q?D6OVI/PF6TX2DNtZSY58vz8cw44f6AXa9e4v4umsqQnYhe9gsov3bszpoikn?= =?us-ascii?Q?lrWR0456O+rxSsj01xmc5L5/uPxA0WfKqsyhdYshyad+KHnpS5DjTMZqoogU?= =?us-ascii?Q?OPm3YTpfEGq2JUQo2KQw2acrtprBiyMyTTn8qCdkc/8aNbZ3Xgki4JilcVvq?= =?us-ascii?Q?aRfuH8p2hWYbqG24x9I0NuoTxyGYllqgItnWHE8HpNsWeOAwrzMGQZHSmJhy?= =?us-ascii?Q?i82ucp9qDNqNEO+Pmk824tsKTVpQWk7bzUsBAvvmfAfDDlWWLa3ayN+uk8r+?= =?us-ascii?Q?Eg=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11e9714d-0cc1-484a-5ced-08dcc345d2c0 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9328.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2024 07:33:03.8831 (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: cl5iSzmNZo76w+zgUbu5iBTc22q+Ff4u90C3gDmmP4OaDsi887oRn7A7kStqLKF6BSI73QgfW7ECja7PPe4j8g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7547 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