summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni.dodonov@intel.com>2011-12-19 16:25:53 -0200
committerEugeni Dodonov <eugeni.dodonov@intel.com>2012-01-03 15:18:06 -0200
commit47a5bc505cb972cc94f1fbd9882d4e5c2e72ac43 (patch)
tree58fc0e90eea57954a19c36b86c0be45b8ab81fa5
parent1649ab350f60b664a51fc4a7fd9c225bb72eb0a8 (diff)
tools/intel_reg_dumper: retrieve rc6 residency values
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>
-rw-r--r--lib/intel_reg.h6
-rw-r--r--tools/intel_reg_dumper.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/intel_reg.h b/lib/intel_reg.h
index 933a83aa..4e2c735d 100644
--- a/lib/intel_reg.h
+++ b/lib/intel_reg.h
@@ -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 */
diff --git a/tools/intel_reg_dumper.c b/tools/intel_reg_dumper.c
index c167813c..e9eb0ffc 100644
--- a/tools/intel_reg_dumper.c
+++ b/tools/intel_reg_dumper.c
@@ -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[] = {