From patchwork Tue Jan 19 02:56:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 12028533 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7285CC433DB for ; Tue, 19 Jan 2021 02:59:56 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 362FC2067B for ; Tue, 19 Jan 2021 02:59:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 362FC2067B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YN/bU6/i9BbXt+CABzfXwFpRxcIO9C4866IxL5Eh2ns=; b=bp1WegiMGIxKxXaeHmHSagsQL yadGJDzKedt8tZKJSz+lSw5v4VR6y6NO/co7PZqUH9FwNc6ccCd4yCtqVAQ6PxiifryaADPwFTb+8 q3ZustCZisH6QpHlwpkW2gz/A9bqOye57oZXqlhVkEtNNRTqwD4zzzgp8nmfDvaRMiFAlVPJlpSgS Aamxg4VrODsRTTQYXGnKQ0Heufsj1V/y7u0X1eL0mOyscHe0w+ru4nN2tS7dKeUnpaOt8obKdqUsj uPdH9JK6M3tYLsQTVFZkUB+5N0FYUj508jEUmBLuTrPCJuZSnWkD95+cMY8ctfsnoC1ejzOrruzhF SHfxSrhbw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1hDo-0006D9-CD; Tue, 19 Jan 2021 02:58:20 +0000 Received: from mail-eopbgr20054.outbound.protection.outlook.com ([40.107.2.54] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1hDg-00069F-Q2 for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2021 02:58:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kxEiSYVlXa6BOiPlCvyrDPm3CNdgkavt+z20eo929PBt9lGNVK2mKZSq3ThrgOd4GX6WXwFIQHqIKuW/qI8nYFIr1GgNblkZBOnEfG412dq8YlSXKGxA1RC6xMKfVmy88aERirzUDya9/eCtK4XKkiI2/sc+EY54QeIz+tbNPyGFHF6PQhWyCeP0zw+jdwUmE3ZkZwS4iCkCDkfiivz7jTP0HC5lQf+D4aHoz0j4HgIvXgb1i18yM9p6bxNMNoJ0ukDJ6XkgCPJ3LPA6R8jZ0DatUjsBpQjCh8xvmrMEIdnytcZDG8V8olVgsvZE2rIlEjHKz+C9WiGHixyhlvP3xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QqdgHv3Wn1thkJFioUq3L6g9Oote1LH+IcQOmFEdHDE=; b=OTy9sVbYxTHt3Rhhiwx5WCyhTOksTGvz3ah34x+tSMgfYGlHnUptsZBqoNHiVD70v7YJxRGRMuTgiI4e5dw6PZZVmziWBlIsFImiya4Lz9CSY9RMiolvlELpm4/6HdeE32AvGU6sxLI3t9F7TrQgi6OsmiozjQD70UaUk9Di8YORzJx0HdjQsIKlhwPJUdsNTgetzQ3Y1sBEDQHfaQEcFj2R911WmUfStS9REcBV13yBk7j8SRABFs0OMwkHX+SFzvRGoiS6TSIO0ZJaMcmnBVSgLK2oRnj85dd2JcVjVcIWN7HAmDMyV9WFsHbs4+CYYUtDd+Wpk8Wu219F5fVKuw== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QqdgHv3Wn1thkJFioUq3L6g9Oote1LH+IcQOmFEdHDE=; b=PxcqkXFXOpnvVL9IknQz1rQDF9afGxf0Jkyvfn1JpTbRNdcwOr05HOFjH9BRDK+NMccSzW0ngppKTOesPUiFTrqssns5okNpoBLN4Druqk/rjgCOS4j2EYiFG7/hZ1MK/FDfbb4M9eHJ61IoOkewhBeUhvS9KLn5T04dSXX3RDE= Authentication-Results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DB6PR0402MB2903.eurprd04.prod.outlook.com (2603:10a6:4:9b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.14; Tue, 19 Jan 2021 02:58:08 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666%4]) with mapi id 15.20.3763.014; Tue, 19 Jan 2021 02:58:08 +0000 From: Joakim Zhang To: john.garry@huawei.com, acme@kernel.org, jolsa@redhat.com Subject: [PATCH V1 1/4] perf vendor events: Add bandwidth metric for imx8mm Date: Tue, 19 Jan 2021 10:56:44 +0800 Message-Id: <20210119025647.12569-2-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210119025647.12569-1-qiangqing.zhang@nxp.com> References: <20210119025647.12569-1-qiangqing.zhang@nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR06CA0231.apcprd06.prod.outlook.com (2603:1096:4:ac::15) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SG2PR06CA0231.apcprd06.prod.outlook.com (2603:1096:4:ac::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9 via Frontend Transport; Tue, 19 Jan 2021 02:58:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: e02b34c9-580b-4353-aab9-08d8bc260cdb X-MS-TrafficTypeDiagnostic: DB6PR0402MB2903: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1247; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tJYSrwqN3284Cqf+ib00JEdSrmLuIXOznfopwktfC8hJm6j40IFSu628fSV4ymorGwODFhSgNHDAhvo5ip6xMTunHDPEtjjkFov+qtVsgsQ7G3ANkW5aS8x0pZ5HCdHaUiSQCtE/cN+gHaArPKHTOFPUquS2TKQBfKYjSJCXNSrCc8i+mVgjZdgIkidvByh7tUVwLtZ98xMUdrMZBtPSj3wKnZPdFH+PZnrtpBUUDVF3qEzQL5V/H4M4qn/qsj4I4XtGVA9WElVBGpoO6pOR8ZISCMB5V+PxmkxhBKmg/QPlDAWA36twF5kxZVyjTZwPQpwKLgjhEXUHS4rWNNQwPI/3kkprU+58xrpBF5QeGL/vKa2v+5kG/ANWZjrOOQFZkb2PnGPYnLqydX2oEQin+vXcuypKPi279AC75p9ZJfMUwLib5HEBn3Ryic0suA1KMwddayXWHg+oy8zu65HhTbwTwez0mxt/iNbPiATTlFw= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(136003)(39860400002)(366004)(396003)(36756003)(8936002)(4326008)(6512007)(316002)(8676002)(2906002)(86362001)(66556008)(69590400011)(1076003)(6506007)(6666004)(6486002)(186003)(26005)(5660300002)(478600001)(16526019)(52116002)(83380400001)(2616005)(956004)(66946007)(66476007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: AnPxx0p9bbCTRTum3VtQL7mfgGo20dtrQfexP7ua4hejifuR/P2T0UaafMIZUVr+A7RLhPV76PZTYbV2FSK5UEiMcmR43CBZqCkfWcCTHtt1IL/oSZPS8JpxeL9CpXpvZMnObb3jWg75HJla7siXg8oaxb+UdXtrslsZCkfj4Ou04tPDNhlEvNNy+H0sirtUtHP6l4mgD8bCnJTdVwzfaTYH06jP0lpmF0lgmXhA60ryje9VTw2iEMP6BvgvgPYKxrRyThXI/V4xIXLg8DWeR2XO5glLTbCwTlObwArHA6gF2FIB4jHdS9GZPru6ZoUYa6drwb/nU8ZAa0hxdADn/LNiK6/9/9hkoxnRkQ3AB0gOAyrDsnRIZzCsxsb7HPthH8GlHI+kTxJgL6ic6GDqsYKEjbwwht83ly1/JtwFJofgdhTXc5h/LJMuSeCMv8D5O/ltWFuw/LaDiH+x4v4dZAntEq4KyC0OaVJgkL+LLbQJYtxpFdVEXU6OWoA8kALNgJpneesm/JIjjxaVKdqYRwAbyw9d2MndoNxg2w/kVt81ShpRq6PKcH/CZjGVksMr935ykMQd36rW6zs8JdwLLpyf4SnyBxznFXVnOO7Ntf02Ijy5PFTnGRrK/+XxfXNXrHZyOvxlRZxd6SqpmwttaWcqRQgC/lVt0DjkgWH1DJzIHQA2lZfV1eTzW9ZhBegnuS+bzReQg9LyjafoTNeNUxbl0XqjJQ6CEtKePsD7ybpG/J3O57yOB0Jwwhsn+mT1H7IzHrxmoh9IxlX9sUE4xnxB26U6Y2t3ZJr1a1Pqk411dfTxPmNY1Hplbr9k/3usg6gqxpSmVT46AMiRSCzXlNtTnhjZk2sW09+T+wxyjdgDgmLfI7RDiclDlD20C0w44nmiGNUHyvDQWbuqqng90BQyRfAm3t7/u0D/U0N+uRmV2u9e6RWDv+SCkBjCuulhWVRuwjLpucHj44r6OiH1XDTqKidN2wfCR8lcqvuuwV1qTYvncE420Kwrhc8pzsf6 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e02b34c9-580b-4353-aab9-08d8bc260cdb X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2021 02:58:08.5159 (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: tOjzwCmDBQiEa67Fck/7dT+TIHL65uV697Ig3Fd3tPYtP9ZiEj4TtOtg5gvQ2klGJfdyCAMMAjAzGFMNxGCOfA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2903 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210118_215812_883540_AC8ADD48 X-CRM114-Status: GOOD ( 12.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-perf-users@vger.kernel.org, mark.rutland@arm.com, will@kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add bandwidth metric for imx8mm. Signed-off-by: Joakim Zhang --- .../arm64/freescale/imx8mm/sys/metrics.json | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx8mm/sys/metrics.json b/tools/perf/pmu-events/arch/arm64/freescale/imx8mm/sys/metrics.json index 8e553b67cae6..615be286ecaf 100644 --- a/tools/perf/pmu-events/arch/arm64/freescale/imx8mm/sys/metrics.json +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx8mm/sys/metrics.json @@ -1,4 +1,20 @@ [ + { + "BriefDescription": "bandwidth usage for lpddr4 evk board", + "MetricName": "imx8mm_bandwidth_usage.lpddr4", + "MetricExpr": "(( imx8_ddr0@read\\-cycles@ + imx8_ddr0@write\\-cycles@ ) * 4 * 4 / duration_time) / (750 * 1000000 * 4 * 4)", + "ScaleUnit": "1e2%", + "Unit": "imx8_ddr", + "Compat": "i.MX8MM" + }, + { + "BriefDescription": "bandwidth usage for ddr4 evk board", + "MetricName": "imx8mm_bandwidth_usage.ddr4", + "MetricExpr": "(( imx8_ddr0@read\\-cycles@ + imx8_ddr0@write\\-cycles@ ) * 4 * 4 / duration_time) / (600 * 1000000 * 4 * 4)", + "ScaleUnit": "1e2%", + "Unit": "imx8_ddr", + "Compat": "i.MX8MM" + }, { "BriefDescription": "bytes all masters read from ddr based on read-cycles event", "MetricName": "imx8mm_ddr_read.all", @@ -6,7 +22,7 @@ "ScaleUnit": "9.765625e-4KB", "Unit": "imx8_ddr", "Compat": "i.MX8MM" - }, + }, { "BriefDescription": "bytes all masters write to ddr based on write-cycles event", "MetricName": "imx8mm_ddr_write.all", @@ -14,5 +30,5 @@ "ScaleUnit": "9.765625e-4KB", "Unit": "imx8_ddr", "Compat": "i.MX8MM" - } + } ] From patchwork Tue Jan 19 02:56:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 12028535 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A339DC433E0 for ; Tue, 19 Jan 2021 02:59:58 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 452082067B for ; Tue, 19 Jan 2021 02:59:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 452082067B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=srf8QPntyAePqkyPj5NZdMUk2cm5nVu+O9q64Ehyks8=; b=mCDe318QlhWitAtFWS3woVn8u tAEx2wbDsbZeGpqmH2OFh2GLYjMZL9YclLy3Ag7MZhVlgEGSnbjM7rZ4TM7otJrbG742mx/t7vqjg gcwGgemvIOGgxBgcEkoxBnkf2+tWSy5+OTpIcwBw1H7QH2Xo3h+HWpqwe3Qb8HI8yZwaOTDK+jbZw g4k02GuygeVeOPNt2M0i+06dn49jdKVQi4YsTQYZOtdJfPpP93SeorNsU0JoMBYXYjNVps5MrTSA+ UwubfxEx+j+ZJV47ISj+dLwKTHlcjTTbyV8xzYmPJfNVTOATy226d9+Vr8ThiTXoQsHHvsGJB9zsl N9PZGezcA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1hDr-0006E0-Sh; Tue, 19 Jan 2021 02:58:23 +0000 Received: from mail-eopbgr10063.outbound.protection.outlook.com ([40.107.1.63] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1hDi-0006Al-Et for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2021 02:58:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d2TKDdjbQnC945kakWNmURZku+QADknED04J2L/67jgEe6Tty8uaj0pzLECphRdUpfO2BHtECoiaGj9I3nZfAmG5uPJyj0cDLquIkNSorl6ywPaYU2e0uya+AEWR0+SLPYt/qsnjQE2Kx3/xf5DwmM1mtcuX+GkC4ocxGGzFIAckEW7gLC2ywl4EEpmsUG1GLQzX5jrg7UnXlzompCLJSljNVQb3VE7XgNbdoUsoBUmbNicabJ4tfBYDCeJYGLYGooSgctZfL+p0w99G36kV4QniXXmkivMHiYw+s950UMGQ/gALr63GVU75XtrY+iqu3ChXYMu5pRqXKcgvuUqbSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T2/irs94rONu4l1lTGrbeawZx802h7ywLDN4IElNw3w=; b=BMsmaBgRAbat7IqtOf/ct/VbAVypzi17ggXT15DXGS0fACDTl90q+qG4Uy4ayGtK+LdkmBGagxLvV3df1tAsy/HI2Pj0BrUXvHtkEUKg4CQdn0WHSPzGTL/8iWwVJvwEvMQRth4r3QHx4YTWgO3vueappJslJcJmKvMdxu5ggjbg3iLbbhMZd3t1lr9ia5ghTyuMHJdhiCU+I/7Tqn/ltThZozMCJ2AMINjIjSnIVzRCgJAR3INeFfiek7vFo9yhqKkiuBA5JF+IR9f6CDppg7cFqpQpuQK/Q4iNhwiHF5vEjG3d+MaoyIUnM7dWb8ZG8l53mKL35OT0j5gra2zzSA== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=T2/irs94rONu4l1lTGrbeawZx802h7ywLDN4IElNw3w=; b=Zv3HaOEuW35EovxUYoPfurY0egdLp+RXwFAMyCMzyTTg+2Pip+huhykcDuGO34ug9jydB8OFrhT0bIIVfBtZm3DIAGPUdxYzVwtA8eifNo5iqTwybKhYh0gwB/oxi9mXls2S3E7Tme2OaXK0jhG8FriiFZDPSnB/0nbc3Tj3Uv8= Authentication-Results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DB6PR04MB3208.eurprd04.prod.outlook.com (2603:10a6:6:3::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.14; Tue, 19 Jan 2021 02:58:11 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666%4]) with mapi id 15.20.3763.014; Tue, 19 Jan 2021 02:58:11 +0000 From: Joakim Zhang To: john.garry@huawei.com, acme@kernel.org, jolsa@redhat.com Subject: [PATCH V1 2/4] perf vendor events: Add JSON metrics for imx8mn DDR Perf Date: Tue, 19 Jan 2021 10:56:45 +0800 Message-Id: <20210119025647.12569-3-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210119025647.12569-1-qiangqing.zhang@nxp.com> References: <20210119025647.12569-1-qiangqing.zhang@nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR06CA0231.apcprd06.prod.outlook.com (2603:1096:4:ac::15) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SG2PR06CA0231.apcprd06.prod.outlook.com (2603:1096:4:ac::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9 via Frontend Transport; Tue, 19 Jan 2021 02:58:08 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: eee10435-a9c7-442e-fc62-08d8bc260eb3 X-MS-TrafficTypeDiagnostic: DB6PR04MB3208: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1247; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 92mpDZvdeXsry/fRUbQiKsYst7OM+yEC/LyJxT5LJviAmdBlINOEqk76jSjvPtHDTwP5nejYYlILUFk3HMYpNl3TygIgq+KLNRiB3N5i1iBSYfO6v5+vIN3yBINbWexLonqhepbGL0LZAADqUrNcYfmTT6apK85yhHBK2EHPNR/lTgK4QbGXHjGpZbdlt5EhkjIl9hkJzoYx1KiXxErPpO5yPKLPhfcT9uGzy/1A9/WhiM6my/YSWPwu0ffuOq0eqRlOwzHCJHYR6gtaz6EOFLL3DuFqxH72PJZt23PPM2zgFEDi7FzClEb3CQmgBCkvDT+hywQbkgRk3t5yb3u/FeyWpojDkBomymRsgHxdhpt45fd1EkGiJltgxbVPBqnINAKgekLvXctsdqJ1JADkHfyrt392pgYscH52S7iN0Jqd2pxZxy8pQ/Eoqv/2G69jAivhSsH9qPc8JFPVSAhs0sJpukzZtlIW1nBHItLAQiz64wXGvGi6ZIlgxTOcqV+aoeGgl90LmoFSHhP5uEUwuB7/cqntXBQUJa+g4ptrmnCR8gPFNqE3uX2wNYaK6FpigV6QdjrPHgYagGn+75u/qXARTN78AtdLfYvaYkGVW+I= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(376002)(366004)(39860400002)(136003)(36756003)(1076003)(6506007)(956004)(2616005)(66556008)(26005)(16526019)(8936002)(5660300002)(186003)(52116002)(6512007)(66946007)(69590400011)(8676002)(66476007)(6486002)(4326008)(6666004)(2906002)(478600001)(86362001)(316002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: wP/31k4VNatVPMfv7KlTbkGOukoqLcnqeW1PDI0DFaQe6jQX4xt8LHwNQ4A/6Sq1hBLJvxqhEFSTGT37rd/QjS5jWadv1fC67gN3fk8SLOSfZx0Ndl/7gjH0O3fZ882lZyBZaHMaoO3uTBgs4DaHvtj0W8CitI4fNbNNY5B9fEmBvX0lITps+J3eiPrSRjfCAlBf90ElzCuD3LpphtWIkwhdPjiOsw0Vkf6ddmwansvWkzp7O56mhlBja/1WbYTjpD85rc5DulDi1dUZwBbLJk77WdwEc/6O87DJcGr5MApHAm62Q355L/SDGpBJTMhuln+KwGsOZdiPzOviQ1N2FTK+DGXXke3W0uBo5QTv0YXsB7tWFrUoPkiZDZdPFmGzdIAzXUbc3aN8DKSzJPCkAHyT+/1SYKyJQNI9iRSw5OrU+ZAY3VatmKQAKOq1RocMm4FZBslFCxyq8c9jolUkRiTsFOhYAbSw1Dz/T/JS2A1wsqUINlEXN7lXohPROdaMuw6kFTIVshSHBI7UJmnYs4dL073ChNkN3SuU5EZ+gftrtI3PJ7ahrxwHwxmEQpEODSDu91LSKA4jJsOzN0GvKLJumoMuxTRhr6Aik0GgrJewLO/YIR0u178RWZXji+gX8A0z9KfbC2VtSiG/6gubYSf22JjC7zUcCt9jlD5k4rNcUm37ur5f14ZURW54Q8epuVrm+0FVUrE5aVsQDmykoQ99kG5I6h/wGpMqPVnHFOAWPacbva5MgOYwKW252ify43q5i63ja8NHA8gT3lQjtMgT3nuEzm/2DFmxSZ3GhCaI7iP7kTsAEQ8mYkEEX2DBite2YblN69/t7XNkbQHwPUeUO/f420bll3Nk3IoCtbjUXF6wPha5UOawxx/CzxfiGcQxEI/Q/r+bQuIYz1tMQ2V7o3jO0KT/9130o8BvHpI7LsUPWfwvZ3/2PjsCnHntIzYUVvUiEgB9NIMTjsG1T9bfw7oisj/kNhc0lfRSPl2lk1jALbl+cc9iXEI1dgvK X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: eee10435-a9c7-442e-fc62-08d8bc260eb3 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2021 02:58:11.6163 (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: b0BL9B6u/AVIqccZhkjwE5eGdL3Xb4KFg+drCTByHabNNDnOK9kXgTltaOKedZl5M7VI9DVpq1QpCNwe+QmK9g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3208 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210118_215814_568270_8E94F571 X-CRM114-Status: GOOD ( 14.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-perf-users@vger.kernel.org, mark.rutland@arm.com, will@kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add JSON metrics for imx8mn DDR Perf. Signed-off-by: Joakim Zhang --- .../arch/arm64/freescale/imx8mn/sys/ddrc.json | 37 +++++++++++++++++++ .../arm64/freescale/imx8mn/sys/metrics.json | 34 +++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/metrics.json diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/ddrc.json b/tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/ddrc.json new file mode 100644 index 000000000000..8352e73d6d35 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/ddrc.json @@ -0,0 +1,37 @@ +[ + { + "BriefDescription": "ddr cycles event", + "EventCode": "0x00", + "EventName": "imx8mn_ddr.cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + }, + { + "BriefDescription": "ddr read-cycles event", + "EventCode": "0x2a", + "EventName": "imx8mn_ddr.read_cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + }, + { + "BriefDescription": "ddr write-cycles event", + "EventCode": "0x2b", + "EventName": "imx8mn_ddr.write_cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + }, + { + "BriefDescription": "ddr read event", + "EventCode": "0x35", + "EventName": "imx8mn_ddr.read", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + }, + { + "BriefDescription": "ddr write event", + "EventCode": "0x38", + "EventName": "imx8mn_ddr.write", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + } +] diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/metrics.json b/tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/metrics.json new file mode 100644 index 000000000000..f71f6b0f3822 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx8mn/sys/metrics.json @@ -0,0 +1,34 @@ +[ + { + "BriefDescription": "bandwidth usage for lpddr4 evk board", + "MetricName": "imx8mn_bandwidth_usage.lpddr4", + "MetricExpr": "(( imx8_ddr0@read\\-cycles@ + imx8_ddr0@write\\-cycles@ ) * 4 * 2 / duration_time) / (800 * 1000000 * 4 * 2)", + "ScaleUnit": "1e2%", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + }, + { + "BriefDescription": "bandwidth usage for ddr4 evk board", + "MetricName": "imx8mn_bandwidth_usage.ddr4", + "MetricExpr": "(( imx8_ddr0@read\\-cycles@ + imx8_ddr0@write\\-cycles@ ) * 4 * 2 / duration_time) / (600 * 1000000 * 4 * 2)", + "ScaleUnit": "1e2%", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + }, + { + "BriefDescription": "bytes all masters read from ddr based on read-cycles event", + "MetricName": "imx8mn_ddr_read.all", + "MetricExpr": "imx8mn_ddr.read_cycles * 4 * 4", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + }, + { + "BriefDescription": "bytes all masters write to ddr based on write-cycles event", + "MetricName": "imx8mn_ddr_write.all", + "MetricExpr": "imx8mn_ddr.write_cycles * 4 * 4", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MN" + } +] From patchwork Tue Jan 19 02:56:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 12028537 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14B6AC433E0 for ; Tue, 19 Jan 2021 03:00:03 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C63942067B for ; Tue, 19 Jan 2021 03:00:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C63942067B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XH1R6M/Wl8GR69EMiSAOxXN2v+39ohSbgTUTmGhkgzE=; b=TPq5iaQlQapy0PcMd4Xc51ifg mBPBV4Myb/h7BEtlZVla+HQvkiorg60DjnqK0FEmuU8wH9rqGLi4tiSFIvdNbiNCHUt1L7XOoX1pc 7KM5ZnqACkK8ykUeeUNJo7S3j8Mx19TtL1MB+h8LpueELRSlX6li2sH2VtwgzdMwnh8kL0EzSwK1B n3u/GH9vanp838lhWo8L4gKfWhZRrM/4kvk6pF8pD6tR9HkqIfu9r/TOsTIBrp/VNH5rl/xe+ACuB tTGsNX4V7A5hK/y1yPvix8rfMA0+bZKcw8h8x9Y1/TuLfrQiGTngYq8J4Q2apuR9aYxZHhFKjKS7h OcMujSCuA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1hDx-0006Fi-ND; Tue, 19 Jan 2021 02:58:29 +0000 Received: from mail-eopbgr10063.outbound.protection.outlook.com ([40.107.1.63] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1hDk-0006Al-4H for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2021 02:58:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cGsQuR/iMiWEZQJu6/MQtP5exv3a6yv/Vtc+sWLZdZRs0Kut/eU2lJzd8cadqmlaaofYYyHQqe3yTui2XD5SHCT4QWNv/EadJ/nXWsn+rREbLgi8EX5onqAs2jsIe5dlNFaovhtxWdsfpi8j/pvTXP4Zt1P9rOmh9EFHNltqqfTElkFsr+ubJijF37mK6fPLzAAF8ZD/8TIhSWAnYXmPQQWeXZjwYM4/VEtpIezonNhrFzcwGFmxnxdll80dvymyiwiliNJ//phSOIgia+DWcEnF+OecX93lZhKG3KmnKeVpJUiWqZ7x9xjUIrdmAdyFEdCj8ZzYn/otXV2vnBgUbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V2ndC83muw/dhsnIbo9ua85g3WwrvK4mvgiltmBQrmE=; b=mrZfGujm+aNtlc8SsxhVR+PtcmybN9uVLyzZ6rOBQ/EWrcv+gEX3InxG8gtbE/2fQKq0EhX1g6t63F43hfBrWoB/ZuPdp5HkkYYh+1Ykx0AyyNLStFAAsjLqY0YWXDKpXJjWJq7hfmKD0eyrEBQhjY2OGKBYblWRTvL4MwP78Snvef4klszCBg8K07KwwELS4qAiaEPcmiNz1Pgq/r6FOseGyG/GFVUOIga7x8jheXdnf2qbALdEdyWyAUPIho3ddk6E1mpyYvG+6NWWtuOI4CeZYK9a585U65YANXX5EcagtTiANCuQIZpgV6WM6FJJ1iRtZwppgqIOjZdBZoofgg== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V2ndC83muw/dhsnIbo9ua85g3WwrvK4mvgiltmBQrmE=; b=NK92hLPNX2CEr4qBIfbzzHe1J2P38jaXvYLKxbqEmL0lY4tBb2dTbgKNd5YhFoOozl4bAa24xtPG9XTCAFxAo27Pel81e+gL7MpCm2FaVn05rlP5AnVGaAd9xoBIKlRDbz01J8JNzsG8g4Cf6E8ybs/aqPh1hM9s+zYvHdbLMRg= Authentication-Results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DB6PR04MB3208.eurprd04.prod.outlook.com (2603:10a6:6:3::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.14; Tue, 19 Jan 2021 02:58:14 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666%4]) with mapi id 15.20.3763.014; Tue, 19 Jan 2021 02:58:14 +0000 From: Joakim Zhang To: john.garry@huawei.com, acme@kernel.org, jolsa@redhat.com Subject: [PATCH V1 3/4] perf vendor events: Add JSON metrics for imx8mq DDR Perf Date: Tue, 19 Jan 2021 10:56:46 +0800 Message-Id: <20210119025647.12569-4-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210119025647.12569-1-qiangqing.zhang@nxp.com> References: <20210119025647.12569-1-qiangqing.zhang@nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR06CA0231.apcprd06.prod.outlook.com (2603:1096:4:ac::15) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SG2PR06CA0231.apcprd06.prod.outlook.com (2603:1096:4:ac::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9 via Frontend Transport; Tue, 19 Jan 2021 02:58:11 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 78c64f6c-daea-4b7d-0a06-08d8bc26108f X-MS-TrafficTypeDiagnostic: DB6PR04MB3208: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1247; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Zb+Xd7r3tm8XjlPmhfLXTYmZLKm5+KPr5xCtWS51xeoBzzBMDS1ty0BEuSsSydViK2+QCdcsDK0g9aHmhz5kMlICLSqB/zFhZnnuBJHlApotwPVOsn9fdzqqCdyoskhgr56ouq29bxuhBjb1k1TidZT4WBqySPoLvY2O2KwdNbvgY6L/eWgnKhcdW4GCxz4wAMbemIBdWMv6Hn2dFs1Lku3N48DeLY3P+dMd6evl26pyO9s1kEQI788ToysBtn2q5NpENKPApDby0duDxHCCeleHS8FNskvYEfGXWMQq9yFlYMBoyB2pHlxFjAVd+OBCpqn0kTI2m0yzVaDjViDmiNIZCfXoHx+XRvcu2C87KF59l76eIpNS55c8d1dw7OrtCgOShIG8Kdkfbn7E1SY7tkhhhx99KTIOCMP2yB1JLbHlfJwcbwT6MRtT3QVycHFoyRL2PZebNvkRv8GmFAF1F/ErSXw5v22WokwC54daU7D545AF7lBlblBxdhVhLZ8Edfb/oaguNHB63k0j3gPVubUH7WvUOIJyMI9rrco8HhPh/dRhemwCWMycfOGxf3m6kEKXeOFjHP+EGF4Keek1htjYXltWk2MjCt8TWRUf9sQ= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(376002)(366004)(39860400002)(136003)(36756003)(1076003)(6506007)(956004)(2616005)(66556008)(26005)(16526019)(8936002)(5660300002)(186003)(52116002)(6512007)(66946007)(69590400011)(8676002)(66476007)(6486002)(4326008)(6666004)(2906002)(478600001)(86362001)(316002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: CDCmNIjp2LlwLW4I9V/Q21mh9fjzqS5Aw3qWAB90piVpip2ft7rKjzGoLQ2uDguSEEFQNvJ6pS/22LlbNg8nwsVXd5nNO5EfldELdUYFAyp2ZTdvuT01PXq0Sbw8i2uJHnTmes4cyJWK33y2KlCEYU5s7EjUA9eb4t2vYNA/P6LvuuIF/z6c6LKBeruxYwMtWQqH9ZdzFEMOO6d4U5RN5I7/LsuxvWhhHbpVn4gHqNWZy669rPRbVk16NYoRrtNNRyr9XgEcSBL87aK+9isAmkRqfbBs4nxG/DiJgFUdgQD11RvcObZ7+c9gP1MlPCgX1BMozrUylxfd/GHfDcsZYJaH41LseJYL8bl8Llo5p/usLEQbqhb0HOl/H/UiZPnr0fjoFAhjvHJk4z363BAspso4lUCczUns3DOh/qiTylM1Ol12bU7CZ9xWiiCd5JX+M7HzMQVMibwjbsqggUyB1sM/absnE9ME8XgsHwnHhewN58kt2xWFJG/aNMd7EyqYMsviSBvNZdLwR2bdJH9NxYlaTOq9Zo8GTBbbmoT1+k7vxmi8aH60WIbE7kQt2UeM3WHDFWDIoXLdWBA487rTiNb/b8Z/UgEijdXSoulW3B8BtBL4QHGPlkK9TFeH9JP/G6Lav6V/8ZQXUbLdxHjyyUCsGKZEVKNkcGZQpxPnwadR1DaeE48dp8sOj/tr7dc/TJ9qd3U9wxEX+bgVmhYNURem9TRyuQK8oIYywDRE450UICZWtQvmULHkItzW4O3EdhU1G4+UlZmOC3AHhYIF8gRMGL3xe9jkM1yDeioG7aaOMqxE8odNui/cpAHYykjDTpiY+psA9BEzn2gbhM4zobeYviZEQXbSHzy/TLdRw2jQ+ADv5m2xPsSn4+zRtFPPvPo5/EnQ6nak9NlAZ5gKKnMa96+mZyO9WDMFH+wUtuvr1JJyoe2jiEZHuOYo0TVv/kgQHckUs57P23C38mzbeldKc5t4vrN37HJCSJfSKsNYGHX2U15o8wuKpMWHQWUt X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78c64f6c-daea-4b7d-0a06-08d8bc26108f X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2021 02:58:14.7186 (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: kCQxMuC2CDMIGqfEsvm4PRU3zXLgVrv2ebzDrFB9/p82b6NaifVQ+yYQ5/GYKh9dMQlzzvRJoOCX9pqXsdQplg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3208 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210118_215816_198885_BA16BC21 X-CRM114-Status: GOOD ( 14.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-perf-users@vger.kernel.org, mark.rutland@arm.com, will@kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add JSON metrics for imx8mq DDR Perf. Signed-off-by: Joakim Zhang --- .../arch/arm64/freescale/imx8mq/sys/ddrc.json | 37 +++++++++++++++++++ .../arm64/freescale/imx8mq/sys/metrics.json | 26 +++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/metrics.json diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/ddrc.json b/tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/ddrc.json new file mode 100644 index 000000000000..c8682728ddad --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/ddrc.json @@ -0,0 +1,37 @@ +[ + { + "BriefDescription": "ddr cycles event", + "EventCode": "0x00", + "EventName": "imx8mq_ddr.cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MQ" + }, + { + "BriefDescription": "ddr read-cycles event", + "EventCode": "0x2a", + "EventName": "imx8mq_ddr.read_cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MQ" + }, + { + "BriefDescription": "ddr write-cycles event", + "EventCode": "0x2b", + "EventName": "imx8mq_ddr.write_cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MQ" + }, + { + "BriefDescription": "ddr read event", + "EventCode": "0x35", + "EventName": "imx8mq_ddr.read", + "Unit": "imx8_ddr", + "Compat": "i.MX8MQ" + }, + { + "BriefDescription": "ddr write event", + "EventCode": "0x38", + "EventName": "imx8mq_ddr.write", + "Unit": "imx8_ddr", + "Compat": "i.MX8MQ" + } +] diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/metrics.json b/tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/metrics.json new file mode 100644 index 000000000000..c3e9f89a4a4d --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx8mq/sys/metrics.json @@ -0,0 +1,26 @@ +[ + { + "BriefDescription": "bandwidth usage for lpddr4 evk board", + "MetricName": "imx8mq_bandwidth_usage.lpddr4", + "MetricExpr": "(( imx8_ddr0@read\\-cycles@ + imx8_ddr0@write\\-cycles@ ) * 4 * 4 / duration_time) / (800 * 1000000 * 4 * 4)", + "ScaleUnit": "1e2%", + "Unit": "imx8_ddr", + "Compat": "i.MX8MQ" + }, + { + "BriefDescription": "bytes all masters read from ddr based on read-cycles event", + "MetricName": "imx8mq_ddr_read.all", + "MetricExpr": "imx8mq_ddr.read_cycles * 4 * 4", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MQ" + }, + { + "BriefDescription": "bytes all masters write to ddr based on write-cycles event", + "MetricName": "imx8mq_ddr_write.all", + "MetricExpr": "imx8mq_ddr.write_cycles * 4 * 4", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MQ" + } +] From patchwork Tue Jan 19 02:56:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Zhang X-Patchwork-Id: 12028541 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A939C433DB for ; Tue, 19 Jan 2021 03:00:09 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0D14C2067B for ; Tue, 19 Jan 2021 03:00:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0D14C2067B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6F6S+SUeZLVHyEe3gePJ78BI25cknUNEPV9saoNDLkE=; b=2dExXjGoes0AkZNxtTLIEUtAW tnmGBO086pDClicRYheEYa9cIZ8S+Pwy3MBKvXXyOSikG6OF6gN+NNw19uHGswjYiZvN4jkk0UF7F J8JGJXQcZ//OE1NKskpYtNaQ3vlxNyIoWemi3rHoTdtyHjnma8efji9cdrlb4HTlqx9yJPgSr0lqJ MjBIU42aZIVYad1alIxoCnFWb84B+SRBStf5NJDqv1sZ2pQQZanP7SxIq+K+KOAgqQcmZnUFErZhO TBxZzsiHiRfQmtj1EM3Xzz3XdzWPjJgOkxPFAD79gHUw5CmU3PwrUlcXXLOHnNRR62K5xnxPR0aL1 tFQVSdQyg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1hE3-0006I8-SV; Tue, 19 Jan 2021 02:58:36 +0000 Received: from mail-eopbgr10073.outbound.protection.outlook.com ([40.107.1.73] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1hDp-0006D1-H2 for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2021 02:58:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W1vAs85zM97OLnnodBxi5jq97UapEZd5snNHPDRI6o6xXEnqvNiYNG87JsZoFfF3fZi7YhoUJjFHO5locVvDqfvBafGloTq3NN1BvBqwyOxKbeEp095WFZhgEb1krkXl5UzTugEAQxkXiOgJYliL4t2+Rikg3p8Q+0S8C+EHKdjd3JuSQPPUnEbUejJO+DADqNnwWx6ZbJis+KseZgQt5r2ce9llVl9qCcmTTIkVa46/Tkzh+K2JgSpO1yXocBoHhoh/aLjqlPLRJqkvkZZdYmXccWYQ0SGzRFkolKrk5rWc4M7xoIY56LPUh6iVUpu4UZ+Redk23AnLZLM3bCJ22A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Il4Y0TQnZZsP+aTxfvHxeH5iae3+B3+Rqf/s3CeGIDQ=; b=iwMhK3y6mWBgQFwMy0svYNHH78yAmo4UciLWwK0t8XBqtXuFFqlHS+aexEb5o2S9OQ21Nx8PlttfBVxqQ8Wnjs9ghbpEw04SvFmscnGzAlBEPJGaboAj5pR8ayZNPBpIkD/4OntZt3mXn98Og/d5YegozvptoOGzNgP+Hvd0iL/OBGRWrrAwnkH6ziQV8zPcFGGkn6UsxDlJy11oI8sRM3cNpZD0gJ6mpskxVAXzi4nsprp9ZPWMqBtKmy8s+RxxlTF0FVWZ4C5cV8LFrUF+YxPRU2UuQnvTxYpUpBZfZdbZFRdk/Yrof4IXO77WpCrzWoLkSxt282aKY9QkORhdGA== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Il4Y0TQnZZsP+aTxfvHxeH5iae3+B3+Rqf/s3CeGIDQ=; b=SXCvQn49czyZiKeUzKEuWiILk9WlhP9jEfdZrsxihIIGV3i0YwWpKvQH04yGK2GEfUonRRGJkjogMZAT/oU4WnNQwY5QUAdvFigYXfusuHG+Ao3VgmWuXJmg2IgXE11m7KE2VVI4XIqHuS+hg5vi3bXenQIL3A53VfqLIBxHQEI= Authentication-Results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) by DB6PR04MB3208.eurprd04.prod.outlook.com (2603:10a6:6:3::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.14; Tue, 19 Jan 2021 02:58:18 +0000 Received: from DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666]) by DB8PR04MB6795.eurprd04.prod.outlook.com ([fe80::b83c:2edc:17e8:2666%4]) with mapi id 15.20.3763.014; Tue, 19 Jan 2021 02:58:18 +0000 From: Joakim Zhang To: john.garry@huawei.com, acme@kernel.org, jolsa@redhat.com Subject: [PATCH V1 4/4] perf vendor events: Add JSON metrics for imx8mp DDR Perf Date: Tue, 19 Jan 2021 10:56:47 +0800 Message-Id: <20210119025647.12569-5-qiangqing.zhang@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210119025647.12569-1-qiangqing.zhang@nxp.com> References: <20210119025647.12569-1-qiangqing.zhang@nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR06CA0231.apcprd06.prod.outlook.com (2603:1096:4:ac::15) To DB8PR04MB6795.eurprd04.prod.outlook.com (2603:10a6:10:fa::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.71) by SG2PR06CA0231.apcprd06.prod.outlook.com (2603:1096:4:ac::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.9 via Frontend Transport; Tue, 19 Jan 2021 02:58:15 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5565028a-92b4-4a9d-d65d-08d8bc261259 X-MS-TrafficTypeDiagnostic: DB6PR04MB3208: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1850; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aOxCpeqxL92WQ+77yM29EtmXDciIHbkuPlWQQrSCuK8xi5XJxK1Lmq2FWrgTX1tkM/mkvJ75B4j3mLWJpVxfZsi+X31raSG1DIIClUsCGSYXYgN1XjkTRJFXmtI0KREoxHvjYc31mGp1aPvWaN864Bz7n50B4CT52Hnpke76TxgpSCk2reVqNE60Z421nznnr5EmR7nXSYK9oRV6g3qGJCvqg72iOeINr6ikdTYPZh2lt8CtQtHIGVt2wc0k4VSf/oeZPxcU4vUBfkoNlTgLg+80rsYPnc9BAlhAdvFoC/7D2LKt8vflPUd1053HSXO+GTsyEoNhG7fQh4H8hUGMJjmoXgqMq8k/GLhYPjBzQlIJdj/Qu6Nxg5T12YMsGMfp5hxet95xanqO/vQR2sUTYurMmpOwkXYEqoAl0lQ5+E0CIP3xFNdwtcoCw0Qo11tN+l+SsVPN2nRxPkIXqDA1rapfVkQ7DKjdcVz7mZHlmUdoXxUgxPGIRCaK7fsq5CWNMApYH0vXdx+zOZgqESvrtJyOElIxcreJPUthK6oXF0P+VFaIZd4r5jICHT/uMHbZ/GoX4uWDzhprTZD71CD7guP4cEk61k9lamj2GOaQzr0= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8PR04MB6795.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(396003)(376002)(366004)(39860400002)(136003)(36756003)(1076003)(6506007)(956004)(30864003)(2616005)(66556008)(26005)(16526019)(8936002)(5660300002)(186003)(52116002)(6512007)(66946007)(69590400011)(8676002)(66476007)(6486002)(4326008)(6666004)(2906002)(478600001)(86362001)(316002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: I8Yj6V78Xq1mTyPlQYU6sipBX1e0itMwWXG3thEDibns4w1ImTXZ9X+fz4c9mHA4U/2rV7nBmwy+kicWx7fJwu8NrTtWvcxdrnnZqBsnHG0V0yT2BkQDpYhRz4augifCKtHuXG7Epxjx7RJScMFKzA0ssooRRxg7qu2x6SI40on8Sv7MTDE/fa/cHqG4irRLtAqv0AqIO0HWhtU2rIpumugiIgsRWUFSKGiewIWFXbgFVUigDJIf5dpCko7owVWyl2ETrBfRIQGIAQpbw+24rV1lB4tzVkGr/gsbuy9tXdTcnsoQmNPCG1dwTWO/vlnrfH09WGLX/MVFrDt87rDcJ7SzTSDZGpoOmoCvYvzOYSBU0hWL81Acr+BRsBYGqXI+QNNnPxOxayLO5FeSFK/WcaMRTWzptUtl0hrDyRo2ArsE+98yNyeeIvizp87JQ6w2OSc6a+W5L9KvLlys91Pg5woqkAz3OkvouaqXmSuz9AOaFsXPyJgaUa60AVYsLN3LsrFDN/faIjxjnbnXxw+rNm705ML8bAqN+bgydEtfYmCgBk6bn7BIUU+8MEjMr76/ckJ+cqf3VPSwbUrOajghqJd5cajkgJIWERWgCR4/vR1bMVVSaz915Ea2ENSvxT9qicqCgxYFCEUwUs4JP2/p+G2O8fYsPTZYFEPckft/y+gD6djJ4kpbMXr41+zmjGOrwzO0ZrwfbzkrIHb15tqEi2pB+lKbPs+4TXnOGCKg5VYoOup6Z8JlvDgQjn1diWCRsZIUdv7f+NdmmsHqte3kwi+ZiwhGUL1aNA1Hk6SqecynaoW2plqY8Cl2IXy/7RZLRkdPFcwnDSOhLoofMEpM7uSHvwm8OUdYPE7tauGBG8+fan3Zawp6W6wI8uRZHyXFe1U+vwfeOlWAVBMdslgCAB8Mt3RXBIwK6DV/W+AQ4Vvb+mf4Uu9VZENq1HOK8pHHcOX0xFiNbpH9MTIbb3E/Pp9wQVgRZiYE8UsWNBbFSj3EjWatgtLejSO4/wnLa7tn X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5565028a-92b4-4a9d-d65d-08d8bc261259 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6795.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2021 02:58:17.9444 (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: AiLJTJbAPRS8yBAz9lelI8o3RZGrnyPbtq0CmEPSYYicOgVFYriB98RgUNCoJ3El4v1MlGQq5PfGuRnIb8LlAQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3208 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210118_215821_722805_E0DA4797 X-CRM114-Status: GOOD ( 14.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-perf-users@vger.kernel.org, mark.rutland@arm.com, will@kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add JSON metrics for imx8mp DDR Perf. Signed-off-by: Joakim Zhang --- .../arch/arm64/freescale/imx8mp/sys/ddrc.json | 37 ++ .../arm64/freescale/imx8mp/sys/metrics.json | 474 ++++++++++++++++++ 2 files changed, 511 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/ddrc.json create mode 100644 tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/metrics.json diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/ddrc.json b/tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/ddrc.json new file mode 100644 index 000000000000..f9a89efc9b24 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/ddrc.json @@ -0,0 +1,37 @@ +[ + { + "BriefDescription": "ddr cycles event", + "EventCode": "0x00", + "EventName": "imx8mp_ddr.cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "ddr read-cycles event", + "EventCode": "0x2a", + "EventName": "imx8mp_ddr.read_cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "ddr write-cycles event", + "EventCode": "0x2b", + "EventName": "imx8mp_ddr.write_cycles", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "ddr read event", + "EventCode": "0x35", + "EventName": "imx8mp_ddr.read", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "ddr write event", + "EventCode": "0x38", + "EventName": "imx8mp_ddr.write", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + } +] diff --git a/tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/metrics.json b/tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/metrics.json new file mode 100644 index 000000000000..862a45c4dbf5 --- /dev/null +++ b/tools/perf/pmu-events/arch/arm64/freescale/imx8mp/sys/metrics.json @@ -0,0 +1,474 @@ +[ + { + "BriefDescription": "bandwidth usage for lpddr4 evk board", + "MetricName": "imx8mp_bandwidth_usage.lpddr4", + "MetricExpr": "(( imx8_ddr0@axid\\-read\\,axi_mask\\=0xffff\\,axi_id\\=0x0000@ + imx8_ddr0@axid\\-write\\,axi_mask\\=0xffff\\,axi_id\\=0x0000@ ) / duration_time) / (1000 * 1000000 * 4 * 4)", + "ScaleUnit": "1e2%", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes all masters read from ddr based on read-cycles event", + "MetricName": "imx8mp_ddr_read.all", + "MetricExpr": "imx8mp_ddr.read_cycles * 4 * 4", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes all masters write to ddr based on write-cycles event", + "MetricName": "imx8mp_ddr_write.all", + "MetricExpr": "imx8mp_ddr.write_cycles * 4 * 4", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of a53 core read from ddr", + "MetricName": "imx8mp_ddr_read.a53", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0000@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of a53 core write to ddr", + "MetricName": "imx8mp_ddr_write.a53", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0000@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of supermix(m7) core read from ddr", + "MetricName": "imx8mp_ddr_read.supermix", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x000f\\,axi_id\\=0x0020@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of supermix(m7) write to ddr", + "MetricName": "imx8mp_ddr_write.supermix", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x000f\\,axi_id\\=0x0020@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of gpu 3d read from ddr", + "MetricName": "imx8mp_ddr_read.3d", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0070@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of gpu 3d write to ddr", + "MetricName": "imx8mp_ddr_write.3d", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0070@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of gpu 2d read from ddr", + "MetricName": "imx8mp_ddr_read.2d", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0071@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of gpu 2d write to ddr", + "MetricName": "imx8mp_ddr_write.2d", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0071@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display lcdif1 read from ddr", + "MetricName": "imx8mp_ddr_read.lcdif1", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0068@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display lcdif1 write to ddr", + "MetricName": "imx8mp_ddr_write.lcdif1", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0068@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display lcdif2 read from ddr", + "MetricName": "imx8mp_ddr_read.lcdif2", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0069@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display lcdif2 write to ddr", + "MetricName": "imx8mp_ddr_write.lcdif2", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0069@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isi1 read from ddr", + "MetricName": "imx8mp_ddr_read.isi1", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x006a@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isi1 write to ddr", + "MetricName": "imx8mp_ddr_write.isi1", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x006a@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isi2 read from ddr", + "MetricName": "imx8mp_ddr_read.isi2", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x006b@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isi2 write to ddr", + "MetricName": "imx8mp_ddr_write.isi2", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x006b@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isi3 read from ddr", + "MetricName": "imx8mp_ddr_read.isi3", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x006c@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isi3 write to ddr", + "MetricName": "imx8mp_ddr_write.isi3", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x006c@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isp1 read from ddr", + "MetricName": "imx8mp_ddr_read.isp1", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x006d@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isp1 write to ddr", + "MetricName": "imx8mp_ddr_write.isp1", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x006d@", + "MetricGroup": "imx8_ddr_DDR_MON", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isp2 read from ddr", + "MetricName": "imx8mp_ddr_read.isp2", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x006e@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display isp2 write to ddr", + "MetricName": "imx8mp_ddr_write.isp2", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x006e@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display dewarp read from ddr", + "MetricName": "imx8mp_ddr_read.dewarp", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x006f@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of display dewarp write to ddr", + "MetricName": "imx8mp_ddr_write.dewarp", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x006f@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of vpu1 read from ddr", + "MetricName": "imx8mp_ddr_read.vpu1", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x007c@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of vpu1 write to ddr", + "MetricName": "imx8mp_ddr_write.vpu1", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x007c@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of vpu2 read from ddr", + "MetricName": "imx8mp_ddr_read.vpu2", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x007d@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of vpu2 write to ddr", + "MetricName": "imx8mp_ddr_write.vpu2", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x007d@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of vpu3 read from ddr", + "MetricName": "imx8mp_ddr_read.vpu3", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x007e@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of vpu3 write to ddr", + "MetricName": "imx8mp_ddr_write.vpu3", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x007e@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of npu read from ddr", + "MetricName": "imx8mp_ddr_read.npu", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0073@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of npu write to ddr", + "MetricName": "imx8mp_ddr_write.npu", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0073@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hsio usb1 read from ddr", + "MetricName": "imx8mp_ddr_read.usb1", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0078@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hsio usb1 write to ddr", + "MetricName": "imx8mp_ddr_write.usb1", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0078@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hsio usb2 read from ddr", + "MetricName": "imx8mp_ddr_read.usb2", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0079@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hsio usb2 write to ddr", + "MetricName": "imx8mp_ddr_write.usb2", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0079@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hsio pci read from ddr", + "MetricName": "imx8mp_ddr_read.pci", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x007a@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hsio pci write to ddr", + "MetricName": "imx8mp_ddr_write.pci", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x007a@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hdmi_tx hrv_mwr read from ddr", + "MetricName": "imx8mp_ddr_read.hdmi_hrv_mwr", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0074@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hdmi_tx hrv_mwr write to ddr", + "MetricName": "imx8mp_ddr_write.hdmi_hrv_mwr", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0074@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hdmi_tx lcdif read from ddr", + "MetricName": "imx8mp_ddr_read.hdmi_lcdif", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0075@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hdmi_tx lcdif write to ddr", + "MetricName": "imx8mp_ddr_write.hdmi_lcdif", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0075@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hdmi_tx tx_hdcp read from ddr", + "MetricName": "imx8mp_ddr_read.hdmi_hdcp", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0076@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of hdmi_tx tx_hdcp write to ddr", + "MetricName": "imx8mp_ddr_write.hdmi_hdcp", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0076@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio dsp read from ddr", + "MetricName": "imx8mp_ddr_read.audio_dsp", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0041@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio dsp write to ddr", + "MetricName": "imx8mp_ddr_write.audio_dsp", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0041@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma2_per read from ddr", + "MetricName": "imx8mp_ddr_read.audio_sdma2_per", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0062@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma2_per write to ddr", + "MetricName": "imx8mp_ddr_write.audio_sdma2_per", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0062@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma2_burst read from ddr", + "MetricName": "imx8mp_ddr_read.audio_sdma2_burst", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0063@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma2_burst write to ddr", + "MetricName": "imx8mp_ddr_write.audio_sdma2_burst", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0063@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma3_per read from ddr", + "MetricName": "imx8mp_ddr_read.audio_sdma3_per", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0064@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma3_per write to ddr", + "MetricName": "imx8mp_ddr_write.audio_sdma3_per", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0064@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma3_burst read from ddr", + "MetricName": "imx8mp_ddr_read.audio_sdma3_burst", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0065@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma3_burst write to ddr", + "MetricName": "imx8mp_ddr_write.audio_sdma3_burst", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0065@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma_pif read from ddr", + "MetricName": "imx8mp_ddr_read.audio_sdma_pif", + "MetricExpr": "imx8_ddr0@axid\\-read\\,axi_mask\\=0x0000\\,axi_id\\=0x0066@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + }, + { + "BriefDescription": "bytes of audio sdma_pif write to ddr", + "MetricName": "imx8mp_ddr_write.audio_sdma_pif", + "MetricExpr": "imx8_ddr0@axid\\-write\\,axi_mask\\=0x0000\\,axi_id\\=0x0066@", + "ScaleUnit": "9.765625e-4KB", + "Unit": "imx8_ddr", + "Compat": "i.MX8MP" + } +]