From: Daniel Vetter Subject: Re: [Intel-gfx] [PATCH] drm/i915: add a tracepoint for gpu frequency changes Date: Mon, 3 Sep 2012 09:56:33 +0200 Message-ID: <20120903075633.GG5225@phenom.ffwll.local> References: <1346326008-11186-1-git-send-email-daniel.vetter@ffwll.ch> <06ae216a0855cba921de7ebdcc75acb4@bwidawsk.net> <504253E7.9050207@linux.intel.com> <92c9f07349e6acf42f5ed7182046aff2@bwidawsk.net> <93961e626f56a87710fcc5c218b570fa@bwidawsk.net> <5042C801.9080200@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 52A839E738 for ; Mon, 3 Sep 2012 00:56:04 -0700 (PDT) Received: by wibhn17 with SMTP id hn17so2753444wib.12 for ; Mon, 03 Sep 2012 00:56:03 -0700 (PDT) Content-Disposition: inline In-Reply-To: <5042C801.9080200@linux.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Arjan van de Ven Cc: Daniel Vetter , Ben Widawsky , Intel Graphics Development , DRI Development List-Id: dri-devel@lists.freedesktop.org On Sat, Sep 01, 2012 at 07:44:17PM -0700, Arjan van de Ven wrote: > On 9/1/2012 6:36 PM, Ben Widawsky wrote: > > > It depends on what you're trying to measure. I think this patch is quite useful but I think I'll make you defend your patch now since you're the maintainer and you took > > your own patch and you're shooting down my idea. So please tell me what PowerTOP should do with this patch other than notice we're stuck (and furthermore, even if we're > > stuck, what should it tell us to do)? > > what I would like to do, as the powertop guy.... is to show frequency stats similar to how we do that > for CPUs. E.g. as close as to actual as we can get. > few questions: > 1) Can I read the momentary frequency somewhere? > (it's great to get change events, but I also need a start frequency, otherwise I have a gap in > knowledge from start of measurement to first change event) Oops, forgotten about this, but it looks like Ben has already volunteered himself for those ;-) > 2) Can I read a "hardware average" somewhere, similar to what we can do for cpus ? Afaik, there's nothing. But since the cpu controls the gpu freq completely, you can just compute those yourselves from the tracepoints. Together with the rc6 residency timers we already expose this should give a neat overview of how busy the gpu is and how much power it blows through -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48