From patchwork Thu Nov 23 14:34:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 119522 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp895119qgn; Thu, 23 Nov 2017 06:34:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMYzLmbNHyJO+T6qWvF+wBLCPz0EHt3yVO2Fe+w5cgH1qCZ0FFNwy+YygtUWvR9yb+KFPItC X-Received: by 10.98.215.90 with SMTP id v26mr18340946pfl.174.1511447694044; Thu, 23 Nov 2017 06:34:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511447694; cv=none; d=google.com; s=arc-20160816; b=eD2fQAyO11OSTJEJnqd1O1vorDY6osO8jGhQu5E+txMFeFxLPa+kazl6tN1rpEdM/9 xWvDlyZsp8fJ18OYRUdlQUcFMsboa8M9wK9T/ZBUojO1DNsjHjWn0n6wjVqeZU+vTv2R X0plU9QpPlONcdJC1RbFcTq5kY+Ea2SDTLDVWREQ43J2x7fpS04KOCTlKhHmxujMkypa 3loGPvA04fGvbwqM7VFDC0EQSWpu3yULo4wgU7HJtgmt9v3BGfFYfTwzINWigg7ImW2W cgpMZ8vkpykosuPvOcX0/J6hboywpTY06Lk5jVcntsKQYosfQDQ6F2900WsMmdNmJqNu EKGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=nkIsq7kJTgVCprk5yizYQ1ckCzIxYX+pp3aG1nUSB2s=; b=Cx1qPquXTFjgO27EKfq7A2Sajw/e2rGv+2+U6u7c2HUl6MrvF2In94ThQqaDksKU/e kE4xqDkXHUJnW+WSJPfULdwlGMflfGHz9SK+48HsCtyAsL7HS/g2SwCDsjhSUDCxVkNB kupNn0CwcoCmFsJPbLXexqf4RBQbQXPx+ZmTAqZngcCzV7aWSsSP+j/w1jSflCCbr1n/ /06kK57nzbWq+IPCyIwRofB/Oj3+IOj82hDCLR4kBUZiiPkKXWA409ebMZNKg1r6/R+q YM3FZTrUS0CQGN3qtBj9eKG7CtEZjoaOfZCaxGPghDrJBm0yojOU65p2u2aCHZMsXuJI SLhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=Isgxh6nf; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b25si10293034pgn.405.2017.11.23.06.34.53; Thu, 23 Nov 2017 06:34:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=Isgxh6nf; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751816AbdKWOex (ORCPT + 3 others); Thu, 23 Nov 2017 09:34:53 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:49747 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752691AbdKWOev (ORCPT ); Thu, 23 Nov 2017 09:34:51 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20171123143447euoutp02ce65c0b604ec054096213d1d224c85e4~5vanmvZPo0080400804euoutp02C; Thu, 23 Nov 2017 14:34:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20171123143447euoutp02ce65c0b604ec054096213d1d224c85e4~5vanmvZPo0080400804euoutp02C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1511447687; bh=oWsKPxE+rY1m9MKo6z2Boyj/0XY0TIlNZ0TpCND0P8o=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=Isgxh6nf1aQ65KNXqpeYubg47YK8WJPP7GmJpEb7YuVV2EYryWQfCRVOgdD1rGpm6 WLkiEt+QaiFG012FcxgZLeCk5lN0Rzx2OqjRhhMXO7G9xVzmUt35xLF4YSNN4IHDJw /a+iB+rJ9U+1/hDFBqzF70kQr7KrSVXWaEBkVozI= Received: from eusmges1.samsung.com (unknown [203.254.199.239]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171123143446eucas1p2dd26aaf679e427b49990ab933093f61f~5vam2A8n42850928509eucas1p2q; Thu, 23 Nov 2017 14:34:46 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1.samsung.com (EUCPMTA) with SMTP id EA.5E.12576.68CD61A5; Thu, 23 Nov 2017 14:34:46 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171123143445eucas1p211f591cae7ad5121f5b5e19ede898db7~5vamHA28M0877108771eucas1p28; Thu, 23 Nov 2017 14:34:45 +0000 (GMT) X-AuditID: cbfec7ef-f79ee6d000003120-ae-5a16dc86b9a3 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 9F.BE.20118.58CD61A5; Thu, 23 Nov 2017 14:34:45 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OZV0016QKHTT010@eusync1.samsung.com>; Thu, 23 Nov 2017 14:34:45 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Marian Mihailescu Subject: [PATCH 1/3] ARM: dts: exynos: Add CPU performance counters to Exynos4 boards Date: Thu, 23 Nov 2017 15:34:29 +0100 Message-id: <20171123143431.12434-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20171123143431.12434-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNIsWRmVeSWpSXmKPExsWy7djPc7ptd8SiDBbuFLLYOGM9q8X58xvY LWac38dksfbIXXaL9dN+sjqweuycdZfdY9OqTjaPvi2rGD0+b5ILYInisklJzcksSy3St0vg yuhaepGx4CNnxYezX9kaGPs5uhg5OSQETCQ6jjYwQthiEhfurWfrYuTiEBJYxijRef0VG0hC SOAzo8TMTypdjBxgDX3TfOBq7vxvY4WoaWCSaJ4VBWKzCRhKdL3tAusVEVCV+Ny2gB2kgVlg D6PE5dcHwRLCAuESCy5+YAKxWYCKnj7oZANZwCtgK3Fztw7EQfIS7xfcZwQJcwrYSbz5ogky RkLgJ6vEnmsnoI52kbj07i0bhC0s8er4FnYIW0bi8uRuFgi7n1GiqVUbwp7BKHHuLS+EbS1x +PhFsPuZBfgkJm2bzgzxI69ER5sQRImHRMuHPqhVjhKHTzawQPw+kVHi57cpjBMYpRcwMqxi FEktLc5NTy021CtOzC0uzUvXS87P3cQIjMLT/46/38H4tDnkEKMAB6MSDy/DfNEoIdbEsuLK 3EOMEhzMSiK84u1iUUK8KYmVValF+fFFpTmpxYcYpTlYlMR5baPaIoUE0hNLUrNTUwtSi2Cy TBycUg2M6dtCyx7WFslEML/Zr7bwJ/8KyV8TpqitVzRa9F/NQS+un2frlH8Pk96uavsU8qhg g+IZd/YZRyOvM3hGXPz6K9LVMijoa6r7p/lPlxa3SrzprxResGlfrbHKeT1174Nt+0z/3dLd o7T0oeFUqfjDO+5uPjU14stZ1e9zbkfdyZ6S+DzpIHPZPiWW4oxEQy3mouJEAEkcdLu+AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpiluLIzCtJLcpLzFFi42I5/e/4Zd3WO2JRBu1vdS02zljPanH+/AZ2 ixnn9zFZrD1yl91i/bSfrA6sHjtn3WX32LSqk82jb8sqRo/Pm+QCWKK4bFJSczLLUov07RK4 MrqWXmQs+MhZ8eHsV7YGxn6OLkYODgkBE4m+aT5djJxAppjEhXvr2boYuTiEBJYwShxfN40d wmlikmh4eIYVpIpNwFCi620XG4gtIqAq8bltAVgRs8A+Ron7W3YwgSSEBcIl1m5ZxA5iswAV PX3QyQayjVfAVuLmbh2IbfIS7xfcZwQJcwrYSbz5ogkSFgKq6DxynmkCI+8CRoZVjCKppcW5 6bnFRnrFibnFpXnpesn5uZsYgSGz7djPLTsYu94FH2IU4GBU4uFlmC8aJcSaWFZcmXuIUYKD WUmEV7xdLEqINyWxsiq1KD++qDQntfgQozQHi5I4b++e1ZFCAumJJanZqakFqUUwWSYOTqkG xrV2aw1cT54MN9J0sJb/vuvN3sdx54Ivi/3XCWS+eqX3gMX5+5tSAvgOX7m+psSn5eRyj2vv nBy/GK/hcnJTPDvZR3PP8cmK1WoJ81h0ePZuVS+2/mOWky/zeIn8oq1VlXJBC59eFGHkqfEI SVfdceOFA6s4m4Kcbseuz6tq1/F4WbA9ZW/sUmIpzkg01GIuKk4EADIXWukVAgAA X-CMS-MailID: 20171123143445eucas1p211f591cae7ad5121f5b5e19ede898db7 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171123143445eucas1p211f591cae7ad5121f5b5e19ede898db7 X-RootMTR: 20171123143445eucas1p211f591cae7ad5121f5b5e19ede898db7 References: <20171123143431.12434-1-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Enable support for ARM Performance Monitoring Units available in Cortex-A9 CPU cores for Exynos4 SoCs (4210 and 4412). Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos4210.dtsi | 6 ++++++ arch/arm/boot/dts/exynos4412.dtsi | 6 ++++++ 2 files changed, 12 insertions(+) -- 2.14.2 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/exynos4210.dtsi b/arch/arm/boot/dts/exynos4210.dtsi index 03dd61f64809..522f3a7ed07f 100644 --- a/arch/arm/boot/dts/exynos4210.dtsi +++ b/arch/arm/boot/dts/exynos4210.dtsi @@ -64,6 +64,12 @@ }; }; + arm_pmu { + compatible = "arm,cortex-a9-pmu"; + interrupt-parent = <&combiner>; + interrupts = <2 2>, <3 2>; + }; + sysram: sysram@2020000 { compatible = "mmio-sram"; reg = <0x02020000 0x20000>; diff --git a/arch/arm/boot/dts/exynos4412.dtsi b/arch/arm/boot/dts/exynos4412.dtsi index b255ac55b1c1..468c2795481c 100644 --- a/arch/arm/boot/dts/exynos4412.dtsi +++ b/arch/arm/boot/dts/exynos4412.dtsi @@ -150,6 +150,12 @@ }; }; + arm_pmu { + compatible = "arm,cortex-a9-pmu"; + interrupt-parent = <&combiner>; + interrupts = <2 2>, <3 2>, <18 2>, <19 2>; + }; + sysram@2020000 { compatible = "mmio-sram"; reg = <0x02020000 0x40000>; From patchwork Thu Nov 23 14:34:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 119521 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp895113qgn; Thu, 23 Nov 2017 06:34:53 -0800 (PST) X-Google-Smtp-Source: AGs4zMYsaF6IXwv38uJcImS+89rUGifUYssdGR3eETlCyEOrbKRyMDawcBXbKk3AkbfXkNbOnv7O X-Received: by 10.98.109.65 with SMTP id i62mr6532080pfc.139.1511447693636; Thu, 23 Nov 2017 06:34:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511447693; cv=none; d=google.com; s=arc-20160816; b=dHxTH41cf4jV47GWP3ru4gFM40ycNNnWz2tSVseGUQ5QuKHBhyqs9movzWXhzfay6Y q1WfSmhU/nq+YYPnQZc6VhR8+rnuBz01Mm6jCU2PRUsAjNlgv/T7aUTHRLXsnbaolgeK 2S9MOeU6Zx+5isWMXO1KFoXKVszZOWSIPSAqElq8bUcFQJrwIALqNYHiAEs7VDTONnPt 2m1BUM66WpgPBeVeLTIuOd+mPgWEtDTqOyJvNEUx2h9Dyor04ALH2xSAuDuc7cpERKQZ J0wOgm2oapPmoi/sZcLZhyXh6RrD8Xaci77HJE3QG7GjGRZj9+aD3hP7au6lQkazAskv TiNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=00Hu7VYo28sCjJR/322drrYoOB3pGOCypkFsfNZ8k1A=; b=rPBj3BjSdipeZuXYsOGs4dUNDPFlcz75lXAgpM7q5opaijNtk8CwNWkT5fK/92Gexw Ltwf1fRxgvlD/uENNGdegMNzNd7YEENuM1tO23ssVhOcQxKCWlFKWoRoM66pqk43hoXm FKl+mnjuRgUzUdw1Iyx/dcuudtVwUbTAmgZ9JBbeeK329lgmYpzvQRf/OFyb0GzXg/vz XgbEdBhMELq7AYE7Jc6mgaNIDyZIta5X16/mLUbqwm/gLuKUAmsmNkmD+rB+2EoQxPIA 1reXWYcnk6lgQco8qTTJtr2AvGOriVnRHbPu3SE9b7PE4V/ehzc/XqvaQT0ekgWgLQWG nLKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=G57303PM; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b25si10293034pgn.405.2017.11.23.06.34.53; Thu, 23 Nov 2017 06:34:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=G57303PM; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752699AbdKWOew (ORCPT + 3 others); Thu, 23 Nov 2017 09:34:52 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:49749 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752248AbdKWOev (ORCPT ); Thu, 23 Nov 2017 09:34:51 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20171123143447euoutp02a543eebef00bf961cc29b111b09b8ffe~5vaoEy6qb3195731957euoutp02Y; Thu, 23 Nov 2017 14:34:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20171123143447euoutp02a543eebef00bf961cc29b111b09b8ffe~5vaoEy6qb3195731957euoutp02Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1511447687; bh=i6ULlnysgykByEbqwuDr/OKf9d0KKWHozKkdEFb6dfg=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=G57303PMVRf+u7MygNhNNBEtAYgXqabrKYmPhQEnCi5bxNgfhYj09rZkeBQxGyvGq HbNArPM/toEWkGalfjKwWIp3DhfxmMyKtdcfE3WBet4GC/93ZLGXivNsthnDe3bNcF 5CwgOrnSeWcDuacN7M3dHQYKlJNDZSn/Oetrw3RE= Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171123143447eucas1p19cc739d52cbb0f3f3b3eeb41c6ac6a3c~5vanYqEhY2904229042eucas1p1-; Thu, 23 Nov 2017 14:34:47 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2.samsung.com (EUCPMTA) with SMTP id F5.D7.12907.68CD61A5; Thu, 23 Nov 2017 14:34:46 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171123143446eucas1p227bdf3a407f4cbbe9cd5bd95d3817972~5vamanBNb0877708777eucas1p2-; Thu, 23 Nov 2017 14:34:46 +0000 (GMT) X-AuditID: cbfec7f1-f793a6d00000326b-ed-5a16dc860f99 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 40.CE.20118.68CD61A5; Thu, 23 Nov 2017 14:34:46 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OZV0016QKHTT010@eusync1.samsung.com>; Thu, 23 Nov 2017 14:34:46 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Marian Mihailescu , Willy Wolff Subject: [PATCH 2/3] ARM: dts: exynos: Add CPU perf counters to Exynos54xx boards Date: Thu, 23 Nov 2017 15:34:30 +0100 Message-id: <20171123143431.12434-3-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20171123143431.12434-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsWy7djP87ptd8SiDN4cNrXYOGM9q8X58xvY LWac38dksfbIXXaL9dN+slrMbP3G4sDmsXPWXXaPTas62Tz6tqxi9Pi8SS6AJYrLJiU1J7Ms tUjfLoErY9KWn8wFm6Uq2vZvYm9gvCvaxcjJISFgIrHn4C0mCFtM4sK99WwgtpDAUkaJS7s0 uhi5gOzPjBLTns1hgmk4MKONGSKxjFHiyPbnjBBOA5NE04NZrCBVbAKGEl1vu8BGiQioSnxu W8AOUsQs8IxR4uukM2AJYYFgibPP97KD2CxARe9vnwOzeQVsJT6u/8IMsU5e4v2C+0AbODg4 Bewk3nzRBJkjIfCXVeLC5nlQNS4Sb/++Z4WwhSVeHd/CDmHLSFye3M0CYfczSjS1akPYMxgl zr3lhbCtJQ4fvwjWyyzAJzFp23RmkF0SArwSHW1CECUeEuvndUKNcZT4tXwuE8TDExklXt86 yzqBUXoBI8MqRpHU0uLc9NRiI73ixNzi0rx0veT83E2MwKg8/e/4xx2M709YHWIU4GBU4uFl mC8aJcSaWFZcmXuIUYKDWUmEV7xdLEqINyWxsiq1KD++qDQntfgQozQHi5I4r21UW6SQQHpi SWp2ampBahFMlomDU6qB0XG2esfTNTe2PTmfohqhFCTlP/t6/zVfLQ+HTJYOcZb6O89m9xYL bmqTkBX4cfhKn861k70flJp6vok9T33xenVQbUTHaSOhXKvI6Y3ztptdn2QnG1H1enbD3Ttb RJdO1y/YfVzoXFrOkz+XZ3Dsvbm17voL1o06Jf+UN535OvXcrp3K50T7fJVYijMSDbWYi4oT AYwBwvXGAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgluLIzCtJLcpLzFFi42I5/e/4Zd22O2JRBnc/sFhsnLGe1eL8+Q3s FjPO72OyWHvkLrvF+mk/WS1mtn5jcWDz2DnrLrvHplWdbB59W1YxenzeJBfAEsVlk5Kak1mW WqRvl8CVMWnLT+aCzVIVbfs3sTcw3hXtYuTkkBAwkTgwo40ZwhaTuHBvPVsXIxeHkMASRokD a/9AOU1MEl0nX4JVsQkYSnS97WIDsUUEVCU+ty1gB7GZBV4wSpw9EQJiCwsES5x9vhcszgJU 8/72OTCbV8BW4uP6L1Db5CXeL7jP2MXIwcEpYCfx5osmSFgIqKTzyHmmCYy8CxgZVjGKpJYW 56bnFhvpFSfmFpfmpesl5+duYgSGz7ZjP7fsYOx6F3yIUYCDUYmHl2G+aJQQa2JZcWXuIUYJ DmYlEV7xdrEoId6UxMqq1KL8+KLSnNTiQ4zSHCxK4ry9e1ZHCgmkJ5akZqemFqQWwWSZODil Ghibd81rfO0RPeNx1yKld8FPEyq4W0oESgrVxeRdqnZwNF44WOIxb3oH3zq/l9OOsW+/4ZHg MZVd6MOT2VLHDieXpd2/9idE+OA949Y5fPUJk418nHhiCtiij0QqO8uqMH9Ic/rz5qdZRPbC dVt8k9+rbxM5s0mo883EbN2wWWGzbzD93OWQp6XEUpyRaKjFXFScCACzENeJGwIAAA== X-CMS-MailID: 20171123143446eucas1p227bdf3a407f4cbbe9cd5bd95d3817972 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171123143446eucas1p227bdf3a407f4cbbe9cd5bd95d3817972 X-RootMTR: 20171123143446eucas1p227bdf3a407f4cbbe9cd5bd95d3817972 References: <20171123143431.12434-1-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org 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). The PMUs interrupts are defined in the common exynos54xx.dtsi device tree, but the PMUs are enabled and have their interrupt CPU affinity defined next to each SoC's cpus node. 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 [mszyprow: reordered nodes according to krzk request, fixed typos] Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos5410.dtsi | 5 +++++ arch/arm/boot/dts/exynos5420-cpus.dtsi | 10 ++++++++++ arch/arm/boot/dts/exynos5422-cpus.dtsi | 10 ++++++++++ arch/arm/boot/dts/exynos54xx.dtsi | 20 ++++++++++++++++++++ 4 files changed, 45 insertions(+) -- 2.14.2 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/exynos5410.dtsi b/arch/arm/boot/dts/exynos5410.dtsi index 06713ec86f0d..c4dbc689e5cb 100644 --- a/arch/arm/boot/dts/exynos5410.dtsi +++ b/arch/arm/boot/dts/exynos5410.dtsi @@ -264,6 +264,11 @@ }; }; +&arm_a15_pmu { + interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; + status = "okay"; +}; + &i2c_0 { clocks = <&clock CLK_I2C0>; clock-names = "i2c"; diff --git a/arch/arm/boot/dts/exynos5420-cpus.dtsi b/arch/arm/boot/dts/exynos5420-cpus.dtsi index d7d703aa1699..4ee2f9718e8a 100644 --- a/arch/arm/boot/dts/exynos5420-cpus.dtsi +++ b/arch/arm/boot/dts/exynos5420-cpus.dtsi @@ -132,3 +132,13 @@ }; }; }; + +&arm_a7_pmu { + interrupt-affinity = <&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>; + status = "okay"; +}; + +&arm_a15_pmu { + interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; + status = "okay"; +}; diff --git a/arch/arm/boot/dts/exynos5422-cpus.dtsi b/arch/arm/boot/dts/exynos5422-cpus.dtsi index ec01d8020c2d..73fb37d5042d 100644 --- a/arch/arm/boot/dts/exynos5422-cpus.dtsi +++ b/arch/arm/boot/dts/exynos5422-cpus.dtsi @@ -131,3 +131,13 @@ }; }; }; + +&arm_a7_pmu { + interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; + status = "okay"; +}; + +&arm_a15_pmu { + interrupt-affinity = <&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>; + status = "okay"; +}; diff --git a/arch/arm/boot/dts/exynos54xx.dtsi b/arch/arm/boot/dts/exynos54xx.dtsi index a5007f182bc4..02a25efebfcf 100644 --- a/arch/arm/boot/dts/exynos54xx.dtsi +++ b/arch/arm/boot/dts/exynos54xx.dtsi @@ -29,6 +29,26 @@ }; soc: soc { + arm_a7_pmu: arm-a7-pmu { + compatible = "arm,cortex-a7-pmu"; + interrupt-parent = <&gic>; + interrupts = , + , + , + ; + status = "disabled"; + }; + + arm_a15_pmu: arm-a15-pmu { + compatible = "arm,cortex-a15-pmu"; + interrupt-parent = <&combiner>; + interrupts = <1 2>, + <7 0>, + <16 6>, + <19 2>; + status = "disabled"; + }; + sysram@2020000 { compatible = "mmio-sram"; reg = <0x02020000 0x54000>; From patchwork Thu Nov 23 14:34:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 119519 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp895085qgn; Thu, 23 Nov 2017 06:34:52 -0800 (PST) X-Google-Smtp-Source: AGs4zMYTED8ACROvVZHVyNfD9gy/+gF0TOHNhkDqfoCI8F/mkNA0i+ccNCMhuxnYPprYov/E7o1R X-Received: by 10.84.240.74 with SMTP id h10mr25148162plt.109.1511447692012; Thu, 23 Nov 2017 06:34:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511447692; cv=none; d=google.com; s=arc-20160816; b=uigY8tyawP8FappCNy+pxayvNyKRk04KMK0BeIDeRB0DQcG+hu1HcRTvLsegBhQ2RH SXDaGgqYEnuUw1n2JThr7KkIgvkI0h1l5vKq7Uxqkn0ExdLquJCShx7yeWnwd/STyxY3 kdk2xUEXMqawtExRELLB8h/vZXMofNku3FH5G5e0X3pde9/FWWeRxasxBpIw3JbD+wCZ V/2Kc3MZ42K9eL1DATAAt841GqCY+9QIwR2/Xhq4Kt2Q7nTBseumWqjx5hFxiYhHjliL FXKyowGS2a1diM0tw9OmGJ+7dDRgVnUJsQQVHDfsv1k6knSjMb8L9Im+RcV9946LxOv0 eCWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=ZygjdxV4y4AodmpiQPW/gEerh3ERvTCESfBdD6PkoxM=; b=KD3z3Hd5GxIGOZaNzA9TCFgMR9wP7Y9EYF9Ok5dKQ07qDH1D85JVfmFPq+5+QF5X5E PXg5S9OMsplbsKdn6ZORCGlALvIkiYabYPIsxK3bQAEQ4QPa9Nt7G9vN633/CTKZmekk pNW2BqdQWGL7CiyU/ACfg7oJPoo73m4a7anF+7rpjYgG8F82/C/2V3rdxeE2425bRkhC R6i1wlvxWjmWEqCrXnIx1e58ze8qdTXF2AdPz00bk8LPFvJosB/K4AkKLoo9Jg4tssYM a3MNHmSHPiyo2aRSmYYKNMA0IpsAviwIlGP6JFjOQwIYUJKlGqaMXbk0vY395N/nijiX gfeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=cs1ajAPr; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b25si10293034pgn.405.2017.11.23.06.34.51; Thu, 23 Nov 2017 06:34:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=cs1ajAPr; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752715AbdKWOev (ORCPT + 3 others); Thu, 23 Nov 2017 09:34:51 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:52825 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751816AbdKWOeu (ORCPT ); Thu, 23 Nov 2017 09:34:50 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20171123143447euoutp017e03d256033a778f9475485ce47eb83b~5vaoLJxMg0329003290euoutp01D; Thu, 23 Nov 2017 14:34:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20171123143447euoutp017e03d256033a778f9475485ce47eb83b~5vaoLJxMg0329003290euoutp01D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1511447688; bh=14P7Ug6N3/lxrqrjUQH0vd9Vs4seuLuPOp7Pjn0UNQI=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=cs1ajAPrmT6w/pddPvZuMkYzu5JOkpojfvqM4ru2cpn7aff4RIUe8zbiVIBrLmFxF c4/Ge6Gm7FWL5YVciAFjuuwgO7+Qv+X1Ypu4DHCLI8MMiQppK5w1rD4+7huJNjgswZ W+bDnndi4n21motYxPkcyeC4PSkL3xxanhdW9xEc= Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171123143447eucas1p195af3727558f5229e1f33d3ca76e80bd~5vanbBt-G0634706347eucas1p1X; Thu, 23 Nov 2017 14:34:47 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges5.samsung.com (EUCPMTA) with SMTP id 9A.BE.12743.68CD61A5; Thu, 23 Nov 2017 14:34:46 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20171123143446eucas1p1cf930dedd38c700671b27c845c4969ba~5vamt7Nyv2624126241eucas1p1j; Thu, 23 Nov 2017 14:34:46 +0000 (GMT) X-AuditID: cbfec7f5-f79d06d0000031c7-61-5a16dc86e661 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 8B.DF.18832.68CD61A5; Thu, 23 Nov 2017 14:34:46 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OZV0016QKHTT010@eusync1.samsung.com>; Thu, 23 Nov 2017 14:34:46 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Marian Mihailescu Subject: [PATCH 3/3] ARM64: dts: exynos: Add CPU performance counters to Exynos5433 boards Date: Thu, 23 Nov 2017 15:34:31 +0100 Message-id: <20171123143431.12434-4-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20171123143431.12434-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLIsWRmVeSWpSXmKPExsWy7djP87ptd8SiDOZ2WVhsnLGe1eL8+Q3s FjPO72OyWHvkLrvF+mk/WR1YPXbOusvusWlVJ5tH35ZVjB6fN8kFsERx2aSk5mSWpRbp2yVw ZTT9uc5W0MZdsXnLaaYGxt8cXYycHBICJhLzni9jhrDFJC7cW88GYgsJLGWUmDHJv4uRC8j+ zCjRs3oaE0zDta/dLBCJZYwSB/veM0M4DUwSTQ9msYJUsQkYSnS97QIbJSKgKvG5bQE7SBGz wB5GicuvD4IlhAViJJ40QNgsQEUPLr8Da+YVsJW4PucoG8Q6eYn3C+4zdjFycHAK2Em8+aIJ MkdC4C+rxM01a1ghalwkzk1eA1UvLPHq+BZ2CFtGorPjINTZ/YwSTa3aEPYMRolzb3khbGuJ w8cvgs1hFuCTmLRtOjPILgkBXomONiGIEg+JVyd/QI1xlHj2YSIzJIgmMkq8eVs8gVF6ASPD KkaR1NLi3PTUYlO94sTc4tK8dL3k/NxNjMBIPP3v+NcdjEuPWR1iFOBgVOLh7UgUixJiTSwr rsw9xCjBwawkwiveDhTiTUmsrEotyo8vKs1JLT7EKM3BoiTOaxvVFikkkJ5YkpqdmlqQWgST ZeLglGpg3L+/W7M7ebucoOfJQx1txz3/ZFatfxPt4lfWUPBSImyzzaF9vAuluF8V3ozlFp/z KvSLx4UtwT2rWT+wq6isMTbjDXYNV1v69+rJwDu/RB/quMost+I10e2zOZmyoGPdvsuf9Pdc nNbtb3Jw1TozxbtFG0MU5KViLpyx3CYvcbN+WcLUn2cqlFiKMxINtZiLihMBgBOmrcACAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphluLIzCtJLcpLzFFi42I5/e/4Zd22O2JRBlcbJS02zljPanH+/AZ2 ixnn9zFZrD1yl91i/bSfrA6sHjtn3WX32LSqk82jb8sqRo/Pm+QCWKK4bFJSczLLUov07RK4 Mpr+XGcraOOu2LzlNFMD42+OLkZODgkBE4lrX7tZIGwxiQv31rN1MXJxCAksYZR4tW0eM4TT xCTRdfIlM0gVm4ChRNfbLjYQW0RAVeJz2wJ2kCJmgX2MEve37GACSQgLxEg8aTgIVsQCVPTg 8jtWEJtXwFbi+pyjbBDr5CXeL7jP2MXIwcEpYCfx5osmSFgIqKTzyHmmCYy8CxgZVjGKpJYW 56bnFhvqFSfmFpfmpesl5+duYgSGzbZjPzfvYLy0MfgQowAHoxIPL8N80Sgh1sSy4srcQ4wS HMxKIrzi7WJRQrwpiZVVqUX58UWlOanFhxilOViUxHl796yOFBJITyxJzU5NLUgtgskycXBK NTDOVZoqtqSornDnYe+pXK2qSyYe3sppcO2uakxKzoJKPvYo1j/9zzPSNwnET5WzYdr59HVx 1wenuc9Y2m4ruZ4RCJ4U9lZl6+dl3w856kpU3kj+u/T/lA2/99RxMlxV2JV9OfprRrz6tqvs rL3fs9j2vLyQFpd8dF+InQTrpWXSfY+TeU2D5i1UYinOSDTUYi4qTgQAW2I+6BcCAAA= X-CMS-MailID: 20171123143446eucas1p1cf930dedd38c700671b27c845c4969ba X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20171123143446eucas1p1cf930dedd38c700671b27c845c4969ba X-RootMTR: 20171123143446eucas1p1cf930dedd38c700671b27c845c4969ba References: <20171123143431.12434-1-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Enable support for ARM Performance Monitoring Units available in Cortex-A53 and Cortex-A57 CPU cores for Exynos5433 SoCs. Signed-off-by: Marek Szyprowski --- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.14.2 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index 7fe994b750da..9484d2f867dc 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi @@ -247,6 +247,24 @@ #size-cells = <1>; ranges = <0x0 0x0 0x0 0x18000000>; + arm_a53_pmu { + compatible = "arm,cortex-a53-pmu", "arm,armv8-pmuv3"; + interrupts = , + , + , + ; + interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; + }; + + arm_a57_pmu { + compatible = "arm,cortex-a57-pmu", "arm,armv8-pmuv3"; + interrupts = , + , + , + ; + interrupt-affinity = <&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>; + }; + chipid@10000000 { compatible = "samsung,exynos4210-chipid"; reg = <0x10000000 0x100>;