Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2294289yba; Mon, 6 May 2019 03:30:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1cVvX8DRv+U3jVfSdf9qpUmccm5yqJE56bptc8J7SJs53YIRLQd7HVYf6j9rWoA3gserc X-Received: by 2002:a63:42:: with SMTP id 63mr31187368pga.337.1557138653731; Mon, 06 May 2019 03:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557138653; cv=none; d=google.com; s=arc-20160816; b=pLYG02wm1j54DenxaSi3JKEJ4i4otOrgn3CYXQUCwQkuviLEAdwWkNemRTVyrX+wF+ 76N8FUf/OtXxg8TI/fYFblyB3L/bwLSATHN/HM476+5VUZQv0o7+jHjD4MIYOuULuBx3 mHRaNRZFtekdXZNljhf9WypLpJTgFYc+GyWUTGKb1iwQuv5BLzLnwUXUrwbNlUPEVcEg WYzPMYFdsi+WeAWXcxvcwts8ZJ1VpW+CDhSZfofUxx+Qxt42Hrkr3k3aeopLgca8yGlc 7uXSzWy5U1NFFaY0gVRHBN3M+4959jsT2kqa4/mhYLdPSBnQLPNkrXKlS3UajFagy0nn BfDQ== 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=1Zxj4PqvwivxAPF6w95dS0sI9tHHMuUsGPtKoed7y/0=; b=xOHWyRjADR0ZJc4QKHpVwFuO+E+sV3SrKiUDqd6e0zb4Mx9INihdu5hyGot5s/rLdi vzYT/l6DlYm2QNf6+RpdaXb1DPdkB/bDQ0+fe9V2pVHYhsWrcnkpbl45+wjkyrhJ4Zqg xuLuvxZ9tPn+/ZsDlqZW0kfgfuZ3mDvAADbYh6Za8i+t/MWY9E6vL8Ttg5T029OX0MyD U3YV3U4rnoG6dKG5fQLGqwiSDqpgfnGKOMl5whs7LQINPTXjVtvhqfTk0vOVIXBRQv1M Rn6wV13wBH60iEMaDaz095nD40LCbQSH/478S/yk1QeTh/FBPfUwyt791to97Fn3LjHt DSrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Gb958JLS; 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 e22si14616243pgi.66.2019.05.06.03.30.38; Mon, 06 May 2019 03:30:53 -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=Gb958JLS; 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 S1726381AbfEFK3p (ORCPT + 99 others); Mon, 6 May 2019 06:29:45 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:50735 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725856AbfEFK3o (ORCPT ); Mon, 6 May 2019 06:29:44 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190506102942euoutp012eacdc1943ea17ba0cacb0147bc9a57b~cEUqB5GuQ2844528445euoutp01B for ; Mon, 6 May 2019 10:29:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190506102942euoutp012eacdc1943ea17ba0cacb0147bc9a57b~cEUqB5GuQ2844528445euoutp01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1557138582; bh=1Zxj4PqvwivxAPF6w95dS0sI9tHHMuUsGPtKoed7y/0=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=Gb958JLSKuhMoy6HkhEyV7Mk01thn6AleP6oKBL4N+STSSvS7jwSQOM7bbrbGkiAd x6n6/Wvfg2z5A029EoR1LFALbIacRjHSO8Vw4YuzZ7ekiF5MYj8zHuki/Q4xbchSZI 8aGT53rbUCrNhT5jA3umZ7BFD8OjJNzngvq78aJw= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190506102941eucas1p13c11436a32f3a0770ad3be1a982a263b~cEUpIJWCm1056610566eucas1p1U; Mon, 6 May 2019 10:29:41 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 73.4D.04377.59C00DC5; Mon, 6 May 2019 11:29:41 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190506102940eucas1p1ee62c58e1fc8ffa155cf1710baa82548~cEUoQxyBK0861308613eucas1p1x; Mon, 6 May 2019 10:29:40 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190506102940eusmtrp112e35268797a7148d8ca48cce4162727~cEUoCo97o2720527205eusmtrp1N; Mon, 6 May 2019 10:29:40 +0000 (GMT) X-AuditID: cbfec7f4-12dff70000001119-95-5cd00c95580a Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id D6.57.04140.49C00DC5; Mon, 6 May 2019 11:29:40 +0100 (BST) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190506102939eusmtip166c1968f0a5a51232c34544383386cf3~cEUnP8XUo0073300733eusmtip1L; Mon, 6 May 2019 10:29:39 +0000 (GMT) Subject: Re: [PATCH v3 3/4] Documentation: devicetree: add PPMU events description To: Rob Herring Cc: devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , "open list:THERMAL" , linux-samsung-soc , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , Mark Rutland , Chanwoo Choi , Kyungmin Park , Marek Szyprowski , Sylwester Nawrocki , MyungJoo Ham , Kukjin Kim , willy.mh.wolff.ml@gmail.com From: Lukasz Luba Message-ID: <97277857-666d-7720-9d85-19120c977682@partner.samsung.com> Date: Mon, 6 May 2019 12:29:38 +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: Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02SbUyNYRjHu8/z2lknd4d0iWkefaBNaD7cphkmzjeahtFw6FmikvOU900y p6S3Fac6S2Veau3k5JRU3iu9rHJCq5QwpUYdTLEsSU9Ppm+/+7p//93/a7t5StvFePJhkdGi IVIfLrBqurzul33ZFZfW4BWmpMXkTpaVIR0jAwzJq33OkNTeQYrY7SUcaYkb4oitt50hr6py WDKcXItIlv2RihTX9nDkZscLFek+V8iSiQcVHKkZimfIz4YPaB3WWXItSFdp7uF0tqKLrK70 xlldSlkR0g3bFm5ld6n9Q8TwsGOiYfnafeqD1oEGOqrT5cSjpy+pWGRTJyJnHvAqmOj+xiUi Na/FhQjSU5pp5TCC4ElsMSVbWjyM4OWtkH+JrxktjCIVIGhr/jGdcCC4bMpiZWs2DoLbb9s5 mefgRTBmNE0lKNzMQKs5fjLB8yz2hYqio7KjwZvAktbIyExjb0i8mzDF7ngnvKsrYRTHDRqz +2iZnXEgpA1dm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aSlgWMLKsYRVJLi3PTc4uN 9IoTc4tL89L1kvNzNzECI3vbsZ9bdjB2vQs+xCjAwajEw+uhdD5GiDWxrLgy9xCjBAezkghv 4rNzMUK8KYmVValF+fFFpTmpxYcYTYGem8gsJZqcD0w6eSXxhqaG5haWhubG5sZmFkrivB0C B2OEBNITS1KzU1MLUotg+pg4OKUaGDeoRlxTe3Xhna9yipRq42r5gzyPJ6gXTHI/vzBq4s0z LO/dDNcGsiyL5w72XpAq7FazRbG/7x/7lDLFZx4mlXPn7PhfYH7++7Hdn00mn43mVhe7PX/L ba17Gt/3Tll347BZxO1nWUvNFCsYbvo9mFvJKHjjbrhFvaN25l1v1rSK7WGXZj05wqXEUpyR aKjFXFScCACXdFxBAgMAAA== X-CMS-MailID: 20190506102940eucas1p1ee62c58e1fc8ffa155cf1710baa82548 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" 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> <1555681688-19643-4-git-send-email-l.luba@partner.samsung.com> <20190430223629.GA22317@bogus> <1fd44623-4a59-f014-1ae9-a7cc605ad30f@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On 5/2/19 10:24 PM, Rob Herring wrote: > On Thu, May 2, 2019 at 3:52 AM Lukasz Luba wrote: >> >> Hi Rob, >> >> On 5/1/19 12:36 AM, Rob Herring wrote: >>> On Fri, Apr 19, 2019 at 03:48:07PM +0200, 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. >>> >>> Why do we need event types in DT? We don't do this for other h/w such as >>> ARM PMU. >> In ARM PMU all the events are hard-coded into the driver code i.e. in v7 >> arch/arm/kernel/perf_event_v7.c >> and are seen from perf. They are different type and for different >> purpose. The Ecynos PPMU events are not seen in perf, they are >> for internal monitoring and must not be reset by other actors like perf. >> They are used by the 'bus drivers' to made some heuristics and tune the >> internal settings, like frequency. >> >> Chanwoo has written PPMU driver which relies on DT definition. >> The DT events are used by other DT devices by phandle. > > How is that done? I don't see anything in the binding for that. Here are the DT devices and how they are pinned together: - declared devfreq events: https://elixir.bootlin.com/linux/latest/source/arch/arm/boot/dts/exynos4412-ppmu-common.dtsi - devfreq events pinned to the bus device: https://elixir.bootlin.com/linux/latest/source/arch/arm/boot/dts/exynos4412-odroid-common.dtsi#L107 - the bus device itself: https://elixir.bootlin.com/linux/latest/source/arch/arm/boot/dts/exynos4412.dtsi#L457 Regards, Lukasz > > Rob > >