From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH 3/3] drm/i915: add i915_ips_status debugfs entry Date: Fri, 31 May 2013 21:42:03 +0200 Message-ID: <20130531194203.GF15743@phenom.ffwll.local> References: <1370028804-3074-1-git-send-email-przanoni@gmail.com> <1370028804-3074-3-git-send-email-przanoni@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f181.google.com (mail-ea0-f181.google.com [209.85.215.181]) by gabe.freedesktop.org (Postfix) with ESMTP id 69F43E6452 for ; Fri, 31 May 2013 12:42:08 -0700 (PDT) Received: by mail-ea0-f181.google.com with SMTP id a11so2080279eae.40 for ; Fri, 31 May 2013 12:42:07 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1370028804-3074-3-git-send-email-przanoni@gmail.com> 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: Paulo Zanoni Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Fri, May 31, 2013 at 04:33:24PM -0300, Paulo Zanoni wrote: > From: Paulo Zanoni > > It just prints whether it's supported/enabled/disabled. Feature > requested by the power management team. > > v2: Checkpatch started complaining about seq_printf with 1 argument. > > Requested-by: Kristen Accardi > Signed-off-by: Paulo Zanoni All three merged into dinq, thanks. -Daniel > --- > drivers/gpu/drm/i915/i915_debugfs.c | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c > index 2eb572a..f5c6917 100644 > --- a/drivers/gpu/drm/i915/i915_debugfs.c > +++ b/drivers/gpu/drm/i915/i915_debugfs.c > @@ -1434,6 +1434,25 @@ static int i915_fbc_status(struct seq_file *m, void *unused) > return 0; > } > > +static int i915_ips_status(struct seq_file *m, void *unused) > +{ > + struct drm_info_node *node = (struct drm_info_node *) m->private; > + struct drm_device *dev = node->minor->dev; > + struct drm_i915_private *dev_priv = dev->dev_private; > + > + if (!IS_ULT(dev)) { > + seq_puts(m, "not supported\n"); > + return 0; > + } > + > + if (I915_READ(IPS_CTL) & IPS_ENABLE) > + seq_puts(m, "enabled\n"); > + else > + seq_puts(m, "disabled\n"); > + > + return 0; > +} > + > static int i915_sr_status(struct seq_file *m, void *unused) > { > struct drm_info_node *node = (struct drm_info_node *) m->private; > @@ -2231,6 +2250,7 @@ static struct drm_info_list i915_debugfs_list[] = { > {"i915_ring_freq_table", i915_ring_freq_table, 0}, > {"i915_gfxec", i915_gfxec, 0}, > {"i915_fbc_status", i915_fbc_status, 0}, > + {"i915_ips_status", i915_ips_status, 0}, > {"i915_sr_status", i915_sr_status, 0}, > {"i915_opregion", i915_opregion, 0}, > {"i915_gem_framebuffer", i915_gem_framebuffer_info, 0}, > -- > 1.8.1.2 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch