From patchwork Fri Apr 19 13: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: 10909429 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 ABBB5922 for ; Fri, 19 Apr 2019 18:38:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A121E28DB3 for ; Fri, 19 Apr 2019 18:38:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94FA528DBB; Fri, 19 Apr 2019 18:38:34 +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=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 2044728DB3 for ; Fri, 19 Apr 2019 18:38:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727809AbfDSShn (ORCPT ); Fri, 19 Apr 2019 14:37:43 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:36446 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726173AbfDSShm (ORCPT ); Fri, 19 Apr 2019 14:37:42 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190419134822euoutp01dbe19fc2382a340929a700914c86c9a2~W5EQBITS40684506845euoutp01k for ; Fri, 19 Apr 2019 13:48:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190419134822euoutp01dbe19fc2382a340929a700914c86c9a2~W5EQBITS40684506845euoutp01k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555681702; bh=7cjJVb3VI4Rewv1loqT5RQMPb21HM1f08DfLAyKWsPA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ceg8JjVWJ/rQKpfVe5um+ZCBRJJ0Xh+02u+hfCfZXaSwO/Iu//iv5fs9CFHXIiDTw xvLNufTRnjZrzlHl1UUABVOJqkZbR1bQq1L+WKd8TXLmyREeF70VbbUN2akiANOmnP nG1A36gFT0WuEliPS4ME7dnT4DFcFCs1/kYIJB1Y= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190419134821eucas1p1a89011acc93eb3522f545d80b5238b99~W5EPTA9Cv1720317203eucas1p1p; Fri, 19 Apr 2019 13:48:21 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id CC.59.04377.4A1D9BC5; Fri, 19 Apr 2019 14:48:20 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190419134820eucas1p154e839769af0e1b8bae17ce3efa0ba93~W5EOaIG7V0556405564eucas1p1H; Fri, 19 Apr 2019 13:48:20 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190419134820eusmtrp14e775b1765e6a96b2cffeed5e381837d~W5EOMHdiC2847828478eusmtrp1E; Fri, 19 Apr 2019 13:48:20 +0000 (GMT) X-AuditID: cbfec7f4-113ff70000001119-68-5cb9d1a44d2a Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 69.BE.04140.3A1D9BC5; Fri, 19 Apr 2019 14:48:20 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190419134819eusmtip27326f751da252e269e886d113ec5ae5d~W5ENghLaL0928709287eusmtip2I; Fri, 19 Apr 2019 13:48:19 +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 v3 1/4] include: dt-bindings: add Performance Monitoring Unit for Exynos Date: Fri, 19 Apr 2019 15:48:05 +0200 Message-Id: <1555681688-19643-2-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555681688-19643-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSbUhTYRTHfe7ddu/U5XWaPi0zmAUapCVGTxSl6IdZX4L6UGtkMy8quWm7 alpB00hTNEWxzJzL9xc013UtlZSarym6pFDTjHKR+RaYZgkVebtW337nf/7nfx4OD4lLWaGM jNUm0jqtOk4uchRYetdsu6tG2lR7Ku8dQA+Lm4VobGVGiIzdw0KUZ5/Hkc1mItBQ+gKBJvRe iLWPCtHL9lIRWs7tBqjY1omhpu4pAlWPjWBoMq1OhG50dBOoayFTiFb7p0Gwq6KxrBEo2kqm CAXbkCVStFRdUzz7/ART3DI3AMUy632cUDoeiqLjYpNpXcDhc44xk2aDIKHGJSXfwOJ6MO+c DUgSUkEwZ0KWDRxJKVUHYFFaoYgvVgA0ZfRgfLEMYMFUBcgG4j8TM316nG/UAjhjuCv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CAncfNcJzPIUE4Bb4nlb8tAwkJAJdef n2GewMi3gJFhFaNIamlxbnpusZFecWJucWleul5yfu4mRmCkbDv2c8sOxq53wYcYBTgYlXh4 D0zaGSPEmlhWXJl7iFGCg1lJhNcxZUuMEG9KYmVValF+fFFpTmrxIUZToJsmMkuJJucDoziv JN7Q1NDcwtLQ3Njc2MxCSZz3vEFllJBAemJJanZqakFqEUwfEwenVAPj6lUeQcwLr9oX5Cw+ PZ1xlXDeKqsnu3l8vYTc36fYr3tvObPd9sKCXun/v9X36D5gPnfcVkpR4tGkv79sHM8cFS9l vntv3v1X3oXnXIP0a+JDfxWfPN6z+q/tst/vCtjPJvmV/LsrJf2mc/nms2rvZO78W3Jttm+f 2T4TMYb9IucMZri/9RA4psRSnJFoqMVcVJwIAG3f1QOqAgAA X-CMS-MailID: 20190419134820eucas1p154e839769af0e1b8bae17ce3efa0ba93 X-Msg-Generator: CA X-RootMTR: 20190419134820eucas1p154e839769af0e1b8bae17ce3efa0ba93 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190419134820eucas1p154e839769af0e1b8bae17ce3efa0ba93 References: <1555681688-19643-1-git-send-email-l.luba@partner.samsung.com> 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 This patch add support of a new feature which can be used in DT: Performance Monitoring Unit with defined event data type. In this patch the event data types are defined for Exynos PPMU. The patch also updates the MAINTAINERS file accordingly and adds the header file to devfreq event subsystem. Signed-off-by: Lukasz Luba Acked-by: Chanwoo Choi Reviewed-by: Rob Herring --- MAINTAINERS | 1 + include/dt-bindings/pmu/exynos_ppmu.h | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 include/dt-bindings/pmu/exynos_ppmu.h diff --git a/MAINTAINERS b/MAINTAINERS index 3671fde..1ba4b9b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4560,6 +4560,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/mzx/devfreq.git S: Supported F: drivers/devfreq/event/ F: drivers/devfreq/devfreq-event.c +F: include/dt-bindings/pmu/exynos_ppmu.h F: include/linux/devfreq-event.h F: Documentation/devicetree/bindings/devfreq/event/ diff --git a/include/dt-bindings/pmu/exynos_ppmu.h b/include/dt-bindings/pmu/exynos_ppmu.h new file mode 100644 index 0000000..08fdce9 --- /dev/null +++ b/include/dt-bindings/pmu/exynos_ppmu.h @@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Samsung Exynos PPMU event types for counting in regs + * + * Copyright (c) 2019, Samsung + * Author: Lukasz Luba + */ + +#ifndef __DT_BINDINGS_PMU_EXYNOS_PPMU_H +#define __DT_BINDINGS_PMU_EXYNOS_PPMU_H + + +#define PPMU_RO_BUSY_CYCLE_CNT 0x0 +#define PPMU_WO_BUSY_CYCLE_CNT 0x1 +#define PPMU_RW_BUSY_CYCLE_CNT 0x2 +#define PPMU_RO_REQUEST_CNT 0x3 +#define PPMU_WO_REQUEST_CNT 0x4 +#define PPMU_RO_DATA_CNT 0x5 +#define PPMU_WO_DATA_CNT 0x6 +#define PPMU_RO_LATENCY 0x12 +#define PPMU_WO_LATENCY 0x16 +#define PPMU_V2_RO_DATA_CNT 0x4 +#define PPMU_V2_WO_DATA_CNT 0x5 +#define PPMU_V2_EVT3_RW_DATA_CNT 0x22 + +#endif From patchwork Fri Apr 19 13:48:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10909417 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 B440113B5 for ; Fri, 19 Apr 2019 18:37:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A724628DB3 for ; Fri, 19 Apr 2019 18:37:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9812B28DBD; Fri, 19 Apr 2019 18:37:44 +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=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 8F92128DB3 for ; Fri, 19 Apr 2019 18:37:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727790AbfDSShn (ORCPT ); Fri, 19 Apr 2019 14:37:43 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:36444 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727494AbfDSShm (ORCPT ); Fri, 19 Apr 2019 14:37:42 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190419134823euoutp01f0a3db989e4086eadb964b90dcf9f156~W5EQ-k-JW0684506845euoutp01m for ; Fri, 19 Apr 2019 13:48:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190419134823euoutp01f0a3db989e4086eadb964b90dcf9f156~W5EQ-k-JW0684506845euoutp01m DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555681703; bh=dGaYu8X2y/0BQdi0aG6wuFp9zS+Rp1PwxA/Fpq9KCS4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qBdldqjabVfPIKOOW+qwjpnzZ1PE5JjgHS9AbMuKdccM+E2SvKJMs28+UPYSYwJmF N5wI2skmCWx6M03B2w/H6iDHaHxrsC5sg8+HrC/FIeb6s11+PlAW54FhJ0ZOTzy1wp e4JS9ES6qoVjKQ4OmHRiyd/ZJGZHBBC1Z4nLuCqY= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190419134822eucas1p2939a45a95386db8696404e5e1d82c626~W5EQRpM-Q0970609706eucas1p2G; Fri, 19 Apr 2019 13:48:22 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id E7.60.04298.5A1D9BC5; Fri, 19 Apr 2019 14:48:21 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190419134821eucas1p2461a27e28387ff2b87c149f09582d2a0~W5EPhuiNW0957509575eucas1p2D; Fri, 19 Apr 2019 13:48:21 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190419134821eusmtrp19cac7275df6ec2c6e7fde2a5490d50d4~W5EPTsgcQ2843728437eusmtrp1P; Fri, 19 Apr 2019 13:48:21 +0000 (GMT) X-AuditID: cbfec7f2-f2dff700000010ca-b0-5cb9d1a50f3f Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 8A.BE.04140.5A1D9BC5; Fri, 19 Apr 2019 14:48:21 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190419134820eusmtip2427e2fcb8de8b406fd269d152577e26c~W5EOoiKIk0862908629eusmtip2f; Fri, 19 Apr 2019 13:48:20 +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 v3 2/4] drivers: devfreq: events: extend events by type of counted data Date: Fri, 19 Apr 2019 15:48:06 +0200 Message-Id: <1555681688-19643-3-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555681688-19643-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSbUhTURjHO/fu7l6Hq+sUfbClsAgq1GkEHejFxIhVX/JLpAl1y4tKTnNX 7cWi2YvlsCwTs1GWpGlirebwDZPS5SzL99Q1JE0osRTUFBeSebuG337P//k//+ecw2FIVTXl zyQmp/GGZC5JI1fIalrdncFl3fWxodM92/HLIguFB359p/BDeweF80Z/kLiz8wWNP176SePP RjW2jvZTuLfhvhzP3LAjXNTZROBn9iEalw10E9iVVSHHV1/Zadzy8xqF59q+ot1euqriKqSr Nw/ROmtljlxXXXpR92aykdDdtFUi3Yw14CAdo9gRxyclZvAG7a5jioSs8Xn61OL6MwumbMKI LGoT8mCA3Qrtb9/LTEjBqNgKBFPPZymp+IXg9x03kooZBK3uPsKEmH8jzm+xkl6OwDr4cWXi SnEjEk1yNgTqKlPFFT7sYwRzLTGih2SfENB0eZoQG95sNBTYbHKRZewGaFuwkyIr2f2Q5S4h pfMFgLMjhxQzPdgDUD6RIeYA20HD3fwxmeTZA59cTrnE3jDusNESq6H9Tu6yRwDjjRIk8XkY zXuw7NkOLY5uSswn2U1gadBKcgRMWOaX77saBie8RJlcwvyau6QkK+F6tkpybwRbbhchsS+U VxUuh+vA3F5KSK9TjGC4uEV+CwWaV5Y9QqgS+fHpgj6eF8KS+dMhAqcX0pPjQ06k6K1o6Su1 /3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nzLeuy5758aNu52P 3Y+5tm3pIi6pn+GNMtOraxb4pF29GMGVkph3wzjqto/gq6Y7F20+Mh69rbTm9Xf3AKtVMQkX ljzdcIrH5fTbTdfKK3KETyixFGckGmoxFxUnAgBLvBDkqQIAAA== X-CMS-MailID: 20190419134821eucas1p2461a27e28387ff2b87c149f09582d2a0 X-Msg-Generator: CA X-RootMTR: 20190419134821eucas1p2461a27e28387ff2b87c149f09582d2a0 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190419134821eucas1p2461a27e28387ff2b87c149f09582d2a0 References: <1555681688-19643-1-git-send-email-l.luba@partner.samsung.com> 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 This patch adds posibility to choose what type of data should be counted by the PPMU counter. Now the type comes from DT where the event has been defined. When there is no 'event-data-type' the default value is used, which is 'read data in bytes'. It is needed when you want to know not only read+write data bytes but i.e. only write data in byte, or number of read requests, etc. Signed-off-by: Lukasz Luba --- drivers/devfreq/event/exynos-ppmu.c | 61 +++++++++++++++++++++++++------------ include/linux/devfreq-event.h | 6 ++++ 2 files changed, 48 insertions(+), 19 deletions(-) diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c index c61de0b..073bf2c 100644 --- a/drivers/devfreq/event/exynos-ppmu.c +++ b/drivers/devfreq/event/exynos-ppmu.c @@ -154,9 +154,9 @@ static int exynos_ppmu_set_event(struct devfreq_event_dev *edev) if (ret < 0) return ret; - /* Set the event of Read/Write data count */ + /* Set the event of proper data type monitoring */ ret = regmap_write(info->regmap, PPMU_BEVTxSEL(id), - PPMU_RO_DATA_CNT | PPMU_WO_DATA_CNT); + edev->desc->data_type); if (ret < 0) return ret; @@ -368,23 +368,11 @@ static int exynos_ppmu_v2_set_event(struct devfreq_event_dev *edev) if (ret < 0) return ret; - /* Set the event of Read/Write data count */ - switch (id) { - case PPMU_PMNCNT0: - case PPMU_PMNCNT1: - case PPMU_PMNCNT2: - ret = regmap_write(info->regmap, PPMU_V2_CH_EVx_TYPE(id), - PPMU_V2_RO_DATA_CNT | PPMU_V2_WO_DATA_CNT); - if (ret < 0) - return ret; - break; - case PPMU_PMNCNT3: - ret = regmap_write(info->regmap, PPMU_V2_CH_EVx_TYPE(id), - PPMU_V2_EVT3_RW_DATA_CNT); - if (ret < 0) - return ret; - break; - } + /* Set the event of proper data type monitoring */ + ret = regmap_write(info->regmap, PPMU_V2_CH_EVx_TYPE(id), + edev->desc->data_type); + if (ret < 0) + return ret; /* Reset cycle counter/performance counter and enable PPMU */ ret = regmap_read(info->regmap, PPMU_V2_PMNC, &pmnc); @@ -508,6 +496,7 @@ static int of_get_devfreq_events(struct device_node *np, struct device *dev = info->dev; struct device_node *events_np, *node; int i, j, count; + int ret; events_np = of_get_child_by_name(np, "events"); if (!events_np) { @@ -544,6 +533,40 @@ static int of_get_devfreq_events(struct device_node *np, desc[j].driver_data = info; of_property_read_string(node, "event-name", &desc[j].name); + ret = of_property_read_u32(node, "event-data-type", + &desc[j].data_type); + if (ret) { + /* Set the event of proper data type counting. + * Check if the data type has been defined in DT, + * use default if not. + */ + if (of_device_is_compatible(np, + "samsung,exynos-ppmu-v2")) { + struct devfreq_event_dev edev; + int id; + /* Not all registers take the same value for + * read+write data count. + */ + edev.desc = &desc[j]; + id = exynos_ppmu_find_ppmu_id(&edev); + + switch (id) { + case PPMU_PMNCNT0: + case PPMU_PMNCNT1: + case PPMU_PMNCNT2: + desc[j].data_type = PPMU_V2_RO_DATA_CNT + | PPMU_V2_WO_DATA_CNT; + break; + case PPMU_PMNCNT3: + desc[j].data_type = + PPMU_V2_EVT3_RW_DATA_CNT; + break; + } + } else { + desc[j].data_type = PPMU_RO_DATA_CNT | + PPMU_WO_DATA_CNT; + } + } j++; } diff --git a/include/linux/devfreq-event.h b/include/linux/devfreq-event.h index 4db00b0..cc160b1 100644 --- a/include/linux/devfreq-event.h +++ b/include/linux/devfreq-event.h @@ -81,14 +81,20 @@ struct devfreq_event_ops { * struct devfreq_event_desc - the descriptor of devfreq-event device * * @name : the name of devfreq-event device. + * @data_type : the data type which is going to be counted in the register. * @driver_data : the private data for devfreq-event driver. * @ops : the operation to control devfreq-event device. * * Each devfreq-event device is described with a this structure. * This structure contains the various data for devfreq-event device. + * The data_type describes what is going to be counted in the register. + * It might choose to count e.g. read requests, write data in bytes, etc. + * The full supported list of types is present in specyfic header in: + * include/dt-bindings/pmu/. */ struct devfreq_event_desc { const char *name; + u32 data_type; void *driver_data; const struct devfreq_event_ops *ops; From patchwork Fri Apr 19 13:48:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10909431 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 7857A922 for ; Fri, 19 Apr 2019 18:38:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E1CA28DBA for ; Fri, 19 Apr 2019 18:38:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61F0728DB3; Fri, 19 Apr 2019 18:38:36 +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=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 12D3F28DB3 for ; Fri, 19 Apr 2019 18:38:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727949AbfDSSif (ORCPT ); Fri, 19 Apr 2019 14:38:35 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:36447 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725859AbfDSShn (ORCPT ); Fri, 19 Apr 2019 14:37:43 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190419134824euoutp0178edfe33999309d790ecfa61063e68d2~W5ESKTXa30591405914euoutp01S for ; Fri, 19 Apr 2019 13:48:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190419134824euoutp0178edfe33999309d790ecfa61063e68d2~W5ESKTXa30591405914euoutp01S DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555681704; bh=DYDvjBZVL6sxzkf5UpTzzrSynrTk6h2kigPuEB7raUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t6tSjPUYVqfKVRWEss5F+WYENS/FS13+yxVPvRDJL7HkOMMCxJtLrR1QQ0HfRzTNe dixUP4Wd/qlyT1NFEFNDlmJBLdOdVlDbS605lWqd+k2UsCQGXQBJdn2r67sy+5oyhy 0GFulPTXHprUcskBr759H+BV/Ex/y+nkD0J0KzKg= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190419134823eucas1p2bb89a58c740a9880af70bdc7835bf980~W5ERcJXTE1565215652eucas1p25; Fri, 19 Apr 2019 13:48:23 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 6F.59.04377.7A1D9BC5; Fri, 19 Apr 2019 14:48:23 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190419134822eucas1p29c6eff0f500311749b33c4f556123cf0~W5EQpTCcX1595215952eucas1p2v; Fri, 19 Apr 2019 13:48:22 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190419134822eusmtrp13e03066af8a25f1fa894a733d656f727~W5EQbSzkG2843728437eusmtrp1T; Fri, 19 Apr 2019 13:48:22 +0000 (GMT) X-AuditID: cbfec7f4-113ff70000001119-70-5cb9d1a7ac80 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 5C.BE.04140.6A1D9BC5; Fri, 19 Apr 2019 14:48:22 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190419134821eusmtip2c497e59b885d504df3f4296d051f84a1~W5EPwBBNT0862908629eusmtip2h; Fri, 19 Apr 2019 13:48:21 +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 v3 3/4] Documentation: devicetree: add PPMU events description Date: Fri, 19 Apr 2019 15:48:07 +0200 Message-Id: <1555681688-19643-4-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555681688-19643-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrEKsWRmVeSWpSXmKPExsWy7djPc7rLL+6MMfiwWdBi44z1rBbXvzxn tZh/5ByrRf/j18wW589vYLc42/SG3eJWg4zFpsfX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LFr3HmG3OPymndXi24lHjA6CHmvmrWH02DnrLrvHplWdbB6bl9R7HHy3h8mj b8sqRo/Pm+QC2KP0bIryS0tSFTLyi0tslaINLYz0DC0t9IxMLPUMjc1jrYxMlfTtbFJSczLL Uov07RL0Mn7sec1YMIW7YvrCRewNjJs4uxg5OSQETCSerLvO0sXIxSEksJRRYlfLJXaIhJjE pH3boWxhiT/Xutggij4xSky72AvkcHCwCehJ7FhVCBIXEVjOKHFs1VtmEIdZYBuTxJ4ruxlB ioQF/CSmXDcFGcQioCpxp+c4M4jNK+AlseL1RyaIBXISN891MoOUcwp4Syx/WwYSFgIquf78 DPMERr4FjAyrGEVSS4tz03OLjfSKE3OLS/PS9ZLzczcxAuNk27GfW3Ywdr0LPsQowMGoxMN7 YNLOGCHWxLLiytxDjBIczEoivI4pW2KEeFMSK6tSi/Lji0pzUosPMZoC3TSRWUo0OR8Yw3kl 8YamhuYWlobmxubGZhZK4rznDSqjhATSE0tSs1NTC1KLYPqYODilGhhvnDj2RjUh/HC3ynyv V2Yzgi+azlrad8zh87+X//8zMX3Uu2Lnxr9f80OBSMR01kUvJ29sv2nB1DLFZ2V4dqbr4gwn 6fWTu7j8u7QUWPtYvuwK/WIekbbQ7n2Vk6ckU5XIdpd/eS5VZSENDgvmvHo8aeYVhiIx/VYH kZt/LaX+hp5zUO6fVKHEUpyRaKjFXFScCABgJZ9QqQIAAA== X-CMS-MailID: 20190419134822eucas1p29c6eff0f500311749b33c4f556123cf0 X-Msg-Generator: CA X-RootMTR: 20190419134822eucas1p29c6eff0f500311749b33c4f556123cf0 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190419134822eucas1p29c6eff0f500311749b33c4f556123cf0 References: <1555681688-19643-1-git-send-email-l.luba@partner.samsung.com> 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 Extend the documenation by events description with new 'event-data-type' field. Add example how the event might be defined in DT. Signed-off-by: Lukasz Luba --- .../devicetree/bindings/devfreq/event/exynos-ppmu.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/devfreq/event/exynos-ppmu.txt b/Documentation/devicetree/bindings/devfreq/event/exynos-ppmu.txt index 3e36c1d..47feb5f 100644 --- a/Documentation/devicetree/bindings/devfreq/event/exynos-ppmu.txt +++ b/Documentation/devicetree/bindings/devfreq/event/exynos-ppmu.txt @@ -145,3 +145,21 @@ Example3 : PPMUv2 nodes in exynos5433.dtsi are listed below. reg = <0x104d0000 0x2000>; status = "disabled"; }; + +The 'event' type specified in the PPMU node defines 'event-name' +which also contains 'id' number and optionally 'event-data-type'. + +Example: + + events { + ppmu_leftbus_0: ppmu-event0-leftbus { + event-name = "ppmu-event0-leftbus"; + event-data-type = ; + }; + }; + +The 'event-data-type' defines the type of data which shell be counted +by the counter. You can check include/dt-bindings/pmu/exynos_ppmu.h for +all possible type, i.e. count read requests, count write data in bytes, +etc. This field is optional and when it is missing, the driver code will +use default data type. From patchwork Fri Apr 19 13:48:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10909425 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 3B0E013B5 for ; Fri, 19 Apr 2019 18:38:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C3B228DBA for ; Fri, 19 Apr 2019 18:38:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E97B28DBB; Fri, 19 Apr 2019 18:38:32 +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 A84B128DB3 for ; Fri, 19 Apr 2019 18:38:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727541AbfDSSib (ORCPT ); Fri, 19 Apr 2019 14:38:31 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:36464 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726173AbfDSSho (ORCPT ); Fri, 19 Apr 2019 14:37:44 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190419134825euoutp012629e6e231a620f0761ccd841ff6e9f3~W5ETdMPlR0684506845euoutp01p for ; Fri, 19 Apr 2019 13:48:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190419134825euoutp012629e6e231a620f0761ccd841ff6e9f3~W5ETdMPlR0684506845euoutp01p DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555681705; bh=HLV8RfTTYMJHCpoVzMgMpnDdAuBIjRTs2a5rElTq130=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GxcdP2urj0OQVvsCtdplP9b0GvSrKZ1UdCQWrNAAInXO+f4Ge71GNkvSxaxPNDYh0 utCX8JcUNgu5ZsBWF9jnIBXAPL7QyF6c3SQnHseKCNTbitpE0Xzxq5T32Plqn+sArV h/syhVv/jqkdbUe2WykezieIxvkuFB+roJn8w14g= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190419134824eucas1p2a552ccb05f8c0f47ea9d4b24e3642b0d~W5EScF4m80964809648eucas1p2M; Fri, 19 Apr 2019 13:48:24 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 11.69.04377.8A1D9BC5; Fri, 19 Apr 2019 14:48:24 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190419134823eucas1p1ff852194b1db655ed2dbce72b5f7f3a6~W5ERw4Eg_2483224832eucas1p1g; Fri, 19 Apr 2019 13:48:23 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190419134823eusmtrp10782bb81d2f0505051df40fa19f44671~W5ERi479W2847828478eusmtrp1L; Fri, 19 Apr 2019 13:48:23 +0000 (GMT) X-AuditID: cbfec7f4-12dff70000001119-74-5cb9d1a8ad7a Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id BD.BE.04140.7A1D9BC5; Fri, 19 Apr 2019 14:48:23 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190419134822eusmtip207d2af356ac28d0544c4c92fb930a231~W5EQ2JVYL0862908629eusmtip2i; Fri, 19 Apr 2019 13:48:22 +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 v3 4/4] DT: arm: exynos4412: add event data type which is monitored Date: Fri, 19 Apr 2019 15:48:08 +0200 Message-Id: <1555681688-19643-5-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555681688-19643-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0WSe0hTURzHO/fu7t6NVrdp+kPDYiC97R0H01BSuBRF/0RQhq28mbSp7apZ Sa3M1DEfGD1mzh5W6jLNOUQtxXRkJc5GqKmtUougfEBbQhGSt2v03+d8z+d8f4fDYUi1nQpi kpLTeEOyVqeRK2WNz3+61la5m+PW3y8LwPU36ig84PtC4VtOF4WLxr6RuLf3MY17Lo7TeMi4 BNvH+in8pqVMjr0FToRv9LYR+JHTQ+P7A24CD1+okuOcVieNO8dzKTz9YhRFLeJqymsQ11zq oTm7LV/ONdw7zz2bfEpwhQ4b4rz2kL30AWVEAq9LyuAN67YfVh6vqHZRqbWqzCejlZQRvVKY kIIBdjN4anOQCSkZNVuF4GVJIy0tfAjMzWZCtNSsF8E1c+S/E/Udd0lJqkRQZH1IStLsiW/9 C02IYeRsGDTZToqxP1uBYLrzgOiT7AMC2rK//y31Y/dBu8VHiyxjQ2HIXEyJrGJ3woh7iJCG hcCgK58UOxXsLqicyBB7gH1Fw7i1QCY5MdDjq5BL7Adfuxy0xEug+4p5zhHAWHAHSZwFY0XW OWcbdHa5KbGfZFdCXcs6KY6G1h/tSIyBXQBvJxaJMTmLJY3XSSlWQd5ltWSvAIf59dyFA6Cy 5tpcOQfWq1/l0kuVI7j+y4OK0dLS/8NuI2RDgXy6oE/khY3J/KkwQasX0pMTw46m6O1o9id1 z3T5mlDL7yMdiGWQZr6qvaQ5Tk1pM4TT+g4EDKnxV0UnOOLUqgTt6TO8ISXekK7jhQ4UzMg0 gaqz8z4eVLOJ2jT+BM+n8oZ/uwSjCDKiGEuuJUc3/CFoOTZt3fPBM7qUjw+uoxSmT5diRxps fWP5nxt2WGOn8m72DWg2lbx8MPjeN+GYBGJxdzgXsZue2Z95LjvO4g7YMq96jTcpPooPrw1d Vu0fOHWohiqdog/yeeH3vnx6N5n7kajP351lSgwKOXTMs9qxrHAycoYu1ciE49oNq0iDoP0D GJTDK0UDAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprOIsWRmVeSWpSXmKPExsVy+t/xe7rLL+6MMVh8VtVi44z1rBbXvzxn tZh/5ByrRf/j18wW589vYLc42/SG3eJWg4zFpsfXWC0u75rDZvG59wijxYzz+5gs1h65y26x 9PpFJovbjSvYLFr3HmG3OPymndXi24lHjA6CHmvmrWH02DnrLrvHplWdbB6bl9R7HHy3h8mj b8sqRo/Pm+QC2KP0bIryS0tSFTLyi0tslaINLYz0DC0t9IxMLPUMjc1jrYxMlfTtbFJSczLL Uov07RL0MhavPMdasI63Yvej5awNjKc4uxg5OSQETCQ2HlrE3MXIxSEksJRR4vOHA4wQCTGJ Sfu2s0PYwhJ/rnWxQRR9YpR4cGw9UBEHB5uAnsSOVYUgcRGB5YwSx1a9BZvELLCNSWLPld1g k4QFgiUa37eygdgsAqoSt3omsILYvAJeEg8v3mKC2CAncfNcJzPIUE4Bb4nlb8tAwkJAJdef n2GewMi3gJFhFaNIamlxbnpusZFecWJucWleul5yfu4mRmCkbDv2c8sOxq53wYcYBTgYlXh4 D0zaGSPEmlhWXJl7iFGCg1lJhNcxZUuMEG9KYmVValF+fFFpTmrxIUZToJsmMkuJJucDoziv JN7Q1NDcwtLQ3Njc2MxCSZz3vEFllJBAemJJanZqakFqEUwfEwenVAPjzNVrg9ouXtZ5bmyf tFq+Kux+jNXMNOmGNMkjTGembrQ/wvKua+OLtf/SgiZOObrdbyOXAo/E36Vnf7DPySl4f7w2 xzp998Zdm+85T+gz+Vs2Vd7QpTEqOyMria/MwWaht5z8giXqr/59DkxdxqBvu+dk3HzNDsdv GeJTNVpzbi88af/oyrf3SizFGYmGWsxFxYkAx9wTmqoCAAA= X-CMS-MailID: 20190419134823eucas1p1ff852194b1db655ed2dbce72b5f7f3a6 X-Msg-Generator: CA X-RootMTR: 20190419134823eucas1p1ff852194b1db655ed2dbce72b5f7f3a6 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190419134823eucas1p1ff852194b1db655ed2dbce72b5f7f3a6 References: <1555681688-19643-1-git-send-email-l.luba@partner.samsung.com> 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 The patch adds new field in the PPMU event which shows explicitly what kind of data the event is monitoring. It is possible to change it using defined values in exynos_ppmu.h file. Signed-off-by: Lukasz Luba Acked-by: Chanwoo Choi --- arch/arm/boot/dts/exynos4412-ppmu-common.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/exynos4412-ppmu-common.dtsi b/arch/arm/boot/dts/exynos4412-ppmu-common.dtsi index 3a3b2fa..549faba 100644 --- a/arch/arm/boot/dts/exynos4412-ppmu-common.dtsi +++ b/arch/arm/boot/dts/exynos4412-ppmu-common.dtsi @@ -6,12 +6,16 @@ * Author: Chanwoo Choi */ +#include + &ppmu_dmc0 { status = "okay"; events { ppmu_dmc0_3: ppmu-event3-dmc0 { event-name = "ppmu-event3-dmc0"; + event-data-type = <(PPMU_RO_DATA_CNT | + PPMU_WO_DATA_CNT)>; }; }; }; @@ -22,6 +26,8 @@ events { ppmu_dmc1_3: ppmu-event3-dmc1 { event-name = "ppmu-event3-dmc1"; + event-data-type = <(PPMU_RO_DATA_CNT | + PPMU_WO_DATA_CNT)>; }; }; }; @@ -32,6 +38,8 @@ events { ppmu_leftbus_3: ppmu-event3-leftbus { event-name = "ppmu-event3-leftbus"; + event-data-type = <(PPMU_RO_DATA_CNT | + PPMU_WO_DATA_CNT)>; }; }; }; @@ -42,6 +50,8 @@ events { ppmu_rightbus_3: ppmu-event3-rightbus { event-name = "ppmu-event3-rightbus"; + event-data-type = <(PPMU_RO_DATA_CNT | + PPMU_WO_DATA_CNT)>; }; }; };