From patchwork Wed Apr 17 07:48:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10904729 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 47A8D922 for ; Wed, 17 Apr 2019 07:48:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 379F6289FB for ; Wed, 17 Apr 2019 07:48:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 288EE289FF; Wed, 17 Apr 2019 07:48:38 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham 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 44713289BD for ; Wed, 17 Apr 2019 07:48:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731196AbfDQHsd (ORCPT ); Wed, 17 Apr 2019 03:48:33 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:40617 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731141AbfDQHsd (ORCPT ); Wed, 17 Apr 2019 03:48:33 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190417074831euoutp02c3bbd6a6cb475721832f9575434dd574~WM3fsqEjB0434204342euoutp021 for ; Wed, 17 Apr 2019 07:48:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190417074831euoutp02c3bbd6a6cb475721832f9575434dd574~WM3fsqEjB0434204342euoutp021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555487311; bh=qcoBq5tBOKGZTWog231jA3ntWKkNru5PluYdYR46n7A=; h=From:To:Cc:Subject:Date:References:From; b=HxzHhrBF8iuBUzsVFllF4yjrjvCpEUxzanNqVupeSTntTlhnEdhThAn0tPK3Q/OFb Hqt/GhF751EBSdIfhKFXmZZ8Aws16o9aD7MHHGpk0gK+5HDom6epCAnxxLl9Hf2KKX WsIc6yBpcZkAiIMPs8sjgMVOiQTky2ejuFU21seY= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190417074830eucas1p1482672c0db81cb6a73cac342bd5f3fd8~WM3e25dQM1289812898eucas1p1D; Wed, 17 Apr 2019 07:48:30 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id DB.3E.04377.E4AD6BC5; Wed, 17 Apr 2019 08:48:30 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190417074829eucas1p234e664f9bf295eca8d2fad6ba953f37c~WM3d-LbEF2287122871eucas1p2q; Wed, 17 Apr 2019 07:48:29 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190417074829eusmtrp2d5795a77e97e5b21883f40917d5cf787~WM3dvb-o72697726977eusmtrp23; Wed, 17 Apr 2019 07:48:29 +0000 (GMT) X-AuditID: cbfec7f4-113ff70000001119-81-5cb6da4e1404 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 2F.47.04140.D4AD6BC5; Wed, 17 Apr 2019 08:48:29 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190417074828eusmtip1524b9a6a70ae3e0faf20f312728f4550~WM3dEkjVB0059200592eusmtip1q; Wed, 17 Apr 2019 07:48:28 +0000 (GMT) From: Lukasz Luba To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: b.zolnierkie@samsung.com, krzk@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com, kgene@kernel.org, l.luba@partner.samsung.com Subject: [PATCH 0/3] Exynos Performance Monitoring Counters enhancements Date: Wed, 17 Apr 2019 09:48:05 +0200 Message-Id: <1555487288-4777-1-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDKsWRmVeSWpSXmKPExsWy7djP87p+t7bFGHzbz2+xccZ6VovrX56z Wsw/co7Vov/xa2aL8+c3sFucbXrDbnGrQcZi0+NrrBaXd81hs/jce4TRYsb5fUwWa4/cZbdY ev0ik8XtxhVsFq17j7BbHH7Tzuog4LFm3hpGj02rOtk8Ni+p9zj4bg+TR9+WVYwenzfJBbBF cdmkpOZklqUW6dslcGV8fPWdpeAYZ8W2k6tZGhjnsHcxcnJICJhIXN3+kBHEFhJYwSixri+k i5ELyP7CKHH17QoWCOczo8Sk5l1sMB0zph+ESixnlNi+9xMbXMvNd9uYuxg5ONgE9CR2rCoE aRARWMwo8e1wFEgNs0Ank8S7yXvAJgkLeEhcvPKECcRmEVCV6J6xFszmFfCUeDd1AiPENjmJ m+c6mUGaJQQWsUvca58NdbiLxNsHN1khbGGJV8e3QMVlJP7vnM8EYRdLNPQuhBpUI/G4fy5U jbXE4eMXWUE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qQWH2I0BVo+kVlKNDkfGIN5JfGGpobmFpaG5sbmxmYWSuK85w0qo4QE0hNLUrNT UwtSi2D6mDg4pRoYO/pFm+sfLIyVUf9WXcMrsOuQwtaMF3dyU1VneQh//MXYJKe67kBYkP4/ z9dHtm1YfSP8OfdKvufczt19Rt/lT+yblGbz4d1kS8spam13xCymZzMsyp+xwetlhkLqm2Mn Yt9EXyz+un3p2YJzSz8unhjEtvynxd+uSDcP63lL1/3dyWztNG0GixJLcUaioRZzUXEiAOMC tAeJAgAA X-CMS-MailID: 20190417074829eucas1p234e664f9bf295eca8d2fad6ba953f37c X-Msg-Generator: CA X-RootMTR: 20190417074829eucas1p234e664f9bf295eca8d2fad6ba953f37c X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190417074829eucas1p234e664f9bf295eca8d2fad6ba953f37c References: 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 Hi all, This patch set extends PPMU on Samsung Exynos by choosing type of data which shell be counter in the PPMU registers. It is possible to count e.g. read or write requests, read or write data. A new field has been added in the DT 'event' node called 'event-data-type'. It is them used during the setup of the counter. In the prevoius implementation there was always one option used: count read+write data. Sometimes we need more precised information and this patch set tries to address it. Regards, Lukasz Luba Lukasz Luba (3): include: dt-bindings: add Performance Monitoring Unit for Exynos drivers: devfreq: events: extend events by type of counted data Documentation: devicetree: add PPMU events description .../bindings/devfreq/event/exynos-ppmu.txt | 18 ++++++++++ MAINTAINERS | 5 +++ drivers/devfreq/event/exynos-ppmu.c | 38 +++++++++++++++------- include/dt-bindings/pmu/exynos_ppmu.h | 24 ++++++++++++++ include/linux/devfreq-event.h | 6 ++++ 5 files changed, 79 insertions(+), 12 deletions(-) create mode 100644 include/dt-bindings/pmu/exynos_ppmu.h