From patchwork Tue Feb 23 03:14:45 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: 12099835 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 583E5C433DB for ; Tue, 23 Feb 2021 03:16:12 +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 CE17960C3D for ; Tue, 23 Feb 2021 03:16:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CE17960C3D 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=WeVz2jJT8PEmXANK5Y1491ixim m4OTVYu9lxNDVrsUOtN+z5uv79nO4Y2bJNHx+uCqbqgxEhTBxxYNQDMFZvWB3z76aGzYLHBBH7G4x AxD/Lrd5lg+JmRDJSQ4xs7Ix7xd5zKqqVbGBf6Q7vMoZro1RdxvuWTuysLNApixAhFoLQUoevLPEO W5cQgnZhQ1VpljZviZ0cDvOxSy2ycwuindFPPvA9BRGtvuwrCMD64KKld5MmCdSSmUUWPnuNPmSap sH4ti0W1/hUEFUW45/bMZGJohUR4wMSpW0zgerMpNJoRv63molA32hTmqa/2kuljkt6e/8MzUFnjY JEEUpQCA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEO9o-0001ze-Uf; Tue, 23 Feb 2021 03:14:40 +0000 Received: from mail-am6eur05on2074.outbound.protection.outlook.com ([40.107.22.74] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lEO9m-0001yk-Q9 for linux-arm-kernel@lists.infradead.org; Tue, 23 Feb 2021 03:14:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q9Rpn0wOiJ20Icd5a3ohP17SIe2cV0mA9+UvgZfotK7n1QXDr+UEuM3ar8axyJMWvPx7nDGIM5q9l8j2/J6vgsFLC7G1EMvAcclKzl662oSqVAL1aOoPw04WkAWH+rzwvKmYnurDUfrYexKJI8Kv96gqtvap9hOdo7j1nvqckNDsri9KHYjWPdyFUjasswITr8025HBfrn+DdCm5oreAKCCrahli+G37Y1ORTLzm7tfcJFRrV2SwEUb3/Y5El2PCghPP8X9prEB+r6zVrX74rFEMrVNgJcrO7dmWLeJtIRfKCbmEBTSufQ0K6HdJsT8bQqXD3DkwwTZ9tYukUWBV4A== 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=iCJJm37ahieTwNjGBhC3QYypYdbOuoPqHsYELHHP9Rj1d7rvFbje+spVmfUcZ+f8KP6NUBC/Iq2tiLmGVaMSeEFWTXYiJ6Xb46Gkbg1PUTESmX+2klTRH7pFoTavXHQD0Bw2fB/c8JAmJbuRC8e4PBliIRxd6qKrKnR2jlURD8hipn80BgdAulguUcE5JY8UylSDLM1HziiIukaS8Z8Q59+Yb6QKddQ+YXBDE6gg2v4fw1FypkkgzvBgD5nXVWCaTyTgKl/h2YSFm+9O4wpVqJezgw0/eb1X3UbUKCVZXelc8TSMReYpGyZMfEItiqJIMF0tEJbhcFI9o4qvFOucAA== 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=JDtIRMyIqYZMrRzODG+4ol190CoQ8tj+70JsqDqNwNaLmx/JQ9nAxOULJtIeR+ftgKI3WERkMkF9HKucos7yy2LjqNkmxOIB0FWlSdUPx8v74bI9f5NoVTmcEpzh7/EOGJp8vzEvKn+PzU9gbGU4J/8PLLB1jrE/7+w3Cvu2XDg= 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 AM6PR04MB6453.eurprd04.prod.outlook.com (2603:10a6:20b:d9::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.30; Tue, 23 Feb 2021 03:14:33 +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:14:33 +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] arm64: dts: imx8m: add pmu node Date: Tue, 23 Feb 2021 11:14:45 +0800 Message-Id: <20210223031445.8577-1-alice.guo@oss.nxp.com> X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: SG2PR04CA0190.apcprd04.prod.outlook.com (2603:1096:4:14::28) 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 SG2PR04CA0190.apcprd04.prod.outlook.com (2603:1096:4:14::28) 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:14:30 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 84659ff7-3b2e-47c3-3ff1-08d8d7a9242e X-MS-TrafficTypeDiagnostic: AM6PR04MB6453: 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: hDhZVfLcH4W1rzBQOKu6WZB5QvmQkmsunJFPgpecmdl5XrB4iRR5FwPftUHrmMsvaZwtd20r1ovMX3S8PEy6H7RInV3zJMmFCcVWv5ET2kYR5MJmSe5UOgZ1InAoO1vPU5IwYRtjbVyn8mtzPs1bA/kgL9oLpy6AadGpR3jaw547nROYplmdCGuyHDqdztn3qx/3+p65AZmiQf4hPKPUUicW04K4cZbvxa6ZVlyLtsg/G0uCf+h2QnC7gcHvf6iYlSe5PBsNZmPhlXsmn4HahK9OK9QH+H58SsSxzEixB8GtSDWCgi9qu9aqi9/91Mk3B9uhHqIDz3kjjCYysvQQezkydENRxVA5RCrG/lQSPIak//jI4hMiPsVHVsTMPt5nZ6b6QisCfwGATx+awxV+oPZagBq86xHN91LfUHcsd0CWO6jqWhcgvKEOvJCzjjY9NpnEs8CtHUoFCv9852aNuMzTv41pWvE0IEDmDfYKcz3LcQfyD1b9n8Bgd93lnYJjnLkIiN9SMO2ov4lhOJ9eeHd1xGX71HU1+Ap/ulusZiNUWSxX4VVy5ikWt4cGi5R2 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)(136003)(376002)(366004)(346002)(396003)(39860400002)(1076003)(8936002)(4326008)(8676002)(86362001)(478600001)(6486002)(6512007)(66556008)(52116002)(2906002)(5660300002)(2616005)(66946007)(316002)(66476007)(956004)(16526019)(6506007)(186003)(6666004)(26005)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ISPd5Ngos6a8+afFygOAgC6kuRDFxLCTipcapLNWlfvY44ceob0nCANt0Al0Q6iOpqkh52blrToU+Px1TY9EnlcSq1XxsUI1TVOfBlkBq54iXxxuMz+k8XmsNqHmwN79BvzU+DaUlDzOLqBkN6xhaI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6LW9FLLr7Weq6zP1UfK96OOEtPSWkHOnim+TzEEkk4j6ng2JbWFwAyhLRSDdFAV40y6OZn+DvoKbvd3hVGrQMgEz6VBkoyI47HGVzR2Acm6Q5muu X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84659ff7-3b2e-47c3-3ff1-08d8d7a9242e 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:14:33.1109 (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: Ols9kyd1Ww0V0KMJeEJA5YrQt/p7RLWnr3/lhfjAkB1/B3xrolYdhRSMdBoN+Uh3dSPWyEKLzi/jFKXMe6pTAA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6453 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210222_221438_882869_4A650FFE X-CRM114-Status: GOOD ( 11.53 ) 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";