Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7636085yba; Thu, 2 May 2019 13:25:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEIWfJC9cZUz8gphF7KsmUsFlLJfJBvibX6/VJspXZ9LCzvHeqGOU/S90y5Je+QuBSs4lO X-Received: by 2002:a62:125c:: with SMTP id a89mr6245205pfj.93.1556828746717; Thu, 02 May 2019 13:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556828746; cv=none; d=google.com; s=arc-20160816; b=i33UsGJZD/skxt5mERpUBNgfqyn9epIv/HnQLkzd1oKFzVmdbc1v8ZiFHlOFpLP7G4 C0Os4MmV38N+qe2wwrIXaZ7gwehcvyGmyMaATX0uwJHG2CHHBtHv7F5EXkaVRhEA8d2i VbeNk6ID0UeJzJk8zEgtMtz/0UtLBMohq/iOc4q2WvYUuSQ1BgiDawPY+EJpHB6dYWOK k+6fCGHCc92JWthbRvy3fFZFSzqdEU9HySoWON5uE0/lZ/4nUwfxaA0vAqf9OOd/e+2U ON1AADqqxiHMyxmVkU2tjWWJqfNxqqoDvLWJ6ysTC+QJnTP3+F35OsbC8eEoGXBNOAlM rCUA== 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=fPysuS9QGjjgbk9tLRamHIsNsWi799oVziR6RsQ3XTc=; b=doQT6It0Owl/LAuEvOqK/p8qZYUNowRYFTf+dQEILPN6E8iCFlTzfn7mp2kzYmhNx6 AWxO5S6P2m+KxOx6TF6fd+kQKooMZZqSNP1CxOqcdCfVkSEuz1+51HUfooE5tw/MuRFl uB5uUz4kgi/jZMeosWWWTSP9CE9Vfrjd/5JOXfR6GXAOR46vXzj7fJD3UqfoiOmSx9Tf xvY3v4+N6vQNViezMj1MP++kbU+CysqOnauWabwBoNdUOP4G+7dAJ3f9X2XxQaZXcP3j 3n/qKeBAChG/O+4LureSAQ3fr9Ok4LzJmQ4u/r7JCk80cvRv4w8Dybrhdx1vHfJOoHEi xl6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=B5FzbdvY; 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 33si195039plh.3.2019.05.02.13.25.31; Thu, 02 May 2019 13:25:46 -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=B5FzbdvY; 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 S1726381AbfEBUYd (ORCPT + 99 others); Thu, 2 May 2019 16:24:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:49776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbfEBUYd (ORCPT ); Thu, 2 May 2019 16:24:33 -0400 Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (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 027E620C01; Thu, 2 May 2019 20:24:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556828672; bh=fPysuS9QGjjgbk9tLRamHIsNsWi799oVziR6RsQ3XTc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=B5FzbdvYNHyOzaACD9WnyFZMcLJAtiwUAT7VXwkycVlj1ywQdTL8YZQmE38MoGiZS eJl9nziJNk5N7ip2vO/yzjxNUdRPQz4y0Mii5QzP4X0RhwXQVDrY9oxBMciQcU9kKp w/z33u8QovQFpjrHmcUgbqjbLfH4vs1hkIiA4Cz4= Received: by mail-qt1-f177.google.com with SMTP id p20so4205810qtc.9; Thu, 02 May 2019 13:24:31 -0700 (PDT) X-Gm-Message-State: APjAAAVyNpqnmf8M/COWusVcDQJ9AHa/OCZ1CW0mAMwLMbr+K3FjjJSa KHdbRLyV8v1MFVcWO1g8TMq6Wo44q3cjFgn/0w== X-Received: by 2002:a0c:9066:: with SMTP id o93mr4888171qvo.246.1556828671176; Thu, 02 May 2019 13:24:31 -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> In-Reply-To: <1fd44623-4a59-f014-1ae9-a7cc605ad30f@partner.samsung.com> From: Rob Herring Date: Thu, 2 May 2019 15:24:20 -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 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. Rob