[Intel-gfx] [PATCH 3/3] drm/i915: add i915_ips_status debugfs entry
Daniel Vetter
daniel at ffwll.ch
Fri May 31 21:42:03 CEST 2013
On Fri, May 31, 2013 at 04:33:24PM -0300, Paulo Zanoni wrote:
> From: Paulo Zanoni <paulo.r.zanoni at intel.com>
>
> 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 <kristen.c.accardi at intel.com>
> Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
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 at 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
More information about the Intel-gfx
mailing list