From patchwork Thu Apr 18 13:38:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10907345 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 05F0A1515 for ; Thu, 18 Apr 2019 13:39:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9251287D3 for ; Thu, 18 Apr 2019 13:39:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD2CF28820; Thu, 18 Apr 2019 13:39:46 +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 7E5D4287D3 for ; Thu, 18 Apr 2019 13:39:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733192AbfDRNjp (ORCPT ); Thu, 18 Apr 2019 09:39:45 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:34201 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389091AbfDRNi4 (ORCPT ); Thu, 18 Apr 2019 09:38:56 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190418133854euoutp01c7a983174daae9c3aaa2ef4913f97634~WlSs9WyMl0326203262euoutp01y for ; Thu, 18 Apr 2019 13:38:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190418133854euoutp01c7a983174daae9c3aaa2ef4913f97634~WlSs9WyMl0326203262euoutp01y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555594734; bh=7cjJVb3VI4Rewv1loqT5RQMPb21HM1f08DfLAyKWsPA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=up8f4/IzGSZLTU5PoqdahTqXBDP3tI1CKMDKZPSWF6sXY9oq4FqAlRFXldfn4vNNC dU9Moml/5EMxgHZ7PeXue79NgXy6QRXkB+LdFWrQwKZx1VCOyPJNl9T8DRti2KxnyL rMqbEyLbsnz3+p+3XnY6/XRD78T49GSBh+7tv7mY= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190418133852eucas1p2ebbe0543263b103a9fe4ca3a7f506204~WlSri9dlJ2704327043eucas1p2f; Thu, 18 Apr 2019 13:38:52 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 54.82.04325.CED78BC5; Thu, 18 Apr 2019 14:38:52 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190418133851eucas1p192c8530255d6a4ce2aa8d8115f84a3db~WlSqqwBxt2247222472eucas1p14; Thu, 18 Apr 2019 13:38:51 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190418133851eusmtrp15386fa27ec50134c4c77f85c9e123355~WlSqcn-_s2480124801eusmtrp1R; Thu, 18 Apr 2019 13:38:51 +0000 (GMT) X-AuditID: cbfec7f5-b8fff700000010e5-b4-5cb87dec6abc Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 8C.66.04146.BED78BC5; Thu, 18 Apr 2019 14:38:51 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190418133850eusmtip21b6273cfda26c84d180b36bd1efc689c~WlSptywPB1998719987eusmtip2a; Thu, 18 Apr 2019 13:38:50 +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 1/4] include: dt-bindings: add Performance Monitoring Unit for Exynos Date: Thu, 18 Apr 2019 15:38:29 +0200 Message-Id: <1555594712-18341-2-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555594712-18341-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VSfSyUcRz3u+eeex7meFwvvsnYbrWVDTVtfi0rNq2r1qp/0erKM4xT3RMi RYpSKukFNydWYU+Ec9l1oeJyVsvLshTTjIo4mbebppSn51r/ffZ5+X4+++1HE4oG0ouOSzzF ahPVCUqZi7Sx/Uenv+2sKWrTt37A9UW1JO6bGyXxPUsniW+MTBC4q6uOwm+zbBTuz/TGhpH3 JH5nLpHh2WsWhIu6WiS4xjJI4Yd9PRI8cL5KhrObLRRus10isb1jGIV6qKpLq5HqqW6QUhn4 XJmq4UGG6uX3JonqupFHqlmDzwEqwiUkmk2IS2a1gduPuMQOGPXSExXup/P1BiITTbheQc40 MFug7OM0cQW50AqmCkHhr2xCEBTMHIL5rymiMIug7l299F+ia6ZEIgqVCHI6DI74cmJpP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gxmkmVfAS2LVqiqI+XISN891gu3lFPCW+LJrHyvELi+J fTt+sExg5FvAyLCKUSS1tDg3PbfYUK84Mbe4NC9dLzk/dxMjME62Hfu5eQfjpY3BhxgFOBiV eHglMnfECLEmlhVX5h5ilOBgVhLhdUzZEiPEm5JYWZValB9fVJqTWnyI0RToponMUqLJ+cAY ziuJNzQ1NLewNDQ3Njc2s1AS5z1vUBklJJCeWJKanZpakFoE08fEwSnVwKiQfl7sw4Ztilvf 2V2/+Ez1RJHx+9t8kao5d2pn/PLw3tC1mTUl65X4xdyJyloX2DRq8r0K1vhw72rQ322wMLq4 K+NqV9GDeVlfBGV7Zrxx4Wm5ey74vLC82I8Y/sS5B1vEt0wsynOL75jF171AJ/TU/7CVl6PC ZtnVKCXoPHv3VZgrODo5Q4mlOCPRUIu5qDgRAMc+MNCpAgAA X-CMS-MailID: 20190418133851eucas1p192c8530255d6a4ce2aa8d8115f84a3db X-Msg-Generator: CA X-RootMTR: 20190418133851eucas1p192c8530255d6a4ce2aa8d8115f84a3db X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190418133851eucas1p192c8530255d6a4ce2aa8d8115f84a3db References: <1555594712-18341-1-git-send-email-l.luba@partner.samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 --- 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 Thu Apr 18 13:38:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10907337 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 5B9481515 for ; Thu, 18 Apr 2019 13:39:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42F1127D0C for ; Thu, 18 Apr 2019 13:39:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36F8F2888C; Thu, 18 Apr 2019 13:39:40 +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 99D5527D0C for ; Thu, 18 Apr 2019 13:39:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389179AbfDRNje (ORCPT ); Thu, 18 Apr 2019 09:39:34 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:34212 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389095AbfDRNi4 (ORCPT ); Thu, 18 Apr 2019 09:38:56 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190418133855euoutp01f93518edbc7d8fe166cab0719c6d52b6~WlStxqUXO0378803788euoutp01G for ; Thu, 18 Apr 2019 13:38:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190418133855euoutp01f93518edbc7d8fe166cab0719c6d52b6~WlStxqUXO0378803788euoutp01G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555594735; bh=LrbUWDzhuJDtHdKSva67o1iOv3VtXmTRaWWQwUjY1pM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ldW7LNjwdx1Kqvc/j/ukyoqrNK8RMgc8+0i9sCEspxFI5q/GFhajEjC2oviONS/ac 0raY05TlsoZMrb/VwxdV2itiGo8hYdwTiG+ThsKymhV6XWgLawRpSEjQ6jVjW1Vs/x DVGBhMM9NFngVNNFpDyUJWU8HRQZdSBsMVB7E0gg= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190418133854eucas1p2d5463cd3b63b6f93c21bd90db022a7d2~WlSs_5OPt0537305373eucas1p2i; Thu, 18 Apr 2019 13:38:54 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 2F.C2.04298.DED78BC5; Thu, 18 Apr 2019 14:38:53 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190418133853eucas1p21ff5f58f5446b8452698910923524524~WlSr9o19I0331003310eucas1p22; Thu, 18 Apr 2019 13:38:53 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190418133852eusmtrp21704a2739ef7553b7df6dfa3bfd8fe81~WlSrvlX_v2812628126eusmtrp29; Thu, 18 Apr 2019 13:38:52 +0000 (GMT) X-AuditID: cbfec7f2-f2dff700000010ca-8c-5cb87dedccc7 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 78.55.04140.CED78BC5; Thu, 18 Apr 2019 14:38:52 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190418133852eusmtip2ad8f4ab232e5b7c5094bd18437997a6a~WlSrCI27N1989619896eusmtip2S; Thu, 18 Apr 2019 13:38:52 +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 2/4] drivers: devfreq: events: extend events by type of counted data Date: Thu, 18 Apr 2019 15:38:30 +0200 Message-Id: <1555594712-18341-3-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555594712-18341-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMKsWRmVeSWpSXmKPExsWy7djPc7pva3fEGPz/ZWGxccZ6VovrX56z Wsw/co7Vov/xa2aL8+c3sFucbXrDbnGrQcZi0+NrrBaXd81hs/jce4TRYsb5fUwWa4/cZbdY ev0ik8XtxhVsFq17j7BbHH7Tzmrx7cQjRgdBjzXz1jB67Jx1l91j06pONo/NS+o9Dr7bw+TR t2UVo8fnTXIB7FFcNimpOZllqUX6dglcGZf/vmYtaFCpWHi9g62BcYNMFyMHh4SAicSJD8Jd jFwcQgIrGCVWHrjD3MXICeR8YZTYdrYcIvGZUaJj8kxWkARIw9Lr55kgEssZJWa3P2WEcIA6 zv05wggylk1AT2LHqkKQBhGBxYwS3w5HgdQwCyxjktjX/IkJJCEsECkx6cYTFhCbRUBVYsuB e2AbeAW8JJ6f2c4EsU1O4ua5TrCTOAW8Jb7s2scKMkhC4BS7xLFF09ghilwkes7eZ4SwhSVe Hd8CFZeR+L9zPtSgYomG3oVQNTUSj/vnQtVYSxw+fpEV5GhmAU2J9bv0IcKOEvuXbWeBBBGf xI23giBhZiBz0rbpzBBhXomONiGIag2JLT0XoBaJSSxfA3OYh8Tqe93MkOCZxygx4Vsb+wRG +VkIyxYwMq5iFE8tLc5NTy02zEst1ytOzC0uzUvXS87P3cQITEqn/x3/tIPx66WkQ4wCHIxK PLwSmTtihFgTy4orcw8xS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e7lkcwqrVBJn+0g2rNrwVrRCzni5xrILLALO+3tbD+gULTgoe8yi3SD5gcGeingLx7cT jaZ+Oji96cO7pTEKUaxKLMUZiYZazEXFiQC1UeXtqQIAAA== X-CMS-MailID: 20190418133853eucas1p21ff5f58f5446b8452698910923524524 X-Msg-Generator: CA X-RootMTR: 20190418133853eucas1p21ff5f58f5446b8452698910923524524 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190418133853eucas1p21ff5f58f5446b8452698910923524524 References: <1555594712-18341-1-git-send-email-l.luba@partner.samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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..9f12201 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 Thu Apr 18 13:38:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10907321 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 35464922 for ; Thu, 18 Apr 2019 13:39:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2420E27D0C for ; Thu, 18 Apr 2019 13:39:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1794328852; Thu, 18 Apr 2019 13:39:12 +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 B2D9927D0C for ; Thu, 18 Apr 2019 13:39:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388161AbfDRNjI (ORCPT ); Thu, 18 Apr 2019 09:39:08 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:49726 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389107AbfDRNi6 (ORCPT ); Thu, 18 Apr 2019 09:38:58 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190418133856euoutp028d75d691430c767cc297eb9e1db7d218~WlSu1_92Q0683106831euoutp02X for ; Thu, 18 Apr 2019 13:38:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190418133856euoutp028d75d691430c767cc297eb9e1db7d218~WlSu1_92Q0683106831euoutp02X DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555594736; bh=DYDvjBZVL6sxzkf5UpTzzrSynrTk6h2kigPuEB7raUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lYvoiR7MrNUoStFDYUecafAsRoX9jdpT3nNNWQXTPbxJ0i02WBB1D6Gw/IJNJ2GSD pqgumh1IXpQHx1qHxgnUVD9SY4KWpvxLdEF5tqPdKYElBjHjDzJEYrCM5MOE2bOuRi 07AtlT11AY2PFzQeEdiNQKLmspFnMA/Q/QXzP/U8= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190418133855eucas1p2e7fa0afe3cd772dea9e3719a822cea65~WlSt6kqm-0131901319eucas1p2H; Thu, 18 Apr 2019 13:38:55 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id C0.D2.04298.EED78BC5; Thu, 18 Apr 2019 14:38:54 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190418133854eucas1p11bd927755163f0030a1748a023099a06~WlStLLo440775607756eucas1p1n; Thu, 18 Apr 2019 13:38:54 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190418133854eusmtrp298b195b065f07e9dfc8e88a4382c2fdb~WlSs9H3t52812628126eusmtrp2-; Thu, 18 Apr 2019 13:38:54 +0000 (GMT) X-AuditID: cbfec7f2-f2dff700000010ca-90-5cb87deea383 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id D9.55.04140.EED78BC5; Thu, 18 Apr 2019 14:38:54 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190418133853eusmtip2f01ec64a6e63024cc71e827bd84e4554~WlSsOeYQF1998719987eusmtip2b; Thu, 18 Apr 2019 13:38:53 +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 3/4] Documentation: devicetree: add PPMU events description Date: Thu, 18 Apr 2019 15:38:31 +0200 Message-Id: <1555594712-18341-4-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555594712-18341-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VSbUhTURju7O7uXs3FdUa+qRiuwjLSpKATmmQFXcsfQtCHSbX0YuJmtqum mTSbpZNMCUuRcvlRylCquWyaLnJDJdFpWVYifdinsyg1UQPNuVn/nvf5OM97DocmJAbSi05I SuGUSTK5VOQqbGyftm78kWW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8fmJfUeB9/tYfLo 27KK0ePzJrkA9ig9m6L80pJUhYz84hJbpWhDCyM9Q0sLPSMTSz1DY/NYKyNTJX07m5TUnMyy 1CJ9uwS9jB97XjMWTOGumL5wEXsD4ybOLkZODgkBE4n+Y71sILaQwFJGiZmTAyDiYhKT9m1n h7CFJf5c64Kq+cQo8W1WWhcjBwebgJ7EjlWFXYxcHCICyxkljq16ywziMAtsY5LYc2U3I0iD sICfxNHd31lAGlgEVCV2/3cBCfMKeEmcX7GNFWK+nMTNc53MIDangLfEl137WCF2eUns2/GD ZQIj3wJGhlWMIqmlxbnpucVGesWJucWleel6yfm5mxiBUbLt2M8tOxi73gUfYhTgYFTi4ZXI 3BEjxJpYVlyZe4hRgoNZSYTXMWVLjBBvSmJlVWpRfnxRaU5q8SFGU6CbJjJLiSbnAyM4ryTe 0NTQ3MLS0NzY3NjMQkmc97xBZZSQQHpiSWp2ampBahFMHxMHp1QDI6vLGt6Fi+Xfb1i9OSZp rsq1bwz8Drw/u09VLtKQklQxXHv3O0tmonqvXWLg6yBjng++IZuO+01p/6zXGK9jvUqpQc57 3bHbsVKnxFnYlPlf36q+erG8ezfj09NLHvv8eeo7w6P8T1q8YOWeS3XGK+ev/zk7YXVgamXa c++fHzuzdszV4GsrVGIpzkg01GIuKk4EAGjjQUioAgAA X-CMS-MailID: 20190418133854eucas1p11bd927755163f0030a1748a023099a06 X-Msg-Generator: CA X-RootMTR: 20190418133854eucas1p11bd927755163f0030a1748a023099a06 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190418133854eucas1p11bd927755163f0030a1748a023099a06 References: <1555594712-18341-1-git-send-email-l.luba@partner.samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 Thu Apr 18 13:38:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10907315 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 0727C922 for ; Thu, 18 Apr 2019 13:39:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4A1227031 for ; Thu, 18 Apr 2019 13:39:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D831928852; Thu, 18 Apr 2019 13:39:01 +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 75A9627D0C for ; Thu, 18 Apr 2019 13:39:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388920AbfDRNi7 (ORCPT ); Thu, 18 Apr 2019 09:38:59 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:49742 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389125AbfDRNi7 (ORCPT ); Thu, 18 Apr 2019 09:38:59 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190418133857euoutp0253f963ecc03e0ca5201de0b924eff8dd~WlSwNZWxo0683106831euoutp02a for ; Thu, 18 Apr 2019 13:38:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190418133857euoutp0253f963ecc03e0ca5201de0b924eff8dd~WlSwNZWxo0683106831euoutp02a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555594737; bh=HLV8RfTTYMJHCpoVzMgMpnDdAuBIjRTs2a5rElTq130=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZP95B7Kq2OhdrD+IOB1OVcIXt4sgsgRwrXs5Ekccd+5PyEFoScMNLlB2Qaucp5J5s ue9sBs0VZZXjmBSkHfKbCOw87Ksjq9sE1IJvJUug6XumXrbCP4PQ28TNqKxO0oc3KM fkwJzbCgzG7OFVya9jNeF7rwHaQWVMEI9eKyGx5I= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190418133856eucas1p2eeda585b068536cdbbc766367c0b1780~WlSvf-CXB0537305373eucas1p2m; Thu, 18 Apr 2019 13:38:56 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 12.D2.04298.0FD78BC5; Thu, 18 Apr 2019 14:38:56 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190418133855eucas1p1db74567290fce23da354ab09d69741e6~WlSuesWtG2247222472eucas1p1_; Thu, 18 Apr 2019 13:38:55 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190418133855eusmtrp2447dce42e5066c5bd8d1a5fa7c7cdc13~WlSuQrpWF2812628126eusmtrp2C; Thu, 18 Apr 2019 13:38:55 +0000 (GMT) X-AuditID: cbfec7f2-f2dff700000010ca-94-5cb87df0a06d Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 9B.55.04140.FED78BC5; Thu, 18 Apr 2019 14:38:55 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190418133854eusmtip2e617380c23a9387f6e6b8d92b32c051b~WlSthc5--2312923129eusmtip2E; Thu, 18 Apr 2019 13:38:54 +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 4/4] DT: arm: exynos4412: add event data type which is monitored Date: Thu, 18 Apr 2019 15:38:32 +0200 Message-Id: <1555594712-18341-5-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555594712-18341-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCKsWRmVeSWpSXmKPExsWy7djP87ofanfEGMy6oG6xccZ6VovrX56z Wsw/co7Vov/xa2aL8+c3sFucbXrDbnGrQcZi0+NrrBaXd81hs/jce4TRYsb5fUwWa4/cZbdY ev0ik8XtxhVsFq17j7BbHH7Tzmrx7cQjRgdBjzXz1jB67Jx1l91j06pONo/NS+o9Dr7bw+TR t2UVo8fnTXIB7FFcNimpOZllqUX6dglcGYtXnmMtWMdbsfvRctYGxlOcXYycHBICJhKdZ7sZ uxi5OIQEVjBKfD/QzArhfGGU+Lf2CjOE85lRYv7hDqAyDrCWF5cFIeLLGSWetU5nh+s4f3IR K0gRm4CexI5VhSArRAQWM0p8OxwFUsMssIxJYl/zJyaQhLBAqET37zesIDaLgKrEljlnmEFs XgEvievTZrND3CcncfNcJ1icU8Bb4suufWDnSQicYpeY1z+FEaLIRaJnxWFWCFtY4tXxLVDN MhL/d85ngrCLJRp6F0LV10g87p8LVWMtcfj4RbCjmQU0Jdbv0ocIO0rce/aHDeJhPokbbwVB wsxA5qRt05khwrwSHW1CENUaElt6LkAtEpNYvmYa1HAPiZ0HFkLDcB6jxK1fn9knMMrPQli2 gJFxFaN4amlxbnpqsWFearlecWJucWleul5yfu4mRmBaOv3v+KcdjF8vJR1iFOBgVOLhlcjc ESPEmlhWXJl7iFGCg1lJhNcxZUuMEG9KYmVValF+fFFpTmrxIUZpDhYlcd5qhgfRQgLpiSWp 2ampBalFMFkmDk6pBkaJw+qf9SYWthcwdX7bOVOwVzlIdAcPpxOfd1Zb+vllnYw9RYE/7u75 H9udctRkOmdhacVN2fpMVb56vz96FrEt1rOKUv1NV7gmsZUy+N/Qll+zUi309eeun48SODVt IhZs9hA+Me9nDHe3jofYx4OVCmXKmz6dlueR3pd5zdhSOFK32PSXEktxRqKhFnNRcSIAK+yv oEcDAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprOIsWRmVeSWpSXmKPExsVy+t/xe7rva3fEGCybrWSxccZ6VovrX56z Wsw/co7Vov/xa2aL8+c3sFucbXrDbnGrQcZi0+NrrBaXd81hs/jce4TRYsb5fUwWa4/cZbdY ev0ik8XtxhVsFq17j7BbHH7Tzmrx7cQjRgdBjzXz1jB67Jx1l91j06pONo/NS+o9Dr7bw+TR t2UVo8fnTXIB7FF6NkX5pSWpChn5xSW2StGGFkZ6hpYWekYmlnqGxuaxVkamSvp2NimpOZll qUX6dgl6GYtXnmMtWMdbsfvRctYGxlOcXYwcHBICJhIvLgt2MXJxCAksZZT4vv89cxcjJ1Bc TGLSvu3sELawxJ9rXWwQRZ8YJe7vncYG0swmoCexY1UhSFxEYDmjxLFVb5lBHGaBbUwSe67s ZgTpFhYIllgzbS0biM0ioCqxZc4ZsA28Al4S16fNhtogJ3HzXCdYnFPAW+LLrn2sILYQUM2+ HT9YJjDyLWBkWMUoklpanJueW2ykV5yYW1yal66XnJ+7iREYKduO/dyyg7HrXfAhRgEORiUe XonMHTFCrIllxZW5hxglOJiVRHgdU7bECPGmJFZWpRblxxeV5qQWH2I0BTpqIrOUaHI+MIrz SuINTQ3NLSwNzY3Njc0slMR5zxtURgkJpCeWpGanphakFsH0MXFwSjUw6ipWHyz9u8NVUHP3 NxcL464re9iq3Bj7BY5fYlaf8E/1xpdL92NXvJPNdTp/XXb6TKWKW4c/fHjBllby6clZBcsk TnP2wkqZvB0X0jau4XEq1t9zbqV7tWxlz8YOrZlRbddCm2+fnbGVMf61fEVQ/xXjx6G+Haf7 kvwtFuV/dbQ6a/bE/Ms/JZbijERDLeai4kQAMTMN4qoCAAA= X-CMS-MailID: 20190418133855eucas1p1db74567290fce23da354ab09d69741e6 X-Msg-Generator: CA X-RootMTR: 20190418133855eucas1p1db74567290fce23da354ab09d69741e6 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190418133855eucas1p1db74567290fce23da354ab09d69741e6 References: <1555594712-18341-1-git-send-email-l.luba@partner.samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 --- 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)>; }; }; };