Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4746559yba; Wed, 8 May 2019 01:58:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdEmDARnI3VOE60PTWw7wNy2gRUN5aS3oMmNMInkh7vnPtocjUc8BQR0Gf6UWvxuNZjdx0 X-Received: by 2002:a63:5014:: with SMTP id e20mr45537034pgb.2.1557305937863; Wed, 08 May 2019 01:58:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557305937; cv=none; d=google.com; s=arc-20160816; b=mcL4fM26KYA4Yj4wsyCWggngUwH6taeVs5HaSoyY57vxD6InaCGIGRRohXk/w8BRCN 6ZnIaFf70JbwmqRg+kbujf9K3uoLV+KG41lmxF7qxuK+2deS3upH7o3p7oSv7qTLF2m+ FcNc1rg+sDsQDc9/At3nhKeY3KaIL4xKKeSI+fv43G3tZRASuar5e7Y2oNd+DyX2uwCc xiH1M3pDjl5jAjbApz8ooHpcYohMfXkg+eJmqpzuSJy3n6zzqvKgW+Rn4BatV6hH1JXH tzlNaH0ePjnw9MyMraS9UEsQjigT7uCi2MtXjXusLS5NPvHA6KO0sxHlTYlxJ9Seih6i Ni1g== 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=M4mu9eJCCybXEe/MwRtmtZ/unoWjTw3QHUKRuPZGCq8=; b=nZNrdgBVSxLxrrO4P+afMe0WYx5vtn5CgZye/vIgLGlz4XYZpEGE00QBcX+8FpLFbk vyIvFRgrAPQY1KhuL5YItUMUoXLO3pY/gN76HeBvu5qyyIUbMJA+6TVKDgzv+GsiU2Dt y6qKfIXOkw1KPJlRikfI3Vfs7Xx4/cFXNkq6i/vZeRsQVsM2ZjhRk3tNIBVoQmvnO0VK dLoC7RgCknU6qiN42ZNs5o2NDz6Q2Yk9jfxcNzvUtpvdz8FrDyPOoPaY7Bl50ajCUJBv xhRU6NKepa91gFKmRyWeLBAHwLxuHPrtbyNAYWID85lbbUuODIjM7ONmcyfmn1hL8yXv jFiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Uy6wXrmQ; 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 b74si22639269pfj.121.2019.05.08.01.58.42; Wed, 08 May 2019 01:58:57 -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=Uy6wXrmQ; 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 S1726527AbfEHI2A (ORCPT + 99 others); Wed, 8 May 2019 04:28:00 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:47195 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726387AbfEHI17 (ORCPT ); Wed, 8 May 2019 04:27:59 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190508082756euoutp0248d1d9b0efbba8e9e884ddef2cd2fde3~cp85v3--q0645206452euoutp02h for ; Wed, 8 May 2019 08:27:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190508082756euoutp0248d1d9b0efbba8e9e884ddef2cd2fde3~cp85v3--q0645206452euoutp02h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1557304076; bh=M4mu9eJCCybXEe/MwRtmtZ/unoWjTw3QHUKRuPZGCq8=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=Uy6wXrmQTcEYe9xqOBq0vV9FpWIc/SXhUaCR32DFsAqXD38gbdCi+HlPdgOOYD7kR ATuj9mLPXp/DRCRx88R46Y68RbMOahz0qMptUiSfybacBYowYM1AU03zqN/DsQq6ay DZnAKOp9/MYYQO4kE1MfplzRB/mW9N6Mp3JvGjic= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190508082755eucas1p2903df84538b5040ee65b5a63a7df0271~cp846_nvr0525005250eucas1p2U; Wed, 8 May 2019 08:27:55 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 05.2F.04325.B0392DC5; Wed, 8 May 2019 09:27:55 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190508082754eucas1p1e2cd519164630da5c563d523a57335fb~cp84ECnnR2412224122eucas1p1t; Wed, 8 May 2019 08:27:54 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190508082754eusmtrp2dc29a29dfafd2669df0b9310997d1013~cp83w7pXG0448304483eusmtrp2A; Wed, 8 May 2019 08:27:54 +0000 (GMT) X-AuditID: cbfec7f5-b75ff700000010e5-94-5cd2930be523 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 80.6E.04146.90392DC5; Wed, 8 May 2019 09:27:54 +0100 (BST) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190508082753eusmtip206c1e39f35a9bc347c80d2cf32caaf53~cp83DWoZ01049510495eusmtip2W; Wed, 8 May 2019 08:27:53 +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: Date: Wed, 8 May 2019 10:28:03 +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: H4sIAAAAAAAAA01SWUwTURT1dTrTAa0+CsoVXGLxQ4yCCwkvEQkao/3wA4OJRkmwyFiIbHYE RTQWNxREcZcK1CYoUNksjVBiiKksilhADBUIaiwKYXEBl7gi7dTI33lnybkneSwl66Z92LjE /Zw6URkvZ9zF95q+W5dPv/QsckWOhSF3r1fSxPZ5gCa6BitNztuHKdLWViUhT4+NSIjR3kWT zrp8hoznNCByva1eRMob+iTklq1DRHozShgycb9WQh6OZNLk66M3KAwrygrLkMKs7ZMojIYz jKK66KjinMmAFOPGBeHMDveQGC4+LpVTB4buco+tbbokTtbBwYrHNSIN6vXMQm4s4CB4ndFI ZyF3VoZLEFy7YxA5BBn+jOD92whBGJ/EZTb0L9FUk4cEoRjBx8ELYuExiqDiRK4z7om3QsXL LokDe+FF8PPUVWcHhVtpaNdmTiZYlsEBUGvY5/BI8UbI/HSFcWAxXgxjtz848Wy8HV41VdGC xwMe5/U7o254Cwz3hTloCntDT79OJOCFUDOaTzmq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xLHQst2INQGDeZpu3KeZtinmb8gDgFiBkDKy6SM3SYlapZg2aInGBVt0LNk/dP/zL 7gRe26khQJFAtIvfoPEoBISygq1UDwFIYiIh39/oVQj4hcrKK4xOm68zqBh2CKRu7taIxUQV aDcfR6PPp1NpCZLSkmRJchoSRfNvUK8UAqpIqWdKGaaM0f33OGRYTBU4QkyCQE2gdnBMsTMh FzZZd3wp/xpYO5fD0n/LRwbyHPJ6aBc1npnJNDGZgzPKZmgd9I9Z82TDy3GsbUE2v9GZnmOa +MjZ3aDOXrjEjgdWrdm8UnfraWHEgzKfk7h1rMURZ9SYY1XxQ0IPf0DqqdEe97YV7nXZ+ubX r4twtlhJH8R0rPIfFFgdEwADAAA= X-CMS-MailID: 20190508082754eucas1p1e2cd519164630da5c563d523a57335fb 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> <3d221027-292b-7d0d-2510-f230a81f4b52@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/7/19 6:50 PM, Rob Herring wrote: > On Tue, May 7, 2019 at 4:05 AM Lukasz Luba wrote: >> >> 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? > > I think the existing binding which this is based on needs some > changes, so it's pointless really for me to comment on additions. Maybe the bindings description is not perfect, but it contains examples which might help clarifying the idea. Regarding the real value of the patch set, it is needed for some research. Currently, the Odroid xu3/4 is the best 'mainline' platform with big.LITTLE, has good performance and these counters. Willy, who is doing his PhD, wants to experiment with it. I agree that it could be better documented but it requires more effort. I will extend the documentation it in my free time slots (it is not my main task for now). For now, I have received comments and parts of code from Chanwoo which made the next patch set mature and ready to merge (IMHO). If you have suggestions how to improve these bindings or links for good examples, I would really appreciate. Thank you for your time and review. Regards, Lukasz