drm/i915/bxt: Expose DC5 entry count
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Tue, 27 Oct 2015 12:47:03 +0000 (14:47 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 9 Nov 2015 17:15:32 +0000 (19:15 +0200)
For bxt CSR firmware exposes a count of dc5 entries. Expose
it through debugs

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Tested-by: Daniel Stone <daniels@collabora.com> # SKL
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_reg.h

index bf04f5bda32462b23cb9d5729642363e37e7b2d6..8096e96c7d3509a94419ca2856012c5e412233ba 100644 (file)
@@ -2818,6 +2818,9 @@ static int i915_dmc_info(struct seq_file *m, void *unused)
                           I915_READ(SKL_CSR_DC3_DC5_COUNT));
                seq_printf(m, "DC5 -> DC6 count: %d\n",
                           I915_READ(SKL_CSR_DC5_DC6_COUNT));
+       } else if (IS_BROXTON(dev) && csr->version >= CSR_VERSION(1, 4)) {
+               seq_printf(m, "DC3 -> DC5 count: %d\n",
+                          I915_READ(BXT_CSR_DC3_DC5_COUNT));
        }
 
        intel_runtime_pm_put(dev_priv);
index bbfc9d9a5b495f6fcaeb0f89837e90ce43714e2a..083991271060bd70081a91bb1828e3926aa1ce06 100644 (file)
@@ -5700,6 +5700,7 @@ enum skl_disp_power_wells {
 /* DMC/CSR */
 #define SKL_CSR_DC3_DC5_COUNT  0x80030
 #define SKL_CSR_DC5_DC6_COUNT  0x8002C
+#define BXT_CSR_DC3_DC5_COUNT  0x80038
 
 /* interrupts */
 #define DE_MASTER_IRQ_CONTROL   (1 << 31)