Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp378386yba; Thu, 18 Apr 2019 02:53:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyFwDSu1hBu8a8utDTgaeoQtEAmlQENiEVdQde359icB6qHZhKmDnMbm89rIFPTJc76gJLJ X-Received: by 2002:a17:902:6b03:: with SMTP id o3mr94518182plk.226.1555581231328; Thu, 18 Apr 2019 02:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555581231; cv=none; d=google.com; s=arc-20160816; b=P9HW/2Ij+OPNr63zY0dPTmgYf9A2BkEACMQe14Z4ghW6qaQCyjV55/HuHcKbhI6EFx XDjWme/DsYBoItIVmHVz8lNbHiBgsNT9Tzt+UD64rVitUf5sr9CR1Rzlt4uWKSurAfKl lbJxJj+tS6rb/+JF4Fa0VBoQpM9zM1yd7M6FA7nTM+XJ78SW1YJHQ3Nlkw0dtHIQUY9G vi4CTR05wlTVlQti0KBkd4fDzzr01zv5A5QLaJYy6lS3Xb3aT+BPfoxtGXWjS1p1uvNM VPb13q9NQwsOUZPyM8q+wEPHkGoNWqO/1xdG6kkgVwRavabz4k4HhzfnHbNWU3BBmCG6 Zu1Q== 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 :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=XlqFo64OpA4M2BnDSdVN7DWkiQzakanWPd1XvuFCBlk=; b=gqvmMFxzFtLQjn4fH4+xqJLxM347KZreiU+CgJt2PdJ9B7yXZlPGKfBhS6KmN4ZCCN SmAuA3MotQ5cXTibgqFN5uTp6KytMqu3S8qumCNU+a2g7T9dj+OwY4B8FEuAWs+BbRY8 iZy3dewYsyIKBb10zlahXpay6BCYzCqt8U+z2UpnF9ECYd9oX8+P9guMdGRYhZH/D2T4 y2JmCiRiWe1mwL/IRshufz/p43H5jRINRjafctD916dyCu78LOLr+RcnA3ZzVYT7SWxr EjTjMSr7AF4SixRXCtKUbjdFz/7clBdrjX/qPYS1R/VatdIDU8vkmCCIq192P7t5T7ut Sz1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="J6/Ev2dw"; 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 g37si1717131plb.180.2019.04.18.02.53.36; Thu, 18 Apr 2019 02:53:51 -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="J6/Ev2dw"; 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 S2388536AbfDRJur (ORCPT + 99 others); Thu, 18 Apr 2019 05:50:47 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:33853 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388451AbfDRJuq (ORCPT ); Thu, 18 Apr 2019 05:50:46 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190418095045euoutp01c8e5d07d79eac374895d81b7911c196a~WiLf27Vll0640506405euoutp01- for ; Thu, 18 Apr 2019 09:50:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190418095045euoutp01c8e5d07d79eac374895d81b7911c196a~WiLf27Vll0640506405euoutp01- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555581045; bh=XlqFo64OpA4M2BnDSdVN7DWkiQzakanWPd1XvuFCBlk=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=J6/Ev2dw+oo8ma+fMGq14Rd/DgWGrFnStRDcUMfxLP/yajwM6iHkD3p4wkX+EMm4p FztUmuZtw57vJ471sriJglu2PJSDVXV7hjh6Wbockg+FZmrgo3fUmjvbrqJCO5vMDq wjk8+5lZLyqRnd7/qSi4eqN+RWyhGEKB5IvAL+pk= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190418095044eucas1p27932d434c588c36df892d573a09524eb~WiLfLL1Rz2827628276eucas1p22; Thu, 18 Apr 2019 09:50:44 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id DF.F1.04325.37848BC5; Thu, 18 Apr 2019 10:50:43 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190418095043eucas1p25a9c84f12fd8edfe1748f70257e604ff~WiLeapQ6w2825328253eucas1p2u; Thu, 18 Apr 2019 09:50:43 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190418095043eusmtrp13e1c4a44f49ebb6a722bbb637b8834bc~WiLeMWs5T2722127221eusmtrp1A; Thu, 18 Apr 2019 09:50:43 +0000 (GMT) X-AuditID: cbfec7f5-b75ff700000010e5-83-5cb84873ac21 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id C6.C8.04146.37848BC5; Thu, 18 Apr 2019 10:50:43 +0100 (BST) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190418095042eusmtip2f5294e9e1fee167a3306b1b372d77a1b~WiLdhyoH83051630516eusmtip23; Thu, 18 Apr 2019 09:50:42 +0000 (GMT) Subject: Re: [PATCH 3/3] Documentation: devicetree: add PPMU events description To: Chanwoo Choi , 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, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com, kgene@kernel.org From: Lukasz Luba Message-ID: Date: Thu, 18 Apr 2019 11:50:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <0d867843-ec56-f30b-8a3f-b3172f325bef@samsung.com> Content-Language: en-US Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA02Se0hTYRjG+3bO2Y7D2XFqvpglLcSM1C5SB7JSsFoUXSm8QU49qOR1R811 IU3KNC9dzHRqVijaMDSdOgUldDrMbIp5y2yWlpFJhVsUhNXpKPnf73m+5/2+94GPxKRGwomM jktilHGKGJlQjDd1/3zhwcp1IZt/fvOhnxTVEvSIeYagy/UvCDp/ahajjcY6Ed13+bOIrp8a JujB1lIhPZ+rR3SRsV1AP9ZPiOjKkQEBPZ5eLaSvtOlFdOfnTMJ3pbzmXg2S12uyhPKGikvy PK0Gyefr1x4lgsQ+EUxMdAqj9NodKo6afNQsTKi0Ta3qVQvSULpNNrIigfKGFss7PBuJSSlV jaBy8sOiMCPIK9ULuJSUmkcw89tlacJs6l8MVSHoGc7CeDGHoFSv/TtBknbUMWgzXuJ8e6oH QW76BMEJjHqJ4L35IcaFhJQn6DSJ3K0Sah809T3FOMYpV6g0jeI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AtJ+ywkLbOQtMxC0rKAkWUVo0hqaXFuem6xoV5xYm5x aV66XnJ+7iZGYBRvO/Zz8w7GSxuDDzEKcDAq8fCuUN0eI8SaWFZcmXuIUYKDWUmE1zFlS4wQ b0piZVVqUX58UWlOavEhRlOg5yYyS4km5wMTTF5JvKGpobmFpaG5sbmxmYWSOO95g8ooIYH0 xJLU7NTUgtQimD4mDk6pBsa5DoG2EnwXS9XCCpZ6zlfqynUwZDx9U+/vt+QHMx0iq+x4Vb58 UVSbd+VqQqjjip9nNAKnBT5I7HiX+fC8WeeT3Y+uCTxeJn6sMykiN4g988m+Y2LFW+q/vJ0a PD9h+p2fwf1+R50YVOVsf8SzVb9e/PLAweJVb29Hz05atSa6YVpi8mq1qUeUWIozEg21mIuK EwGgt0o3+AIAAA== X-CMS-MailID: 20190418095043eucas1p25a9c84f12fd8edfe1748f70257e604ff X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190417074835eucas1p19319bedd176d55e10b272881b7c68919 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190417074835eucas1p19319bedd176d55e10b272881b7c68919 References: <1555487288-4777-1-git-send-email-l.luba@partner.samsung.com> <1555487288-4777-4-git-send-email-l.luba@partner.samsung.com> <0d867843-ec56-f30b-8a3f-b3172f325bef@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chanwoo, On 4/17/19 10:26 AM, Chanwoo Choi wrote: > Hi Lukasz, > > On 19. 4. 17. 오후 4:48, Lukasz Luba wrote: >> 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 > > I replied about 'pmu' name on patch2. Please check it. Yes, I've seen it and responded. > >> +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. >> > Looks good to me. > But, If you want to add the new 'event-data-type' property, > you better to add 'event-data-type' to Exynos dts file including > PPMU device. > > If the dts file contain the data type information, > I think it is easy to understand for the user > what is monitoring on PPMU device. Make sense, I will do that. It will be explicitly telling the user what is currently monitored in the PPMU device event. Regards, Lukasz > >