tools/intel_reg_dumper: retrieve rc6 residency values
authorEugeni Dodonov <eugeni.dodonov@intel.com>
Mon, 19 Dec 2011 18:25:53 +0000 (16:25 -0200)
committerEugeni Dodonov <eugeni.dodonov@intel.com>
Tue, 3 Jan 2012 17:18:06 +0000 (15:18 -0200)
This allows to check if rc6 works, and how long have we been in each
state.

Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
lib/intel_reg.h
tools/intel_reg_dumper.c

index 933a83a..4e2c735 100644 (file)
@@ -3502,4 +3502,10 @@ typedef enum {
 #define  PORT_DBG_DRRS_HW_STATE_LOW     (1<<30)
 #define  PORT_DBG_DRRS_HW_STATE_HIGH    (2<<30)
 
+/* RC6 residence counters
+ */
+#define RC6_RESIDENCY_TIME          0x138108
+#define RC6p_RESIDENCY_TIME         0x13810C
+#define RC6pp_RESIDENCY_TIME        0x138110
+
 #endif /* _I810_REG_H */
index c167813..e9eb0ff 100644 (file)
@@ -1694,6 +1694,10 @@ static struct reg_debug ironlake_debug_regs[] = {
        DEFINEREG(PCH_PP_DIVISOR),
 
        DEFINEREG2(PORT_DBG, ivb_debug_port),
+
+       DEFINEREG(RC6_RESIDENCY_TIME),
+       DEFINEREG(RC6p_RESIDENCY_TIME),
+       DEFINEREG(RC6pp_RESIDENCY_TIME),
 };
 
 static struct reg_debug i945gm_mi_regs[] = {