Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp602181yba; Thu, 18 Apr 2019 06:40:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqdFOS2HLyMDa+T2qK+gYmsOZiC3ELDPV8cvYex7xFInZs/KS5xzHt0dmBq0ssBecqJZad X-Received: by 2002:a62:7648:: with SMTP id r69mr76105379pfc.114.1555594807314; Thu, 18 Apr 2019 06:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555594807; cv=none; d=google.com; s=arc-20160816; b=0v815h+x5DqJr34ozDV2dnIYMkxfBzeF6ovF1ob87WsrwHnPuzPc/23alkF4PiR4wm 2lZrvaC16mPx7WjL5zmjamyOcZaV3cH0ckCeRNbwlOIglwkG92wSQ4isKneKkpfUNzzh G46DP8sD7zfhFYZvWzvT3WGKzhkVHtMMunxWNzH45XEL99dbFr9ifFAd0Di+QvNlUVRs d4VrB57MsrD2wG6oQrACILe3ScsBgOoxsA22yK/rCenDRcBVTM71HpsTHSJKUtGjnI9c tIK5gwJMSkxYiyEVL8HeqOokonjUelIrEnLERsgOj/4eh1qggkNUvkvTKWfNOrQRA5C7 XL7g== 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:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=PsslqsEHDamRjNmHw9ub1TL6udLTKrIky6m09/GrH1Q=; b=AKJ8yjXbrWgG+zerAxFN9LbhSQ2ky2HWx6LjEiKU0dVCxrHctTHbVQuX6ujZ5tXB1Y 6jBVdtnvkeC90neryfa8ciu8Ep2NH1WGNqnF/PftSmTuVoEQwVdF899V6JWK3kf01c8s HocbINcJ7BpMqj0YlUIGty4oX1PYE5ZXMNXOFa/Tsv2Fh80rhbfXqxGD3Xq63UoZ9b/L wtmNUu38N7Cu8Z/j3DaglWbUUpth+1WVayYDWWk/dxk6dFqDZfEYkwYcAzlt+5UJJRqB xcvQWSH1xgdNrtVCZbMD4I0RNki1/NyF+GEnYZ77+AVl5Tq6XZxeJWCPV9MQlmtkeWWX Rd8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Y8XLnrHO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (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 194si2508017pfu.48.2019.04.18.06.39.52; Thu, 18 Apr 2019 06:40:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Y8XLnrHO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389077AbfDRNiy (ORCPT + 99 others); Thu, 18 Apr 2019 09:38:54 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:34182 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728074AbfDRNix (ORCPT ); Thu, 18 Apr 2019 09:38:53 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190418133851euoutp0186e0fdac7d81c5d2a35a66533225647b~WlSqfzwYs0378803788euoutp01C for ; Thu, 18 Apr 2019 13:38:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190418133851euoutp0186e0fdac7d81c5d2a35a66533225647b~WlSqfzwYs0378803788euoutp01C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555594731; bh=PsslqsEHDamRjNmHw9ub1TL6udLTKrIky6m09/GrH1Q=; h=From:To:Cc:Subject:Date:References:From; b=Y8XLnrHOpleyF+tV+LSCXgMPKoFPidym1G1HDCDQDKXSozqEAY3OmvlwgOpjQIjp4 sCgf0iGxoN/X77N7UvLzISv4mXNI3LbI7BmNJrTDNsQoOJH3gDoGnkvdNcnEhR+XgZ YZc/BuzmKX+zO25CS9V+CzjtCaymVFqIrZrQAYNQ= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190418133850eucas1p1ec7f7e5965baaf88ac16eb4bf4df8327~WlSpl-oqI1528915289eucas1p1P; Thu, 18 Apr 2019 13:38:50 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id AB.0B.04377.AED78BC5; Thu, 18 Apr 2019 14:38:50 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190418133849eucas1p11666819084daed6e9585a4f6faa124ed~WlSotGdR61758317583eucas1p17; Thu, 18 Apr 2019 13:38:49 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190418133849eusmtrp22f1811da26c929ea41fce5e8241ae95a~WlSoe5obk2812628126eusmtrp24; Thu, 18 Apr 2019 13:38:49 +0000 (GMT) X-AuditID: cbfec7f4-12dff70000001119-28-5cb87dea8e8e Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 86.55.04140.9ED78BC5; Thu, 18 Apr 2019 14:38:49 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190418133848eusmtip2f5c1b292030ce459872c6a792a2d80d8~WlSnylzdt2312923129eusmtip2D; Thu, 18 Apr 2019 13:38:48 +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, willy.mh.wolff.ml@gmail.com Subject: [PATCH v2 0/4] Exynos Performance Monitoring Counters enhancements Date: Thu, 18 Apr 2019 15:38:28 +0200 Message-Id: <1555594712-18341-1-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA0WSbUhTURzGd+7d3a7m5DrfTmb7MApNSCuDDimi0IeVRIlCYlYud9OVm7Y7 NXuhqeVUNMVeNPNtmi8MYzqHTEkhnS7RXGJlGkK4D4WaH3IIlVle7qxvv3Oe5/k/fw6HxMUd RBCpVGtpjVqeJRV48vvHf0wfXL5jTT3UavNHvXUmAs25vhCo2TZNoCrnCo4cjh4helO0KkQL umBkdn4g0OxggwCtV9oAqnMMY+iFbVGI2udmMPSpsEuA7g/ZhGh0VU+gjddLINZH1t3UDWQD 9YtCmdlYJpD1Pb8re7X2EpM9sBiBbN0sOStM8YxW0FnKPFoTEZPmmdn+24Tl9HrfsPYUCXSg ZFc58CAhdRTec7XyWRZTXQA6H54pB57b7AJwqKsR4w7rANYWVxE7idLqIYITOgE0Wt7x/0X6 hssE5YAkBVQ4tBqvswE/qg3AjdEU1oNTHRgcLv6OsYIvFQ+Ns2uAZT61Hz5r+CVgWUSdgivG r0KuTQLnp8twNgwpsxAu6ScAJ5yABtsjPse+cNlucQeC4Z+BZoxjBuoqDW7/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GZVxJvaGpobmFpaG5sbmxmoSTOe96g MkpIID2xJDU7NbUgtQimj4mDU6qBcePUD5W/nBakVqzdrml4vjDh0ZZlMb1KZTNLO14c78s9 ce/mtjc9HHO3sO4J+750u/1RpcXTvx3e3x8ulrDx/qa4j58vihyyPFFgI/iu1ntJkskxLX/W lymu83hSvY6vKNuxai7Prf9ndW67zFr/0v7idE+zvQteXOWK3HuL9V5pe+2t79NWNexTYinO SDTUYi4qTgQAGIV8nJICAAA= X-CMS-MailID: 20190418133849eucas1p11666819084daed6e9585a4f6faa124ed X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190418133849eucas1p11666819084daed6e9585a4f6faa124ed X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190418133849eucas1p11666819084daed6e9585a4f6faa124ed References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 or latency. 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. Changes: v2: - removed new entry in MAINTAINERS file as suggested by Bartek Zolnierkiewicz and added new file to existing list for devfreq events - added in the dt-bindings/pmu/exynos_ppmu.h 2 new entries for RO and WO for counters in Exynos5433 - changed initialization with default values when data_type is not provided in DT (as sugessted by Chanwoo) - added 4th patch which adds 'event-data-type' to 'event' node for Exynos4412 PPMU events (asked by Chanwoo) Regards, Lukasz Luba Lukasz Luba (4): 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 DT: arm: exynos4412: add event data type which is monitored .../bindings/devfreq/event/exynos-ppmu.txt | 18 +++++++ MAINTAINERS | 1 + arch/arm/boot/dts/exynos4412-ppmu-common.dtsi | 10 ++++ drivers/devfreq/event/exynos-ppmu.c | 61 +++++++++++++++------- include/dt-bindings/pmu/exynos_ppmu.h | 26 +++++++++ include/linux/devfreq-event.h | 6 +++ 6 files changed, 103 insertions(+), 19 deletions(-) create mode 100644 include/dt-bindings/pmu/exynos_ppmu.h -- 2.7.4