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 B6A7045A79; Tue, 1 Oct 2024 13:04:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A8C124067B; Tue, 1 Oct 2024 13:03:52 +0200 (CEST) Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011045.outbound.protection.outlook.com [52.101.65.45]) by mails.dpdk.org (Postfix) with ESMTP id 5F9B64066D; Tue, 1 Oct 2024 13:03:49 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NsDP+eutv1h+rgqnX0thuMLUyULSiNLyZRK2ifMGVeOG5mJx73Kv0ZX2oKvdQeRdWt+eEsItWZNCgmlqF/hig5y1nSaezuWoZnLg97nKmvpUkumFvP1EvFOalWjQV/xeqrhhKWDTy3yLFJjDBuha/bcerg9hvx1q0IoA+oVnlHUKBdfEXXVKJzzhPYdyYMVQCXED4Fme4F5m3WmU5M43GIv2qv3ED2rnHNi8rr3W5WTavd26+KCzwx+/qjLxHuKQBOY2ZqorfHBnJatKrkO5dIRF2xcoq/xyYxmJH+AmKxFE0Ftl0D7YmPnatrklEUbyIOgpKumC9RWtHJY/fqpSwg== 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=gSi0thiDvefhRMBYQlxvW3VGoULObe4vf7NbxRjDMlg9svH9NyxFG5SYtwdsDWSnf8XvWcHiXeJfNp4s+uFqXEarHj/Ro8PUSibhw10JEBtUBB3lt6yX6p4/IklslUqKJkXMdRczMlfOz/j8yf+ZS0uYv4hzoL53nL4LnSfdqxoFrv19WsmXo9wbAGC2aG8sRhtx66FD3NjcUhBT7Nm41wtvbhrpcgTClJLYPP+1YyWwk+EyIr1xxw8L6HSQxlTAmfqntSwOtUul2skLIHEhF/O93g+duCyYX4Gy0F+ypz/BAMJIHgIfXKmNItXLGTwUJ6HDH7WJVpM36pkHJ+EPWg== 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=mRPxzpXuiXorsDKq0b3AcWa1oRsew2xKjD09+qgqs3AEZmTDDMSb29PlFo81146EteGIUWa4mLwrkNbPSURgFVdDJ+Cd3eGWNZ2gdhZfxkswI/+NgMwb5hDDC8r2Q+o6XgKMfxr+tn+sYyxI2opoEIceEgMa17kYNU+jzTs3hA53ciUnR6Cf53ACc6c6L6R5Y1kTBvCUTlyiAdz6qUum3Mb57G+LrP2GbpOZ4D3Ot4zUvIK+2Da5MC2epW799oIaDW0mYxgJbOefKG5KvZOaWIdG1aKdwjyEFwP11Mf9PzMgcviO4rJXZWllSZ9p/P3CovjmyuYzc1RcGjNJIvOdHw== 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 PAXPR04MB8702.eurprd04.prod.outlook.com (2603:10a6:102:21d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.27; Tue, 1 Oct 2024 11:03:48 +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; Tue, 1 Oct 2024 11:03:48 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@amd.com, stable@dpdk.org Subject: [PATCH v5 04/18] bus/dpaa: fix the fman details status Date: Tue, 1 Oct 2024 16:33:11 +0530 Message-Id: <20241001110325.4173762-5-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241001110325.4173762-1-hemant.agrawal@nxp.com> References: <20240930121525.3452847-1-hemant.agrawal@nxp.com> <20241001110325.4173762-1-hemant.agrawal@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0086.apcprd02.prod.outlook.com (2603:1096:4:90::26) To PAXPR04MB9328.eurprd04.prod.outlook.com (2603:10a6:102:2b6::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9328:EE_|PAXPR04MB8702:EE_ X-MS-Office365-Filtering-Correlation-Id: d539f92e-8fa4-4b89-6238-08dce208b94b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|376014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Ht6BxphNx7+58ehjbMnBfTQhvz3a+pmshq+gG8xF9lit63cN0qo8mwoPPc/T?= =?us-ascii?Q?iGXNGoStkxcAPO4IU1stpCRPd3HV8bAGV2ZaJN8yTyA69qjcoHSPiEs9UH/I?= =?us-ascii?Q?js2IukHczoJofxvCNc/SHyu6cy19makcn7vF4uICiPn2861JD2epvfB/cRCP?= =?us-ascii?Q?2m82HINKLHKHyXSL6V2Vhosoug1OMkqG54/TOd6ZZ05OP8XC9z4QE02WRxD+?= =?us-ascii?Q?5Kj7TjLOFqcnl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wNsMxyvzgSAv?= =?us-ascii?Q?P2/Usr2zzxY8HqmPhghL943r7GbCiLe4VdSLiiT6LJ2F/0x4ptalcWpwyls3?= =?us-ascii?Q?DDWUp0imWSe9gSv1yfTtcPY15BoL1yQfINb/I9xpi2fSv+DavabkTl3XlIwv?= =?us-ascii?Q?VDKZp/rtjxIpwIi6zHwBZsE1T2SQHumO4MuM48Ko+qE+hW7vAoZg5JFnJ/ey?= =?us-ascii?Q?apUA9Txo8RSa68h+EZ47fg0XpptvEmEM+V5gfsQEJxrtFg=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)(52116014)(1800799024)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?fcvRGh7m+R3tqa7aUuc0tFwBqq08mITN4JQWMj+pJQaolKTh5odOlHNhi1l0?= =?us-ascii?Q?QDJWmI3gWaRkbUsLGRMKB7LGjQOLUAxJ59QUsrdmoUw/muXKgkLcY1segCXf?= =?us-ascii?Q?x4RiaBLh1VAeC/wRuwjbeA+NdItkgm/oF7DwdHSxYf88oWu5wH8dtRretwmJ?= =?us-ascii?Q?qAzh5AAXgIdAm5iuRsAy8jFxO52FnhWyo2WkdwCb5n3Ro2cnrYoNsCu+sS2A?= =?us-ascii?Q?bE9Iw+VQz3i8/89wcjFtjpyKxJClknJzM+EfIGHI8KKB4BDgfTLK1/H1sqcb?= =?us-ascii?Q?gEhekaZuNPS5GoF0hAkTE0f6p37bbFhBArefB/t02L5L4QRMNkosGfvRW+fs?= =?us-ascii?Q?aR036hXm0Nh1aeARWwGw87SDfYj2syJPi/tlWHTCl383wnHs9v4oy43ogsBV?= =?us-ascii?Q?i5d7AIyUDDqNra7YuK3Wb9kt6uuR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VS1?= =?us-ascii?Q?b0u2HOPc9sEwxEAMq2tZPni0HTBsn73nzVBhpxMcDVwMzjVY3cAlruGXcDir?= =?us-ascii?Q?/KzOe2plZUvWwIMzn/6zWIHpGZ1Bk1CQi48L4XVMfffv3tXoNmRYRvICn799?= =?us-ascii?Q?rF8s9n5n9j96asD6oWvhgYxIKOs9YEr4PSgex7v98h4thmza8hUwfUd8UB+3?= =?us-ascii?Q?/cVUTJrepyMgUIp1RC0zP3d2zVFnGfQPIN09/zVc0GEWMn6nZKm9IrVHfcbg?= =?us-ascii?Q?uhQFIq1o+rIGuwZbBo4VbqWFWE3MPDFKvMJQ+lvOfDhKYE/nkY81CKrjt3Wd?= =?us-ascii?Q?6w=3D=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d539f92e-8fa4-4b89-6238-08dce208b94b X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9328.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2024 11:03:47.9434 (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: qGK9wpSw/5Ar55qhaCOmeWSklhqn0zfzxJppHQPn/0AE8W2/pvWyZnBH4hd+OWtGk3HD/Ew/cAle+XfYI1hHKQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8702 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