Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3967357yba; Tue, 7 May 2019 09:52:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTTytmfIHpCvzc0T6OwsD7BBA1QIx2X6eNWMzqzeWdRFqSC702CP6VjeIUUi53dH12vaef X-Received: by 2002:aa7:81d0:: with SMTP id c16mr41643122pfn.132.1557247936337; Tue, 07 May 2019 09:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557247936; cv=none; d=google.com; s=arc-20160816; b=iFw9Ycxj7j5xaEL1nvB3wSgCaeIxgWcgIg09069XpiN5ZjhvA40BR7QXXKZ6uduD7p tGvIy9GSfkGEr8tkj/GyiRVOMMYoJcOfKxuQEv9XRuw9pZvL/kGT07JZQAO/zNUKNBQu TAj2mqP2SYPZ8BFB5aNC9ogNkCyFJOU6yQA7um0xg8DeAnfFgTOgXv5myrnp3rSsEIsh xcvlCDXrmOMC7WabVyIbhTN4dr1UknLglcIYy8t4tVpbwpNA3kyoMYaFu6uja4hwDsB4 K2x7B0Lhbm5HyTEy/5GqK17SSCLdgUh0jk7D6YK714r4NO0j0vaC8fStwuv9OThdtwRX zBeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=4tZewm4W45u/iRbwmWuTzyVbl39+IFYmFh6qEBuo2/Q=; b=erdW4uZD2G77uBfBFRqnhsz1inBrRacPaIEhNrLQFw5G9jy1Ud2kMJgcTYoXEwoRQ2 gdz3sfJd78R+FtLeVRVH4YiyPnsiXHKXMHEmwSQDjwi1oTauYnNco2Uw4zrQEv0XFBlK U/S7yAZxMnV7bYyVJfBDfA76dDPov+cfNE8eOMnHpTXwzfwi70lE6gZlu3JLKPRvvwLD RfWtySKOlSvoshSNGn9qvwPXs0uMRZPwWaNlno+Iuk1hI33kUMY6jAFYQ3nZGbtFJSOk k/Daq0ofrK7NXaXZwKkVvh2WWB2yCdPhxIpIzfGX1W/vD0YI73W71SAd6MNxZwB7LZrt lEZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Uqn/JtYS"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z17si2313208pgl.277.2019.05.07.09.52.00; Tue, 07 May 2019 09:52:16 -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=@kernel.org header.s=default header.b="Uqn/JtYS"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726701AbfEGQuu (ORCPT + 99 others); Tue, 7 May 2019 12:50:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:52872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbfEGQuu (ORCPT ); Tue, 7 May 2019 12:50:50 -0400 Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CE30A20B7C; Tue, 7 May 2019 16:50:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557247848; bh=4tZewm4W45u/iRbwmWuTzyVbl39+IFYmFh6qEBuo2/Q=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Uqn/JtYS4kPRY76N+lJ+ylfSX3jhhKt8bpMbsPUAbhIPq7WbPOkwI7B+bzrRF+mtW rr9fHN54+6u6esuv8V9WbtBn2fLQCuyF7SDLs4bATzuba3qo3XUrWi5tyIGjUg7cWf ohL4+iQdMasZDjhJ/NdA27RT3khpi3Ok67A7e0sg= Received: by mail-qk1-f182.google.com with SMTP id c15so1403744qkl.2; Tue, 07 May 2019 09:50:48 -0700 (PDT) X-Gm-Message-State: APjAAAWU/YvdochfhPJ65wvV2J/RL4XUBsq8SVnpfwMUF95E7Rekw30F Fq7nxqolBxCAObeOF1tB7yWqEeSclDpRbk/xRw== X-Received: by 2002:a37:5c81:: with SMTP id q123mr23947855qkb.29.1557247848038; Tue, 07 May 2019 09:50:48 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <3d221027-292b-7d0d-2510-f230a81f4b52@partner.samsung.com> From: Rob Herring Date: Tue, 7 May 2019 11:50:37 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 3/4] Documentation: devicetree: add PPMU events description To: Lukasz Luba 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Rob