From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 2/2] drm/i915: add debugfs interface to control rc6 and rps Date: Tue, 29 Nov 2011 15:12:50 +0100 Message-ID: <20111129140843.GA5667@phenom.ffwll.local> References: <1322571305-1939-1-git-send-email-eugeni.dodonov@intel.com> <1322571305-1939-2-git-send-email-eugeni.dodonov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 4DA139E9D3 for ; Tue, 29 Nov 2011 06:11:33 -0800 (PST) Received: by eekd1 with SMTP id d1so1294399eek.36 for ; Tue, 29 Nov 2011 06:11:32 -0800 (PST) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Chris Wilson Cc: intel-gfx@lists.freedesktop.org, Eugeni Dodonov List-Id: intel-gfx@lists.freedesktop.org On Tue, Nov 29, 2011 at 01:05:03PM +0000, Chris Wilson wrote: > On Tue, 29 Nov 2011 10:55:05 -0200, Eugeni Dodonov wrote: > > This allows to enable/disable rps and rc6 from userspace. This is > > necessary for to have predictable results from hardware counters, and also > > to provide a finer granularity over power control from userspace. > > Reading registers and counters is handled with i915_forcewake_user. So > the question is what benefit does htis give over module reload. It looks > far riskier... The observation architecture bspec says that we need to disable rc6, otherwise we'll get garbage in the gpu perf counters. But imo I think this should be handled in the kernel (we neeed to write tons of funny registers to set things up anyway), at least for the time-based perf counter sampling. For prototyping things with intel_reg_write disabling rc6 at module load time seems sufficient to me. -Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48