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: 13810136 Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011056.outbound.protection.outlook.com [52.101.65.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF3D985283 for ; Tue, 24 Sep 2024 06:12:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.56 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727158323; cv=fail; b=n917xiKjTCCXdHM1VwZ+rurUHvK2Ywl56Bp3y6XGVZUHR9cJ4tBqXKIqC3P+0kVM90JXNdCY8Sa0wwW9SxyCdF+6r8Cl7tEB8gxjiatG/uUN9V4lZLgofraJQvjD/q5LPplx+4Ar+QqU3TcSAQm6a6ga4YsPTZYPuueKXh/Mvcs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727158323; c=relaxed/simple; bh=U88X6ldV+kirJoGOoxUe7sj+3J3eMBmRTilUdDdaMbk=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=lE9bPgMKARpxCP0STGNTiIeXWqcZs0O9ZmOXPfzvOLHqKoc3HHEciB5wrGBfgCTFCQMII+zW9/WKhu72tRY0JjtuVeEB+SeJ6LafTih2N+ZrHI30kSIM/1FoAZ6RmwbRr4l+aXa/0azPEzenHVEik28jujnMLqMrfn8tblngk+s= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=U9CQO0mJ; arc=fail smtp.client-ip=52.101.65.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="U9CQO0mJ" 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) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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+3GjzzVfwe4FMOtSG138I4bHax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ynemXiPIT5papGhqwA9/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 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: 13810137 Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011037.outbound.protection.outlook.com [52.101.65.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CA026A33F for ; Tue, 24 Sep 2024 06:12:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.37 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727158337; cv=fail; b=M3nNg9Oq9HV4IGUyY1k8SLbC1WQp1y/FK7z9C/YvR6U2NcroLFbIFMSbIwIANHTG+ugGgcCr4wp3PcEpRxo8pb95FICWgGBBRDMrBj14aBgS5B0bOlfFSXpnAT0Q43ZPRbZwXFW0RnN6/ejdwF/xMXP75IcG4JbejPblI11fWGk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727158337; c=relaxed/simple; bh=NTOzOGpA8usIATjl+X98n8VTo4bkq4d2LYvedMMxOEQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=RPM+dv20QZiUstakYsWLqU7LSZ2VyOOBbE1Nkk2N4jHBQhVwfGi+b9aawNIDchf5aAWKzsDQZjV28z7PN4ytGPIQihWTjlJRj5NpGwahw96TXLlZuVUsiJyq/lArpCfVp+XvU4kW0knOq7aMobSlqzCTrerV69PjDcX/SOvTWT8= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=KJwO8dMr; arc=fail smtp.client-ip=52.101.65.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="KJwO8dMr" 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) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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/kLKovvZxJKSYnMSzrt/RW7CcjJZdM9Wd8JBUAdG0Ng8NMAFHtDX8gn11yy1UXOoS/c840ktiEwpVUsBcnTAPoHUSnte03oX3lQIXd63Vkz2IG6YjeHfQ1QRbW92h8Jrtk+Oj766+niB0jGLLM4sLiHHVOy3Q7SvjbaKznsPvXWnBPP9WgUlbfffjvpGYV8mQfP3tDit7mCS0zKQCp9A/4/sCzf3bXemLocpVQKLdjQ7yY1j541c+jKCLj1PMKrd6n++9KKueWaMJ6FzFnSWhuoa5wFr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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/KmPxD8V1lZr6KLdJuhV3yRL44JUHmHHvvdqhblQI8Y6wN5H2ua1yVhiCpmfESNYTUfjnKqlz6FlPlMg/Z5SZYdPDcqqLZN9gezIK6vSai6kN6oaCq4FM8V1WeUD4dKecsAH3NVpY8zqljAdTBOUxkWZsgJkV9hqei3GYOqF587kOG7bjnAaRabcmTTLfEOf6jfGIjnCLJQ3rymP3wXv94sAAOv3efVyK9IaX25kxZs7qL2pwCzyiDqvijX7roHb+7adKCzNBNFLZaGY/lpRMlrFGG1EYAgEdQQi9uQnTN9yStaRsq9Ror+niC3gzuUCV4o9o7QB+7Ir5FdRuYXQBUpyoP5Ig9m0CQGSKZLbwUZdCNp3CU1S1wy8+AbLaVUZ1ll9Y3H0Dtl56mMXkQdXMa7+eqFz6TVIRdlCzZ+cYW1yy3Q6QYa5ZL1uJiyQMkoxCfZh3uYzw5hejbeEekeA07Fg2W3+8z99KZKWqJeNhZA8/JpTY56HlMv71C7d8LMmJ6ZsjZs9HObIHxc9kdxIEvh8LKgHWNKa8dh0q3zCjU/gQMjmffS8CHyhpHZdjuVSwbzGMAkuzU7TWDudI9tqSqZebd5zqsCVRoS7/YG6VqZXXAikkDDHdEJicu9Uz4dbj4aq+WlPt3ZW6ZcS6ppJ3P5hBi5evi6I29Ui26iRQGXyZ68y6XMxd11NN/BZAfL8jtdlMp7V1U0IGffbx/DRzhf45xJYSow0pbQU5e750/LHTNZY+FYOl1lzhP83POGDUeaj64PLDDOHA0Vbt7+nswRQM5qpaQZfAz3SAf9QMWi7eEHrMrdicGkhnyyYYeOmQo49+rOIoDOAq4kOHJ+0jYCn5PNoAk+ALFaoh/LiuE9+uHyjKZ8SeZXvc5Dew+dyxX6FGylSqNIA7FsDaBg2jtLL2yci7cw47wiJhO+BgV9PUGP7c8iIDxp1/Wh9f+wv8EsUCNJrK+IXASGunEdJiHL5i8whIsUNYjaIwhYBm2gTIhgRwxyh X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d66df2f0-ca06-4900-67d6-08dcdc5fce8c 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: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 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: 13810138 Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11011037.outbound.protection.outlook.com [52.101.65.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DEAF6A33F for ; Tue, 24 Sep 2024 06:12:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.37 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727158339; cv=fail; b=m0SWdSg7NeBfjw42HNX4BnrEmVFIdrEQ3Rnuy6h8frGmki54yaBCLDDO+v2mTkq93ezX9upuBmfMEclfzUAwmu5zuZJQtNHKbb7L+ezcYehlCMeTTphGn1aQdY+9f1J4dQ4PZ3bOMhMtcghMdqUItBVcFZPrb6qFBJjMdPOvZzY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727158339; c=relaxed/simple; bh=aOypdNejV1POxLfm7vikbXhq/9CGxsWYdP+amGBT86o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=n5IfGOyuBBzCix90yoqKl0bi4xLFG09zc7dRW3ooSRyEbRvHS4BKm0RMj646nQTrV4DpCfGGxzuR1JCN3/ncb/CXmbM/knmbX68OuB2+1w5YK5I80lsxmq6VOAr6UuDLGJt3TO+A7PyjyFyzlKse7Q+qUBVu2A8oD2oPzV5kH+E= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=PTTJvnph; arc=fail smtp.client-ip=52.101.65.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="PTTJvnph" 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) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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: qhK4RcscOSXXGUrTFmfnYQpHftl0RCDQWcnonbtCkuS0yDSto8PzIJnRFnUE4ZVrLHdbjjR3NLvvn0fOXrT/kOOsUNWzquo12riLYTLGZ8i1KawPZPWbnorjzKLwT0ElJOIzxA9G1kP9/WF50R3jqRQddQwOanjI4N3lLstH0Y7Eb80utCdtxX6db+0TwBDokWvyjbRazdPcD/QnWyDUufLcyb5Nl+Y2JsVSYupK0nnYa/0DsWpPytkPT4SW2OUDMGojiiN2qh7tL3lL3GLdtooBxF3Pm1KVaGvV3nXPmAbes/TdDFaMMR2kkiFmGO3ms4igC2wB6M4cCYiSEVdpFrRjsBpYmidd6NcFsSdBu9Pz8ZCJoUtQi9Zv+DvXBJMJwmjIQ3ra/c6NTE9rBOktfAHSxnLyDimFHhoUoO75rLVlR6lDj6Vg6ueDWaYQK2TaD7lhq2dqxbkyQKa8FAhSHRBvhu7v575uMrWw7JoQ/guU6z4oI4fu8aL58OUEJk1qgbLBZsHiwL6iqCG2X4fkURN+oAwQM73gD9eR4lXKeBccfynGAeb+TF0+q/qMq+9hTHVJoboc/Ih/GWlPAAbetgQVpKIQa18DBSGgghDr409wofk7ZvLlqxq7BOiISz4PYUHuX2DpGUe7pSQJ1UjXPUh7lBgcJx1brHHFDRI+utrAE8ilYik4tThvy7ULyo4O60D54YL61+YK5t5S3VL18M26sfkhkWGh+16iZLbZXHi9jIA4jZeAvV2NlTVOV3xBxKKnOIOHW0mC5FeN9EML7R0oXOaNXW+wfS9vLQLkpA6sJ81e5nolglmbSvW7JRb+4u0oLwOd85o2tYCsiZi0Bc6509vrPCvynl0Wc+Kbpt4COhrL90LyzR/3BilvwiZOvGAWXrpijTYpnAzYM5np/AyBrKVihALpzGZjhVgBXJXSNrwtKaNXVeoxVQdY2K3OdgF6+6id3zJTBocS/M2e8tB7AywdnER7DezZ4iO5Xfxwx6bIlNzuM0n3AG3FjXOC9qlU3G99eCvp93r7Z+Z+lyXgrZI4wx30ndrW29zhIMdj6D/f9MkH3R00ec9kJ581Fhx8D7GE6NVY6SNGzjyLxf9/R9TIWsjpmftg5YBTD1DN/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-AntiSp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kwfjIdesYUem6yct0N9Y3d6BSmYzEem0SdRXaY8xJZrQmB8G4dZ15oN2j8tqemdJt+MeIgNxugXLc4zHoreMa6qgEVtz1Ktcy5VsKQUwV9XDdkB1n+EgmPN0zLgqPW5+4BEtHvHMe2VfxbBEhU7SP7KVH/9/1i+JUQeuoQAqCBN8oJ9SutGnZm1ee8oieZLoTmIOf4AxvMqPSqE7ylV6vr0zqyT1cmoUsAudQCw+JEkYz76MFBDEA4s8uCZImcTBlL9aeqAFUoMKYv8mgNTR7NndsXgVVzmZBAEuBGB0viguEoa9uLEFkO15tretelyvnZzNKvabetH3vBK3XAFghd/naeSSBfk8BhdLRbPel68HM9Oba2ac4hG7nPGmbU12A+0XfJmPFZPC1s00Bsbb/3GzLx1bds7uSex/mh9C/SNI8mNoPm7bbfAmrEVwtTOLjXdxkk4BNEQKoYfO4UIJxtR8yn8jSGwI74iD0gjw4lD2xgV5yF8A5i0/gPydK2smQZjMrSGlrDETmb0+DBYsJAhy5hv0UX5vdT 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 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" + } +]