]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/i915: vlv: add RC6 residency counters
authorImre Deak <imre.deak@intel.com>
Mon, 14 Apr 2014 17:24:24 +0000 (20:24 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 25 Apr 2014 07:50:24 +0000 (09:50 +0200)
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_reg.h

index 1e83ae45041c161ca40111f0dfd2147505dd6607..02f1b39fce3661f7d01c8a867efe2c6636105d91 100644 (file)
@@ -1261,6 +1261,11 @@ static int vlv_drpc_info(struct seq_file *m)
                        (I915_READ(VLV_GTLC_PW_STATUS) &
                                VLV_GTLC_PW_MEDIA_STATUS_MASK) ? "Up" : "Down");
 
+       seq_printf(m, "Render RC6 residency since boot: %u\n",
+                  I915_READ(VLV_GT_RENDER_RC6));
+       seq_printf(m, "Media RC6 residency since boot: %u\n",
+                  I915_READ(VLV_GT_MEDIA_RC6));
+
        spin_lock_irq(&dev_priv->uncore.lock);
        fw_rendercount = dev_priv->uncore.fw_rendercount;
        fw_mediacount = dev_priv->uncore.fw_mediacount;
index bb60e5001ba53b56fa8a47f889b5e77713b81d4b..0eff337a572059e229defa84b911143c7bf90455 100644 (file)
@@ -5137,6 +5137,9 @@ enum punit_power_well {
 #define   VLV_MEDIA_RC6_COUNT_EN               (1<<1)
 #define   VLV_RENDER_RC6_COUNT_EN              (1<<0)
 #define GEN6_GT_GFX_RC6                                0x138108
+#define VLV_GT_RENDER_RC6                      0x138108
+#define VLV_GT_MEDIA_RC6                       0x13810C
+
 #define GEN6_GT_GFX_RC6p                       0x13810C
 #define GEN6_GT_GFX_RC6pp                      0x138110