From patchwork Tue Feb 23 03:08:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Alice Guo (OSS)" X-Patchwork-Id: 12099833 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.7 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,URIBL_BLOCKED,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 1F4E4C433DB for ; Tue, 23 Feb 2021 03:09:23 +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 B762F64DF3 for ; Tue, 23 Feb 2021 03:09:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B762F64DF3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.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: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:In-Reply-To:References:List-Owner; bh=xQePGwuClGHgUOSskfs9fIqdNPi/zWsfyZ6pRQLDheo=; b=LrcY36NDLGt4xaEr8/QZXCsdMN Fy4GRwH/Q2ItUELhKjo7eXiJmU0Zuc1fFj+lMsHUg3i+cNX/WyCWPWqxkVwJ5TKDTBFU7ksBiN+Ot D60WsHvyxXO1lkPSTNkJ6Xp00pOmPUE2iPmQ9FMssZYaQ9C4q4xXPuEcv8b8fQBp3pTFqQH+cclzQ cGyiGv6Rt0FnRGoHuwMD/JlzZC7P1R/G46IbVRWULzhRywIiqrKNh971fJGl4xKYVppQ2cf/LAKwG wYfHchWbqei9N75a2XEuPpYITwfCrrEm1iniOAkU/4amv82dcwX2GsXUmGuCs6wK58wIyl6SgKu4e 5/Q03niw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEO3Q-0001KW-MG; Tue, 23 Feb 2021 03:08:04 +0000 Received: from mail-eopbgr70083.outbound.protection.outlook.com ([40.107.7.83] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEO3N-0001K3-0R for linux-arm-kernel@lists.infradead.org; Tue, 23 Feb 2021 03:08:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fifDFzmZVTJksJQfBGlmKOtYblpK0gxDk2rx9swSF9u5o6gS3ckTaLEYs67p1QuuvbR9sV6sBaMdR18PwgN64JPi3EhPnLmCSg0GOU3PaUh8gZIhAWE66Vdgc/PLycpkVtcVoPM4WrP/gQOP/aO2OdIe7z9p5GKWl+w+r7ltjsQ5NYTsPUG/tFjWTTdtD7xV3KsF6SJw/xaVM/ZlxN3atuTLlvbkqPAjpLLfnu8zI/oqex2f2lazt0wODTymqL6//4bjeNg+cHTssVqpkzXQvY3NgfEMVLDHfUMj0aBzoojT1kwAuQQr31ddWnZ/LkO80pB6wNZ+/PtKVJZxKhVhmg== 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=HM649bWL11klou6BsSpee10RhSO1obvR6A4QgHc1DSg=; b=RfsXT9nuWAPHvLBAtCwqZcZLcgDKkGAMytS0hOROhtGELUrFTKo+WR9Rpu+Gz77Vuh7AGFOiK1SHtLAy36bJ9S4/wVTUYTL30RijrdwvBiedd2jeykeyEQr9cxZhFqLuNTK4B1hSJyvcMkJ3fIOJ1jRVGBMOriXUCDEXPQGJ0hyoWs0twmo969rHaFP1AgbmpCzDcm4K+Y/5KkAT5Wp57Fr+syHhGFUjHJpyxiK327KwnMDLfOPlBuZACdGmghBOUa6BO/7rYxtoyxzzKqTLcXC1LcpaPBCxQD6NtTk1RbJv0M3fJIUcICZR7lujRcGeoVvTdMJEVleFY61jlutL1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HM649bWL11klou6BsSpee10RhSO1obvR6A4QgHc1DSg=; b=RXslWn0/Jr5xoBUe+sbIIE8poJAxTQu0VtYN9eIhqhoUND5su3QmXyqvRfl+L005qS6h0J6ITZWy4uvnW5ePk3bAefyMSWUeiYm6HRpPSFFAeatSNl4/qBUlxhLwCVGB3y5d2Z0qze+ykbhIzKydS4VCUWEsenj2tL6YRnJhuzY= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) by AM6PR04MB4696.eurprd04.prod.outlook.com (2603:10a6:20b:10::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.29; Tue, 23 Feb 2021 03:07:56 +0000 Received: from AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::394e:4132:3afd:7d94]) by AM6PR04MB6053.eurprd04.prod.outlook.com ([fe80::394e:4132:3afd:7d94%3]) with mapi id 15.20.3868.032; Tue, 23 Feb 2021 03:07:56 +0000 From: "Alice Guo (OSS)" To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com Subject: [PATCH v1] LF-3434: arm64: dts: imx8m: add pmu node Date: Tue, 23 Feb 2021 11:08:15 +0800 Message-Id: <20210223030815.8056-1-alice.guo@oss.nxp.com> X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SGBP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::32) To AM6PR04MB6053.eurprd04.prod.outlook.com (2603:10a6:20b:b9::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from nxf55104-OptiPlex-7060.ap.freescale.net (119.31.174.71) by SGBP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.27 via Frontend Transport; Tue, 23 Feb 2021 03:07:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d5ea37d5-6e37-4322-dd16-08d8d7a837af X-MS-TrafficTypeDiagnostic: AM6PR04MB4696: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1443; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yvZsvY+hL/O1O/dOR8423m/ExQqfu/AMGyTVkg35KVElwRktkKgbWDNvYapxP/R0AieJbwabKqOqS02RQ6axdm1EPHI/Zn+1DW0sTpxvITFriVpX3q54B7EEcpWhBCYrejwMgv8oH0dfMNRdvuOshpHaWIBOpKE73VF6LGTqKpTP8jH6bOuKlz7HlpdwKyi2FQUIW57QudRcuHWqHErjTrsa9rBcMY5A8bk+AFbZWHd6aeCaWseKip3g6XaMcaS5XdnBw6gQ/uRh/J1onlEpUajoVEX0PpKgLoV2+TjsjnahUPMZ2xM7RiEwhtoXOyyMv4I+Ns831FX9dFJYWcfQbbcyRitCegGQxXrqJJmI+QA5nLozu/16CdfWTffcMfCspXz9pj0y/nvcXe23cHdTw1WQsi4PYI+OXX7OHarrZ6S9CxHQUAkDGLaD5IEKx/0+2FygoetG/B39zX1r0ADKV5j8AKp7b+Gz9VtMM+64P51DfVDp6BcRz2+82XLnizkz3xk68hT9w4Mo3w2rSMiSGy8ponnLCgl+8vKcz7Z1ZlHtS1Ef8lniQgBtFex2hBB3 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB6053.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(39860400002)(136003)(346002)(396003)(366004)(316002)(6486002)(6512007)(2906002)(66476007)(66946007)(2616005)(26005)(478600001)(5660300002)(52116002)(86362001)(6666004)(66556008)(956004)(1076003)(186003)(16526019)(6506007)(8936002)(8676002)(4326008)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 7vfZQ5COit5TZQ6uhfjT/Akng/aE7+7tayZwDrdsjpeMdr5A8dN5ggsnpnNejoDBcu6QYUrtSc9svQG2fhHAzcLoADXqz0/v2HNqF9q1DyVXuS9uIzY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p3opKdmG7C3ucpeX9+3ZOgib80kAcn2yg9YhTbQvuqPoPt+BT/rTe4pMl8SmG6DvbkuJ8pz3OytQGzhrb6AC+YFGWwlb2snKxmRVycKqVyIa4O3fUIOFvJRHQUq5eQk6GGUvbVlEQMYYQxjQfznr912a9zytrhv X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5ea37d5-6e37-4322-dd16-08d8d7a837af X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6053.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2021 03:07:56.3963 (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: NAE3CjcYEywFDzJ6sYmnhUYwz0dbpQUIXlC00XsXPXkiSjFB4w9G/JX9o8UlAlTbvlNTfyHxbgBcBINIhqAI9w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4696 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210222_220801_201631_01F8708A X-CRM114-Status: GOOD ( 11.44 ) 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: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, 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 From: Alice Guo Adding pmu node supports to use perf tool to monitor the CPU performance of the inmate cell when enabling Jailhouse and running dual Linux OS. Signed-off-by: Alice Guo --- arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts | 7 +++++++ arch/arm64/boot/dts/freescale/imx8mn-evk-inmate.dts | 8 ++++++++ arch/arm64/boot/dts/freescale/imx8mp-evk-inmate.dts | 8 ++++++++ arch/arm64/boot/dts/freescale/imx8mq-evk-inmate.dts | 7 +++++++ 4 files changed, 30 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts index fe9d96131045..6afccc2c140e 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk-inmate.dts @@ -48,6 +48,13 @@ }; }; + pmu { + compatible = "arm,armv8-pmuv3"; + interrupts = ; + interrupt-affinity = <&A53_2>, <&A53_3>; + }; + psci { compatible = "arm,psci-1.0"; method = "smc"; diff --git a/arch/arm64/boot/dts/freescale/imx8mn-evk-inmate.dts b/arch/arm64/boot/dts/freescale/imx8mn-evk-inmate.dts index 584c1fa19f56..f2434ad369dc 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-evk-inmate.dts +++ b/arch/arm64/boot/dts/freescale/imx8mn-evk-inmate.dts @@ -48,6 +48,14 @@ }; }; + pmu { + compatible = "arm,armv8-pmuv3"; + interrupt-parent = <&gic>; + interrupts = ; + interrupt-affinity = <&A53_2>, <&A53_3>; + }; + psci { compatible = "arm,psci-1.0"; method = "smc"; diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-inmate.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk-inmate.dts index 277ef70f2903..be538f510340 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-evk-inmate.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-inmate.dts @@ -48,6 +48,14 @@ }; }; + pmu { + compatible = "arm,armv8-pmuv3"; + interrupt-parent = <&gic>; + interrupts = ; + interrupt-affinity = <&A53_2>, <&A53_3>; + }; + psci { compatible = "arm,psci-1.0"; method = "smc"; diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk-inmate.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk-inmate.dts index b1db63cdb98c..57e0ab2bf4d3 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-evk-inmate.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-evk-inmate.dts @@ -48,6 +48,13 @@ }; }; + pmu { + compatible = "arm,cortex-a53-pmu"; + interrupts = ; + interrupt-parent = <&gic>; + interrupt-affinity = <&A53_2>, <&A53_3>; + }; + psci { compatible = "arm,psci-1.0"; method = "smc";