From patchwork Fri Oct 20 12:49:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marian Mihailescu X-Patchwork-Id: 10020203 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 646DA60234 for ; Fri, 20 Oct 2017 12:50:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46F9328EA8 for ; Fri, 20 Oct 2017 12:50:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3913628ED6; Fri, 20 Oct 2017 12:50:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78EFC28EBC for ; Fri, 20 Oct 2017 12:50:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751609AbdJTMt5 (ORCPT ); Fri, 20 Oct 2017 08:49:57 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:46105 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751480AbdJTMtz (ORCPT ); Fri, 20 Oct 2017 08:49:55 -0400 Received: by mail-pf0-f195.google.com with SMTP id p87so10959319pfj.3; Fri, 20 Oct 2017 05:49:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=1pTwNyY/dcu1bpNN5kKIztZAwL5s8Xou4fzHvOMR+/M=; b=T3hmEHjh3t7u9ZL0RooCGnGt8bnQ3Q9DI/qHafvbs/ACt8uRpBQem35m/hcsBZOkYJ cNuG+P9PsZ/aGGh7w3sb2Y0H/rcfOPY3mhGIeBaNSgKGNpcMkFiGeVEJ7i/7/hC+M2pi nsXXxk4ybEhb8tQP9uKZT3SBQYAkT1m88bvlKQWbbrJDQeyeL/dSvjDYULwxBQpKpOv0 zYPFfk6rx4C+aZOAAzWqLf4K9fN+a8xZkEMsGzm4/Ry5Wknc5cOEOKmlaP6cKZ5xaHUv onJKO6MCpHxeiK1we2H3XOqFLwO1E6+WQyX+vrnV8tGiipz44mcELGOR2Ha80JYNmRMz PD+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1pTwNyY/dcu1bpNN5kKIztZAwL5s8Xou4fzHvOMR+/M=; b=R1lmgTcVlLLY9sKW+q55kDL4eEaGZg7TjiArAHukN9MwKWcNVSGH4vF7d1g3x5nE64 18nEKoGo+7e5e6Sf+a+K7Qec0wPoigvBWWYfF0qSB395l7vKGJmZmO3X0rHRsRXkmLB3 xy7irgsR90qi9aNBJag9RPJaYX5c1nOvHAuD3cISxouizmWRsxJKAHSDvI5lFgCwKPHN 8Gqy/Cp9vXr4XL6KntKyZB5f5xkEBnNuhnZgHFcnqIu61r+wmPszHIymsi/t+AJlKsmA FKkTugEhRHAEblrHsQutiwdk6OT2qpRS6+w9d9cHmLnhkyH/k/M8iTbEXHd5wRFTkILy bPRg== X-Gm-Message-State: AMCzsaXWCiyNfVmZcpX7cr7/vv9kp/MfWNcAn8ZwbX2EuI6g7CSDdkN3 H4isTvlnJvNX/TG51PYoEDE= X-Google-Smtp-Source: ABhQp+SS3lLoSxjHKAJtSwcO6vopvDHP8cdFQlL8qdYN3jlj6Qy9w2djOe5ldDHaOtaWhqYGKUaKjg== X-Received: by 10.99.181.25 with SMTP id y25mr4381985pge.270.1508503794806; Fri, 20 Oct 2017 05:49:54 -0700 (PDT) Received: from odroid.telstra.com.au ([58.175.5.73]) by smtp.gmail.com with ESMTPSA id k11sm1951910pfh.134.2017.10.20.05.49.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Oct 2017 05:49:53 -0700 (PDT) From: memeka To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, kgene@kernel.org, krzk@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marian Mihailescu , Willy Wolff Subject: [PATCH] ARM: dts: exynos: add cpu perf counters to Exynos54xx boards Date: Fri, 20 Oct 2017 23:19:34 +1030 Message-Id: <1508503774-2328-1-git-send-email-mihailescu2m@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Marian Mihailescu Enable support for ARM Performance Monitoring Units available in Cortex-A7 and Cortex-A15 CPU cores for Exynos54xx SoCs (5410, 5420 and 5422/5800). Exynos5410 currently has only Cortex-A7 nodes defined in the device tree, so the Cortex-A15 PMU is defined in the exynos5420 device tree file. Tested with perf on Odroid XU4 (Exynos5422): armv7_cortex_a7 PMU driver: 5 counters available armv7_cortex_a15 PMU driver: 7 counters available Suggested-by: Marek Szyprowski Signed-off-by: Marian Mihailescu Signed-off-by: Willy Wolff --- arch/arm/boot/dts/exynos5420.dtsi | 13 +++++++++++++ arch/arm/boot/dts/exynos54xx.dtsi | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index 02d2f89..468059e 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -695,6 +695,19 @@ iommus = <&sysmmu_jpeg1>; }; + arm-a15-pmu { + compatible = "arm,cortex-a15-pmu"; + interrupt-parent = <&combiner>; + interrupts = <1 2>, + <7 0>, + <16 6>, + <19 2>; + interrupt-affinity = <&cpu4>, + <&cpu5>, + <&cpu6>, + <&cpu7>; + }; + pmu_system_controller: system-controller@10040000 { compatible = "samsung,exynos5420-pmu", "syscon"; reg = <0x10040000 0x5000>; diff --git a/arch/arm/boot/dts/exynos54xx.dtsi b/arch/arm/boot/dts/exynos54xx.dtsi index 8ca4fef..8e007a4 100644 --- a/arch/arm/boot/dts/exynos54xx.dtsi +++ b/arch/arm/boot/dts/exynos54xx.dtsi @@ -79,6 +79,19 @@ interrupts = ; }; + arm-a7-pmu { + compatible = "arm,cortex-a7-pmu"; + interrupt-parent = <&gic>; + interrupts = , + , + , + ; + interrupt-affinity = <&cpu0>, + <&cpu1>, + <&cpu2>, + <&cpu3>; + }; + sss: sss@10830000 { compatible = "samsung,exynos4210-secss"; reg = <0x10830000 0x300>;