summaryrefslogtreecommitdiff
path: root/tools/intel_reg_decode.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2016-08-05 11:26:20 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2016-08-05 15:58:29 +0300
commit40a052dc5db105cac936cc8cd9022713894c3d9a (patch)
tree9d7f2f7b3a27f4824bdd5a0661e2fffa2661fc3f /tools/intel_reg_decode.c
parented29d030bde3d8db592990e9fc87a8c9e29fc829 (diff)
tools/intel_reg: Dump fence registers on ILK
Currently ILK doesn't get its fences dumped. Let's fix that. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tools/intel_reg_decode.c')
-rw-r--r--tools/intel_reg_decode.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/tools/intel_reg_decode.c b/tools/intel_reg_decode.c
index c6246ef1..3e530908 100644
--- a/tools/intel_reg_decode.c
+++ b/tools/intel_reg_decode.c
@@ -755,7 +755,7 @@ DEBUGSTRING(i810_debug_965_fence_start)
int pitch = ((val & 0xffc) >> 2) * 128 + 128;
unsigned int offset = val & 0xfffff000;
- if (!IS_GEN4(devid))
+ if (!IS_GEN4(devid) && !IS_GEN5(devid))
return 0;
return z_snprintf(result, len, "%s, %c tile walk, %4d pitch, 0x%08x start",
@@ -1024,6 +1024,10 @@ static const struct reg_debug intel_debug_regs[] = {
DEFINEFENCE_945(14),
DEFINEFENCE_945(15),
+ DEFINEREG(INST_PM),
+};
+
+static const struct reg_debug i965_fences[] = {
#define DEFINEFENCE_965(i) \
{ FENCE_NEW+i*8, "FENCE START " #i, i810_debug_965_fence_start }, \
{ FENCE_NEW+i*8+4, "FENCE END " #i, i810_debug_965_fence_end }
@@ -1044,8 +1048,6 @@ static const struct reg_debug intel_debug_regs[] = {
DEFINEFENCE_965(13),
DEFINEFENCE_965(14),
DEFINEFENCE_965(15),
-
- DEFINEREG(INST_PM),
};
DEBUGSTRING(ironlake_debug_rr_hw_ctl)
@@ -2606,6 +2608,11 @@ static bool is_gen56ivb(uint32_t devid, uint32_t pch)
return IS_GEN5(devid) || IS_GEN6(devid) || IS_IVYBRIDGE(devid);
}
+static bool is_gen45(uint32_t devid, uint32_t pch)
+{
+ return IS_GEN4(devid) || IS_GEN5(devid);
+}
+
static bool is_945gm(uint32_t devid, uint32_t pch)
{
return IS_945GM(devid);
@@ -2626,6 +2633,7 @@ static struct {
} known_registers[] = {
DECLARE_REGS("Gen2", intel_debug_regs, is_gen234),
DECLARE_REGS("i945GM", i945gm_mi_regs, is_945gm),
+ DECLARE_REGS("Gen4", i965_fences, is_gen45),
DECLARE_REGS("Gen5", ironlake_debug_regs, is_gen56ivb),
DECLARE_REGS("Gen6", gen6_rp_debug_regs, is_gen6_plus),
DECLARE_REGS("Gen6+", gen6_fences, is_gen6_plus),