Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3496218yba; Tue, 7 May 2019 02:06:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxx8RTDzvclttnjgbWqxbNuFG7HoquPK93218gpkLRYSwwv9FW2ikbpgJYNEzMXtK1CK8e6 X-Received: by 2002:a17:902:7b8d:: with SMTP id w13mr12104889pll.252.1557220010164; Tue, 07 May 2019 02:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557220010; cv=none; d=google.com; s=arc-20160816; b=yI4jQyMqKozddYZ58hRYYbWSPIW+Tam6w1nDeyGPhBE2G5/YKwciKyIaRjzIHJI44n dH02NRaZs5XbwnCvotdVVYADvwQ3Lg9jSfhejPuVQyizlmnzIHT4mea0pfj+6gy+2mAQ nTg9QVjIIspLccrCV5fTnkSDl1jYFbNmsvvsEuLTQzUx5ny4nV4Ai16X2Z2xisrFnBgX V222D5lJ0eiWWC5eMhLKqlEXCF1fI77TUwkiO2Jj/UlcV0qRmnoaqJ48k2Pb6ncMwwOi xsIQj4Uk5+sjQ4bNXjnpxUlssao8PejSeXaCIzmRTDByn0unmd5vkz49Y15QreptyXmQ wTFQ== 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:cc:to:from:subject:dkim-signature :dkim-filter; bh=Ukf+FLcqAF3cEVXKTbQFGjd2gzyerf+1cQvBi47rjTU=; b=FzayoPU5aG83bs1qNxD37E1KDIVRmeOg36DVw5KcT9F+TvVanWUIeLNlYZSZ+AMoDS /NHJw5kag2lTh6o/ZTyPZEnBxsyYkI+iAWVKCZolF2OYTwCCJKS5YRqfIWUYfFZNR66h g5VsKQmbo2d7zqCU2PxEV7HxeVrErYmYUUckbquVuAEd3i72MdCKGOfwYcRJYrSPjRyW QSV3qG9Tw3c0xAFDDb7DDzyrc/K/7ybqXzWWcegyk6zspOZlS0xjJ/6nY+CJxf6hr0IM CZy4EtrLvxNPPsZt9j0Bp6q/S0oZ6pvCwTy5UDWIxY5ajKNCESakDSciol5SiazmxG1B 74cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=oESQ57Q+; 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 d4si18337826pgc.304.2019.05.07.02.06.31; Tue, 07 May 2019 02:06:50 -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=oESQ57Q+; 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 S1726451AbfEGJFi (ORCPT + 99 others); Tue, 7 May 2019 05:05:38 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:44292 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726327AbfEGJFi (ORCPT ); Tue, 7 May 2019 05:05:38 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190507090536euoutp027c2401f17f1d8d512e3ef3c449549f70~cW0gQIi-h2596725967euoutp02U for ; Tue, 7 May 2019 09:05:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190507090536euoutp027c2401f17f1d8d512e3ef3c449549f70~cW0gQIi-h2596725967euoutp02U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1557219936; bh=Ukf+FLcqAF3cEVXKTbQFGjd2gzyerf+1cQvBi47rjTU=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=oESQ57Q+uc54HIJ91fJzUQOwmfe0jjkbA2i3J5cuHk6Vp8QkhbcY+ti7BUCe6fZ8J VGd4XJUBYHe9vEaGGMPfqd8BHEET9uH1uyOxPztvC+DHLJM1n/t+ZVkjNBjoux3xt/ QyifCw8f1I4nDILwUonTV5/osasGLhNQbQuXFGyE= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190507090535eucas1p1eeff1030a0df912b00643c9273cc6d72~cW0fM8Bm23257032570eucas1p1p; Tue, 7 May 2019 09:05:35 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id EA.90.04325.E5A41DC5; Tue, 7 May 2019 10:05:34 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190507090534eucas1p2f6624c19f0c2d2b084bddcc72d544a60~cW0eVsZMY2656426564eucas1p2P; Tue, 7 May 2019 09:05:34 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190507090533eusmtrp1aefae86a1bd5f3855c85ddf8ff2df8ff~cW0eHdzcR3169331693eusmtrp14; Tue, 7 May 2019 09:05:33 +0000 (GMT) X-AuditID: cbfec7f5-b75ff700000010e5-5e-5cd14a5ed4c8 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id E9.35.04140.D5A41DC5; Tue, 7 May 2019 10:05:33 +0100 (BST) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190507090533eusmtip20d4a7dacfddd5212fbd5671d0e54bc67~cW0ddmHD72340623406eusmtip2D; Tue, 7 May 2019 09:05:33 +0000 (GMT) Subject: Re: [PATCH v3 3/4] Documentation: devicetree: add PPMU events description From: Lukasz Luba 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 Message-ID: <3d221027-292b-7d0d-2510-f230a81f4b52@partner.samsung.com> Date: Tue, 7 May 2019 11:05:33 +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: <97277857-666d-7720-9d85-19120c977682@partner.samsung.com> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02SfUhTURjGPbu7u9fV5DgrXyqKRmIJzbKIS99F1IqooJA+pFp50dG2bFdd X5AWZJpLUzAbliWZ08yPKWqSS1S0stqWYJFf6VZWumJsBaFWzrvI/573eX7nnPeBQxPSHnIu rdImsjqtUi0TiYV17b+sy47stMcsH2lcxlTnV5LMW+8wyRS2vSaZLMcIwVitVRTz6tIoxZgd 3STT1VggYjyGNsTkWy0C5lFbH8UUv7ULmJ5Uk4j586SBYlpH00jm57MhtAkryu+UI8VjYx+l MJelixQ19y8qrteWIYXHvGCv6JB4XSyrViWzusgNx8TxTUX5goSxoDPXClJRCkqfmYECacCr oP5BFpGBxLQUmxB8cT0R8YMXwf1BD8UPHgTO/HT070ha3m9/UIKgdcAj5AcXgvHv7ZSPCsH7 oaK/e1LTtAjLoaHstM+ehRfB2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CIkz71ewQNQISpyc+QTM5hRwl3g9 fz9YL7OAmcS8zQ+ZIWxxiVtP5jNB2PIS29/OYZ7AKDQLSfssJC2zkLTMQtKygJFlFaNIamlx bnpusZFecWJucWleul5yfu4mRmBcbzv2c8sOxq53wYcYBTgYlXh4H9heiBFiTSwrrsw9xCjB wawkwpv47FyMEG9KYmVValF+fFFpTmrxIUZToOcmMkuJJucDU05eSbyhqaG5haWhubG5sZmF kjhvh8DBGCGB9MSS1OzU1ILUIpg+Jg5OqQZGrnPM25azl7jyGalVRxxusHEs1BFiak3u031c +qz3kMjpuTVdx3rlf+lE7GWbv03nqkrgrMytLSpfuvNPfPl8339x6svtIhV52xkXrmqwvWUt vudVvM6ysimVt/6eEsqqq3Xi/Pv47fyo1Uo/fM4tKXYo7OHWKxYw2vzEw3VbhOWL6OWXVzEo sRRnJBpqMRcVJwIAomVimwEDAAA= X-CMS-MailID: 20190507090534eucas1p2f6624c19f0c2d2b084bddcc72d544a60 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> <97277857-666d-7720-9d85-19120c977682@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/6/19 12:29 PM, Lukasz Luba wrote: > 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 >> >> Can I send the next version of the patch set, which has Chanwoo's suggestions, or do you have some objections to this PPMU entries? Regards, Lukasz