From patchwork Tue Sep 24 06:12:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13810182 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 348CDCF9C71 for ; Tue, 24 Sep 2024 06:28:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=rhVSKKa1Vo/eA3S7NqorZDAYj+FnEVs2ClMkIKFCfMI=; b=xVnmXrUSkGtnO0YoI05PVL8XRg +5EQ47B+IaBPxLqSL3J+7fC2elJNieRy3yLZ8djliUlmj8y8ZkuYWEF99rF7RsNLpNBxBy5a2u22u HmhnumLDVP/X8jXsp1ecGdpndtBN41OGKEs6IJz7BJYo99x+g6CbliBaIRcKYw6/oqT3SYNav6Srf IVyDSFkCjEnOEiAeh/ZDPVczoQuybD++HU0wmf1iKgkjHYppoHdeh+KzAzhDmgyuTIYT1g9i/cM9L 705JAEPCYHj0xluwT33KmyTqv1axN2IiJtfsUXZmfOjsVuy+UVQVbQ9hzHMdDrEmM9mvBEiU3cENv ai9A4k4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1ssz1f-00000001FZu-0Bot; Tue, 24 Sep 2024 06:27:55 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1ssymI-00000001COH-0KI5 for linux-arm-kernel@lists.infradead.org; Tue, 24 Sep 2024 06:12:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vkLMLIG6ALzfZbLOxW+DLjyk0DV6RHZIigtmJLVuG9Z+d174/Z3/Bup40APjCbH4gyP7fwSTByjh49xcKtbLG005L1HxfJhdTj05h+cZ/eKnao199yuAlENz4HjagRpwtmTIw4pOiOQqa3fw0mQ9tWUbVX5hQ//wbNTcsReY0mFJ9PwVb3r1mZEeNca4SoITN6VIMKwU3AiWkEWUm+/fVNSPewLly1U6+kHoIC93WRDk5LtTu/kUDojX7/HIAT6ozHbJ15UMxz/qw6/E+Jf/AHxX+wMvABX4VXlUmJSRY7R/CxXCERN9lYY1jxLt79rnNLQi3OdGu7brGxFYDQRjiw== 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=rhVSKKa1Vo/eA3S7NqorZDAYj+FnEVs2ClMkIKFCfMI=; b=xEOOzhuMjzDmnVGi9Xj7xtMaNVYxHPwNXmQe6KxB5hX0/Itpvacvnpnhzjp3D8A2BuBuom+eVrdZFEbLM/3QvsCrbVMozFjjE63j7LWpRwFvfRwEQBr4nrXDLQM88K+ffSF09YpwJ5Vrp4vSbxloFCgnvY1+fQV8u85Linzrk6Xc9GVpGBvAUjtAqGfhm81F9eaLp6YCZ54lZcHK2QKHpSyOXvXEsRX5W4lnT2VB7gdViwUjMN9I7+ckr5eEktkOZmap6a/Rx/hCBlOyZANaJutgtLftdF0Ipm96PtR4BgvqCxotrTcAEtpjJ27Opk2EmhvG6iitWjPin9QxkUw65A== 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=rhVSKKa1Vo/eA3S7NqorZDAYj+FnEVs2ClMkIKFCfMI=; b=U9CQO0mJa5WE6NmBAIOTjIV2i+LOEizMEuQVkOuXGMNLhJHeR4OpCzrQYwe7XG0oYbHrtS+zOt+gIpu1nJEsXwqaHlsWNHo2/FhwYDrsC4cph6D4jzVnGfAGkIlA4fiXc9p+TxOMThfjRZAo5qPbSzEVa43i0NKnJOGxjCwkOmVkpKuwmySDoQOWqT85n6HLzSfYTvgv6hMbx65VdOuj2/teWCos3uLGU4Ly+kNpxLaudKGw4iwz3FSUuONusWWFV+fU0vdR5vDPEIMhrornn9R/p6DUuOKdkWMBknd8cSBVi3u5D7VWoZQy6IcqntZytlHR5Ei2WrRjgb6TUFTJpw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by DU4PR04MB10981.eurprd04.prod.outlook.com (2603:10a6:10:58d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.27; Tue, 24 Sep 2024 06:11:54 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%4]) with mapi id 15.20.7918.024; Tue, 24 Sep 2024 06:11:54 +0000 From: Xu Yang To: Frank.li@nxp.com, will@kernel.org, mark.rutland@arm.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, john.g.garry@oracle.com, james.clark@linaro.org, mike.leach@linaro.org, leo.yan@linux.dev, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, kan.liang@linux.intel.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-perf-users@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: perf: fsl-imx-ddr: Add i.MX91 compatible Date: Tue, 24 Sep 2024 14:12:49 +0800 Message-Id: <20240924061251.3387850-1-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2PR01CA0054.apcprd01.prod.exchangelabs.com (2603:1096:4:193::22) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|DU4PR04MB10981:EE_ X-MS-Office365-Filtering-Correlation-Id: 1853f63e-08eb-481c-cf04-08dcdc5fc98f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: NoZ8DS6xrUHp1UqzV26oETilyr1fa1wPfGy+mX1foDu4fOv6AaLvDLXp+gHk1IzVSL/aas0puCXEjNAmba9Ub0qxx22J6rI5XWEBugxwmbHnDZc6+myvV9lbiDhfyo8tEcrsBi1ZSnL9MT07ji54oJ9zzuNmRANAgw4e4Y1+z/+9pqpkMYvea1Nko1PIbr6ezWrAb0I4yiEhyurqI+3GjzzVfwe4FMOtSG138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wMVI2bynemXiPIT5papGhqwA9/Jge2mOYynVVKfFQMrTq2sA0+0JMhuwrAZ03SSvRlkcNNMHDMiAvnVe2x4o2k+kofAXz+ZFu2f3LNfdOJleJX9wFgNlAEoLRmHuXlh9wwaYPpgE6LqsQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(7416014)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YCowGSMExYzIMzLS//lFtmoBCs4Zz5tjVz5x3bICG/SBA1bKG6F8RDvuW5IrB9utXcfv8ldmtUhRCaCRD2RsybTpx52GAnCY1VAnuzIa+3F69PlyRXXjSDNtvdbFXjriNeNLUbEOWvlXgxTIFqjL6cRs4Lv+77xyq2dB4G9clCRCaT84lbprNL4Qk8P4ZLkE3FQL4cfPuhj0SXfIQ79zAsPl9F7s4MWS4f34PZ4S4WT5Jw2Z2ff6evY4OFmP8TzrkAn8HYGUSFeOBUmRKaljd0A2MJuU21xnbphUyIMEKWMVnGUeF/dD673ris2btTxdtD9rkoH3Fuhf6hvOJ3bEKaBOkg8XVhWYMMgNDq45IKq7r4M3Cf8w9FWlWl6O3GAAx5ukWuBGynTAjCcDXtbvKLc8VFtZBoK8I0gelcealDwACGPbBJCLGwAxRCiatgAd5diJ6ClCgMTi0QYV+BSJ6sAXBVFR7NZcW/frFmVMeTawon8qAPaexE0YNftokLSkdWBTgttXncX7P0foFRetn2l/MrUWzhJ8KlZTMVuqcCpDp0wocUr1cNRKWG/CzhGbMfdu2WgTACx1ce3OWwWuxX0XjiMd2g9UwvngRrXma9aPboF8bWwx4CSjPOtYwCDFyPDJUMWfFwKxCzXEnsgelXCU/dXg84W37UlbdBAH7S9M8wF4yrnblYztvIMUzJQCeA5SMcSlVcRUTfDKNk4h/i04abkWOguEXU3zv0GTMnsXpqtPBTUsPtCFb9oUEyBZrn71vfNQGjcIsQcdwTQIkJugAwjNkb0O5kPXttT8382f73PUxSNxrOmgLx26kfH3ksLfSTtdp+QaF1g5c0HvKbApU0ruv4wIYcG4Y8wrjpD6qsQgSD7FZt+8WCeqJvIQzUZWK3x9LTxzKbx6xv+Eb4/wHmSk5za2VDxCjOgJ6BABrdbQKCkatJcpeJvmYuJ4C40+qRSGiRO4mBwq7IIjYxIv2AKUx2nL7bUk0aZj6F5MJNMWMYKSl7p7zopV/cFZ4MiHfxi1nG6iWVPNjo+7IC4QAbqbuCIMaD2bSdFDw7w2sJZ1co7930SgjlS05gZHv6dGIvFfkgxW9zOVnk0FoFUrRiltVJ1yvkZQP3aCCaNa8jt/tBhfom7fSOunf3ilPSaJTKTeQ4qdAh9YGh1wux33AmWIwzjXwnhyMlLh6/ENWXMnVwe1x43DxIO9jYQICjZONL8ohzDvkXkHwFoP/xYsZP0ZeTy08bvvDbLsCpg2+RG0D7i1RnENlT11bu6pgYfo9v6TcLBUn0idJHpXn71xlXAVpJ0a97xkI5WxdRLTyg+AoNiRq5v7t5XGGCAM4JMTDBoPRE24y3x28/FJPWzGlXgiPMZJ0vmn2D8fx1x1E2nIpXrfQh7V0aTsQcYrYAZgfhzepVDBi3bSDCU1Hw6jAt6pFDJIZiVQPCl4f1CZtXmjpMKguyhRtBEU3/JDct9CZqNDdfbXT7lh5NbZvVUlqU1BzmR1sS16O6XhMh1vCVypMW/jue+38Z2U8uc/IfX5OixudmarO9c3wQKdalsG+OQtXwAy/NjDRVQkEepaqpq+evKtG29YaxH0RCUt X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1853f63e-08eb-481c-cf04-08dcdc5fc98f X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2024 06:11:54.7299 (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: YWVl1Fj1nS/MtNlXn1F1K5+InA5zA77BmFbDpm+0g3IqF+f/He9BQn7Qw7bj8sbOL/WsZfZtURQ0Cc+g/DAXrg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10981 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240923_231202_146255_D68E2CC9 X-CRM114-Status: GOOD ( 11.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org i.MX91 has a DDR Performance Monitor Unit which is compatible with i.MX93. This will add a compatible for i.MX91. Signed-off-by: Xu Yang Acked-by: Conor Dooley Reviewed-by: Frank Li --- Documentation/devicetree/bindings/perf/fsl-imx-ddr.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/perf/fsl-imx-ddr.yaml b/Documentation/devicetree/bindings/perf/fsl-imx-ddr.yaml index 37e8b98f2cdc..8597ea625edb 100644 --- a/Documentation/devicetree/bindings/perf/fsl-imx-ddr.yaml +++ b/Documentation/devicetree/bindings/perf/fsl-imx-ddr.yaml @@ -31,7 +31,9 @@ properties: - const: fsl,imx8dxl-ddr-pmu - const: fsl,imx8-ddr-pmu - items: - - const: fsl,imx95-ddr-pmu + - enum: + - fsl,imx91-ddr-pmu + - fsl,imx95-ddr-pmu - const: fsl,imx93-ddr-pmu reg: From patchwork Tue Sep 24 06:12:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13810183 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9A9ECF9C6B for ; Tue, 24 Sep 2024 06:29:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=5vLqfIYHHd20u7aM6EbrZbC9Jp9UzvfGO52jj+zPjEw=; b=BWTeOqKcbKQqZkM7LcqAwPFq93 q0eZyOjlOq/9mZLLAk232hXFcWgEih7MTnVjFSTSvg+d7mH4ApprAcxHJbyq1bwVPtC2c4CZHdPTt pXiy6vHWL+/ZHhP4lrRxi8C/p9PHybATnhhCfenApyetlRLaaPtRK3qC1oInFdifWwPBkxAjCXlLC cP/pxa6prvm5ow//ky/UqlP2Q+cylIGpQ37Gm6eFkQffGTqHJHegLOqMFf75NQceq1jegKFT7rVZj HbKRaCCq0pTiEFvsVrKHlO2WJA7tz149fj/ThfWyWbVtzNXxCOqh8XZYitl4BkfRT/ZpO1s+s/VIM Hh8Vb4aQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1ssz2k-00000001Fl7-3SS1; Tue, 24 Sep 2024 06:29:02 +0000 Received: from mail-northeuropeazlp170120003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1ssymQ-00000001CRg-0Gyq for linux-arm-kernel@lists.infradead.org; Tue, 24 Sep 2024 06:12:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=euOlXPLcmcCRp9rjx5xKWxjSpuRUpUhTcOT2hJNwq/lY1SkMEA3+Belun05ImFAAHQx7Edr7CD5NFXP3RybqaQBJuTUTEy+IfBvDiSh+T7xEsYAuQQXHKMjHyjbuuXcYD0A27nV56/qwgNGXbtdMS6I69AQBWB8bNuKY980Yjq2WeCEYDf8TOGnSAEGF/FkQtsgI9DlLcye7OmuIxcR/mWelIlWrv244sIxLeBhEjqrA2KynJgxpYnuoFnXOqxhBwNuz3CPdbc/4kdXUdkOPfNb2JjACFowi2ImvvNB/6KtzsRVhjzW3axaqKAm5kV+I/229rp9nwTFda3Ey2gTIBw== 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=5vLqfIYHHd20u7aM6EbrZbC9Jp9UzvfGO52jj+zPjEw=; b=mCi73zT0eUVhtN5YR/zCcZ5J5EA01zZORy57wuvu3590OD3BhW0fdZ6fp7LH1iLaK+8w999pOBDSje6LdtmyRx75YvTBZrZ3CcT1CjuL6EgM8lqCz1zQRp0UgoIbXRx0on3h/NjHYg+ivPYQd7vc0zBSTXV+IUQ4VRBoqcTvHsErouPpqwu94vuxWxOf+2weyEf2lHtdW1fcc1n4bkG55o5HDkhlBpeVDkLyDcWgq08wkJvtsYEYdmmhY6dS9RHjMhXecdt4aYqXncG0TLluC3KEeuu2vQx4OjaiLxGrmP3Ns5k9Szr92nlu69i0FvPb9A83+H8UtKNeDmGhSPKXEg== 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=5vLqfIYHHd20u7aM6EbrZbC9Jp9UzvfGO52jj+zPjEw=; b=KJwO8dMr0d5c4bRJXi1A3+hfHbu/BWtFi0gU1cWYGvGrjaxd4Dq4MP3DY0aNqNbBQI1e6rElgaRvn2nJxo5816nKE2ZG6HTXMugzqk38tazy8iAMrqW+w3eR6MkYDCneFwlYWOOSga1mBP/xirSP+WrxF8CrHAmGS6Z8Qwm8RFxhdZWs5RY7nvQ3GrA+hU9K1MtEnsDUVY+yDEr2MXjT/EF35ZYCKhtfq88Vf3sSheAgGyaNJJ/1jCTXrvKRBwXqPAkZWydXkxeDAOVj7qh+geH6515SZ8QBHvT6DefOj53FNLJF/jptXMeU0/f4Ww7n/Ar5uwFfosfvEWqBBhS+oQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by DU4PR04MB10981.eurprd04.prod.outlook.com (2603:10a6:10:58d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.27; Tue, 24 Sep 2024 06:12:02 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%4]) with mapi id 15.20.7918.024; Tue, 24 Sep 2024 06:12:02 +0000 From: Xu Yang To: Frank.li@nxp.com, will@kernel.org, mark.rutland@arm.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, john.g.garry@oracle.com, james.clark@linaro.org, mike.leach@linaro.org, leo.yan@linux.dev, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, kan.liang@linux.intel.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-perf-users@vger.kernel.org Subject: [PATCH 2/3] perf: imx_perf: add support for i.MX91 platform Date: Tue, 24 Sep 2024 14:12:50 +0800 Message-Id: <20240924061251.3387850-2-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240924061251.3387850-1-xu.yang_2@nxp.com> References: <20240924061251.3387850-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2PR01CA0054.apcprd01.prod.exchangelabs.com (2603:1096:4:193::22) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|DU4PR04MB10981:EE_ X-MS-Office365-Filtering-Correlation-Id: d66df2f0-ca06-4900-67d6-08dcdc5fce8c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: ih7WOxV4yrLOTte2OCU9Izy4VIUTFju0rZ9MKpHAvV1V0kng5vVQkDSRQwj36DV6nQ395fgPf43TMW5+u7+WGrkncSUq/bw3LPO8q7O91rna5z0AGI/x23Y/gYNjv1QpD1NLhes0nkoZMr//ix/obLGSXBybnVUOy7AebvC3y2m/lM49S5iDB4qc7m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6FNs+t7FM496e75i2ssQ5R8MZCKqf6KMV8QXfVVsUvC2q+YPYBmxP1dqg8aVyfp29jmysSRfu+Yz9NfZEPL6IT5V7A9cfuTNiwiOL7QaPVuYzVscKOWHmsECH03iE/BOhIn5CC165FKyz4QRiJb/7YNRwRGfjyB/tr55VIWD/c32KLwlOANv3d5ybwlA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(7416014)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: agvPW7wCi/xPMk2Z9C0A/mk+UpMkEeI4o/VLo/km2VAAyNNPBPUEPTA81+r0WaB4hSQo3SUK7nLdeyrCPLVq/QgaYJlL+gYmanIaP7nRmmfOYHFSwuy669gjZK9Ed/q620ZBfWGXmX1xCl5fRdEFdwxHNc4mTMvcqYacROnVOPrDcaD/H+O+7BJ8pyrxma5leKaUqe+s0pVxuTGis3JdNZLI2b3ufgoG0/OdQh/E4cYrlaz9iaLul6Nugdjp7nnS1tYBU2BmZJaoUnGotz4QN5X4/FZdiYXwTFi/8OA6CDML9ozxueWQx2/gcxGCx48fPp7oE1udbStNAf3CsEcxrz94OkBahF7dRLboP/f9dkG/yacMgf+e5UBaUQ4joky7FoAazVGXLDUSpHv4IEHiaADNlm9YsJtRfDxzc+CWKXBz134yfxgYfAIUOFJVfDj3gQ1y7lGLoLLNrwNinFvR1GCIlBdTvEolJUX447+ghutS7U37N1qt5ZFpgQ+bikK6hbXw3bTAIMwNRmHnUGbUqhS7BKqzu5dYTOfu3EJBuzhpfOxItlvFNMF1aNItt9HFJTnufZ7IdlfN/KmPxD8V1lZr6KLdJuhV3yRL44JUHmHHvvdqhblQI8Y6wN5H2ua1yVhiCpmfESNYTUfjn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prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2024 06:12:02.8804 (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: Awv5HErs3tDk6ahRUfsNIxAeIDeLV4l0BMDrEUUqHKIVFqxBu1I99EDXqSwUtEHjWYnRN1ptaxZtf/9fF1bH8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10981 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240923_231210_150150_03B67B59 X-CRM114-Status: GOOD ( 11.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This will add compatible and identifier for i.MX91 platform. Signed-off-by: Xu Yang Reviewed-by: Frank Li --- drivers/perf/fsl_imx9_ddr_perf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/perf/fsl_imx9_ddr_perf.c b/drivers/perf/fsl_imx9_ddr_perf.c index 69f920b1caf2..fe1a51f64751 100644 --- a/drivers/perf/fsl_imx9_ddr_perf.c +++ b/drivers/perf/fsl_imx9_ddr_perf.c @@ -81,6 +81,10 @@ struct ddr_pmu { int id; }; +static const struct imx_ddr_devtype_data imx91_devtype_data = { + .identifier = "imx91", +}; + static const struct imx_ddr_devtype_data imx93_devtype_data = { .identifier = "imx93", }; @@ -100,6 +104,7 @@ static inline bool is_imx95(struct ddr_pmu *pmu) } static const struct of_device_id imx_ddr_pmu_dt_ids[] = { + { .compatible = "fsl,imx91-ddr-pmu", .data = &imx91_devtype_data }, { .compatible = "fsl,imx93-ddr-pmu", .data = &imx93_devtype_data }, { .compatible = "fsl,imx95-ddr-pmu", .data = &imx95_devtype_data }, { /* sentinel */ } From patchwork Tue Sep 24 06:12:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xu Yang X-Patchwork-Id: 13810207 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DF7A6CF9C6B for ; Tue, 24 Sep 2024 06:30:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EK3VZ8AZA9nqGBifCQRVaIR3kLDnMTWxZfr7aS3MY9I=; b=0MMBDwmDotSWdCp1L72KQWGOiL qX216oJTqwW0t8V5nOiufXG4n8kLuetBDbrBqRiz17fBLNta8C43A8+n+aaTXbZFTu9NB6+zHbMbg zWFU8qdrqg2yvy699zZXWi9Mkb6njnq02DGHRbDkekuX5kphONlfxvJlf+/+4qucBoCngU5YT/uzR KWaABI+cIFEKawOpTomLkCdZfN/gx1ZyAvGIG7e2beGT0WuSlICYg16lkJdneJ589Q4GI/CQYy9yn VQaBwmEC71qZpSlyRTAJNJHlb9H/UMz5/kBQn/MfENfwXdA1KhYIHy2I2DwCG64SN9cGxHVbNuuB2 sikskRsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1ssz3q-00000001Fqh-06su; Tue, 24 Sep 2024 06:30:10 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1ssymX-00000001CUr-3bb6 for linux-arm-kernel@lists.infradead.org; Tue, 24 Sep 2024 06:12:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cB9Ck1dvUPKvm5Cv5iTSlxR+qdhbmfVcdo4gucnZGSSn9TMRSEcVtLD+579wGrJCmP2mYNcHsgI97BCg61pUMADp/VH3WJv6wBjqwPBlciLT6PpGi3bL+y7dZ1z1BsR0Zl4wAN1ogskvcFlF0V8GcK4e+erdjUcT0y151/yzgBfhPhYF6Rx8DVUa6f3D6VwmMlbVI3ZvXxkXe/qW1uKHmUHOHuiU7cdbS4hJEhkJksW1OdfWYwVY1yOWvhopIuz4+D9J3YeVx7wiAM+QuMgGHkgo/lh0FHMNy9yLIuWYKEmvJPiD+ITuDuVBg9jEQd7Yj7hgoXaMMGhvGrLd2h/MOA== 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=EK3VZ8AZA9nqGBifCQRVaIR3kLDnMTWxZfr7aS3MY9I=; b=FBnY/kxqSoPjgmMXsw5FINtCFYu4k86PRZ6sINYeJPIQKPK0hG9ff7EobA99x8S06341+6FMIwQSH3F8BxO/fBvBalu+jYqRT9p1T1a+NRWZdn8GURESk43S6TVz1//y1h0ZGeE0wPg4oGGzcPltrZB67lbHse9kfz2eXuKsM7J1AixGJw9C/KlKFHkZxjVZjUWMXjF1Wkn5ePkfFNfmThwoxKWBC2LAwaOAwNv+I5EkkAiBlsJ9VJgiP8+h/yXWmyl7T4K6gpUYDY1jjSBXW3SQATP3eCcQR4PIW32JFGb2bEo9NNuATev9XBpF78lixvdHruOC3p4amzY54+ci9A== 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=EK3VZ8AZA9nqGBifCQRVaIR3kLDnMTWxZfr7aS3MY9I=; b=PTTJvnphKJxvofZk5ezq/a+xTidD8zRlgTfNWF0WbfOu76JP+6LTwkNApMICEWggSVcyn9INbW00gd/eVvZ9+42RIwXRG9vJZzC7epzWAbb3XxGTGB+ioeYLYNJqE0fyDMzBcP7u/jE16srwohQcTkZczEm4iZ+DYgD9ZwZ5WZ5Hvnu+xC8HEvyDno6Ezb09JRcAEgi2gm22spPSiCBAQcSAZEZucmze1AFI1Xn6pCKKoD3T3Jh2WjumGQsNyKsQ0iiUyjjseH7jSJhvkP0TD0jq+vpDm5176zNv5BxoYlTjL5KGgLblxKcuwQ5jUdL0O5j6XTkEJ08wKO2nGc9n7w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) by DU4PR04MB10981.eurprd04.prod.outlook.com (2603:10a6:10:58d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.27; Tue, 24 Sep 2024 06:12:11 +0000 Received: from DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7]) by DU2PR04MB8822.eurprd04.prod.outlook.com ([fe80::4e24:c2c7:bd58:c5c7%4]) with mapi id 15.20.7918.024; Tue, 24 Sep 2024 06:12:11 +0000 From: Xu Yang To: Frank.li@nxp.com, will@kernel.org, mark.rutland@arm.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, john.g.garry@oracle.com, james.clark@linaro.org, mike.leach@linaro.org, leo.yan@linux.dev, peterz@infradead.org, mingo@redhat.com, acme@kernel.org, namhyung@kernel.org, alexander.shishkin@linux.intel.com, jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com, kan.liang@linux.intel.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-perf-users@vger.kernel.org Subject: [PATCH 3/3] perf vendor events arm64: Add i.MX91 DDR Performance Monitor metrics Date: Tue, 24 Sep 2024 14:12:51 +0800 Message-Id: <20240924061251.3387850-3-xu.yang_2@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240924061251.3387850-1-xu.yang_2@nxp.com> References: <20240924061251.3387850-1-xu.yang_2@nxp.com> X-ClientProxiedBy: SI2PR01CA0054.apcprd01.prod.exchangelabs.com (2603:1096:4:193::22) To DU2PR04MB8822.eurprd04.prod.outlook.com (2603:10a6:10:2e1::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR04MB8822:EE_|DU4PR04MB10981:EE_ X-MS-Office365-Filtering-Correlation-Id: 4dc15725-983a-4fa7-a439-08dcdc5fd34a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|376014|7416014|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: qhK4RcscOSXXGUrTFmfnYQpHftl0RCDQWcnonbtCkuS0y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g5YBTD1DN/P7G+cen9v6/X2tY7h9ftwJqRXnzzerVsDMJ51+rUkz/Dm268Gi91rsGKHJ7IjiWunaQrArDyI03DxaAR90PkjPQinN2z1t0nptgLsWbl7Z45iD36sfsJ/wNb0gj0hg0WWBUqIrG5+CzZf+KB+llUy3bATpToQ3pQLzlFXanxWWSbVyNDwJzVZvY11EVe/fOG5eeubtlR7FQhayBdntVgfed+rlk+FXjZRJN9B7FjxFOExT5P4kVQKc4ueh1S0ebf5QV5WWNDtwXJBp3Ab9cr6aXPMbAxk/+NPV2UFYLOCVKpOHDgglWKpzpZoZioW8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8822.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(7416014)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: icIC4NK34/mmS2HlnvAi+VSJX7aYRSJdQn4pgwsmZT0z5zXXRk1Bpi1VeWtYLHb5TGyREGmHhXwwLMZGOHzb7VMH5ulmytF99/4uMMDzOYcDUou8x3lgPXWh8ih31G/VB5GXiEsyCTF/MBiPqNqxWhi/FPK7vZ6mzS6gWoqX4N7pR9WL3vc1ZpRDTl4Q5Cvjl4Mn34SmYUCYYA8yt8U3+xwv1SAmrHm0YlpFpQuiBs0G2p+AutGrcuUlXLcp5zkJthKI2bvWc5GHf6Y+j8hiVaxq+UU1ZPxjAo+SFAafw+Pm+nw71fBFhvPqanIBKLeGWj7tK+Af6Cwpn1WUcduj0DObuR+enAwKCqLyLDZQE62t/RWF3GE6xPH+Mv1Rg49WQ/LKxtXGiB/evnlZXA08bN+G8wp5ppf1Bm9AlvRhU6Df67SWpdkNUwjG7tQl0nRbcu0Kqe4mqrRBDgPBqY/dFyAu+16ZGgsQQl2WOQXKmlyzk6Nj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BYsJAhy5hv0UX5vdT X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4dc15725-983a-4fa7-a439-08dcdc5fd34a X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8822.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Sep 2024 06:12:11.0482 (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: q7LCvWtDtRt66VOYHpYxhY2WKV2glpO3leSTw+HCNRTfxEjOWehVbL3I/f02B9RzOg6z4xJlBoZ/acL/8i7iAg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10981 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240923_231217_975832_5FD1640A X-CRM114-Status: GOOD ( 12.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add JSON metrics for i.MX91 DDR Performance Monitor. Signed-off-by: Xu Yang Acked-by: Namhyung Kim --- .../arch/arm64/freescale/imx91/sys/ddrc.json | 9 +++++++ .../arm64/freescale/imx91/sys/metrics.json | 26 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/metrics.json diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/ddrc.json b/tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/ddrc.json new file mode 100644 index 000000000000..74ac12660a29 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/ddrc.json @@ -0,0 +1,9 @@ +[ + { + "BriefDescription": "ddr cycles event", + "EventCode": "0x00", + "EventName": "imx91_ddr.cycles", + "Unit": "imx9_ddr", + "Compat": "imx91" + } +] diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/metrics.json b/tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/metrics.json new file mode 100644 index 000000000000..f0c5911eb2d0 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx91/sys/metrics.json @@ -0,0 +1,26 @@ +[ + { + "BriefDescription": "bandwidth usage for lpddr4 evk board", + "MetricName": "imx91_bandwidth_usage.lpddr4", + "MetricExpr": "(((( imx9_ddr0@ddrc_pm_0@ ) * 2 * 8 ) + (( imx9_ddr0@ddrc_pm_3@ + imx9_ddr0@ddrc_pm_5@ + imx9_ddr0@ddrc_pm_7@ + imx9_ddr0@ddrc_pm_9@ - imx9_ddr0@ddrc_pm_2@ - imx9_ddr0@ddrc_pm_4@ - imx9_ddr0@ddrc_pm_6@ - imx9_ddr0@ddrc_pm_8@ ) * 32 )) / duration_time) / (2400 * 1000000 * 2)", + "ScaleUnit": "1e2%", + "Unit": "imx9_ddr", + "Compat": "imx91" + }, + { + "BriefDescription": "bytes all masters read from ddr", + "MetricName": "imx91_ddr_read.all", + "MetricExpr": "( imx9_ddr0@ddrc_pm_0@ ) * 2 * 8", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx9_ddr", + "Compat": "imx91" + }, + { + "BriefDescription": "bytes all masters write to ddr", + "MetricName": "imx91_ddr_write.all", + "MetricExpr": "( imx9_ddr0@ddrc_pm_3@ + imx9_ddr0@ddrc_pm_5@ + imx9_ddr0@ddrc_pm_7@ + imx9_ddr0@ddrc_pm_9@ - imx9_ddr0@ddrc_pm_2@ - imx9_ddr0@ddrc_pm_4@ - imx9_ddr0@ddrc_pm_6@ - imx9_ddr0@ddrc_pm_8@ ) * 32", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx9_ddr", + "Compat": "imx91" + } +]