diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-07-09 10:46:09 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-07-09 10:46:09 +0200 |
commit | d3221334d29f31d140b7bb64ba955701e59a1bf2 (patch) | |
tree | 39bc03d006aae7f9204a8f69d20689e3656b4a5c /tools | |
parent | 79b3029fe8c5c9d8d4428b639f458305887ceac3 (diff) |
tools/intel_reg_dumper: add gen6+ fences
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/intel_reg_dumper.c | 46 |
1 files changed, 44 insertions, 2 deletions
diff --git a/tools/intel_reg_dumper.c b/tools/intel_reg_dumper.c index 1d44660f..a37d2fd0 100644 --- a/tools/intel_reg_dumper.c +++ b/tools/intel_reg_dumper.c @@ -1959,6 +1959,45 @@ DEBUGSTRING(hsw_debug_util_pin_ctl) inverted_polarity); } +static struct reg_debug gen6_fences[] = { +#define DEFINEFENCE_SNB(i) \ + { FENCE_REG_SANDYBRIDGE_0 + (i) * 8, "FENCE START "#i, NULL, 0 }, \ + { FENCE_REG_SANDYBRIDGE_0 + (i) * 8 + 4, "FENCE START "#i, NULL, 0 } + DEFINEFENCE_SNB(0), + DEFINEFENCE_SNB(1), + DEFINEFENCE_SNB(2), + DEFINEFENCE_SNB(3), + DEFINEFENCE_SNB(4), + DEFINEFENCE_SNB(5), + DEFINEFENCE_SNB(6), + DEFINEFENCE_SNB(7), + DEFINEFENCE_SNB(8), + DEFINEFENCE_SNB(9), + DEFINEFENCE_SNB(10), + DEFINEFENCE_SNB(11), + DEFINEFENCE_SNB(12), + DEFINEFENCE_SNB(13), + DEFINEFENCE_SNB(14), + DEFINEFENCE_SNB(15), + DEFINEFENCE_SNB(16), + DEFINEFENCE_SNB(17), + DEFINEFENCE_SNB(18), + DEFINEFENCE_SNB(19), + DEFINEFENCE_SNB(20), + DEFINEFENCE_SNB(20), + DEFINEFENCE_SNB(21), + DEFINEFENCE_SNB(22), + DEFINEFENCE_SNB(23), + DEFINEFENCE_SNB(24), + DEFINEFENCE_SNB(25), + DEFINEFENCE_SNB(26), + DEFINEFENCE_SNB(27), + DEFINEFENCE_SNB(28), + DEFINEFENCE_SNB(29), + DEFINEFENCE_SNB(30), + DEFINEFENCE_SNB(31), +}; + static struct reg_debug ironlake_debug_regs[] = { DEFINEREG(PGETBL_CTL), DEFINEREG(GEN6_INSTDONE_1), @@ -2518,7 +2557,8 @@ static struct { DECLARE_REGS("i945GM", i945gm_mi_regs), DECLARE_REGS("Gen2", intel_debug_regs), DECLARE_REGS("Gen6", gen6_rp_debug_regs), - DECLARE_REGS("Gen7.5", haswell_debug_regs) + DECLARE_REGS("Gen7.5", haswell_debug_regs), + DECLARE_REGS("Gen6+", gen6_fences), }; #undef DECLARE_REGS @@ -2926,8 +2966,10 @@ int main(int argc, char** argv) intel_dump_other_regs(); } - if (IS_GEN6(devid) || IS_GEN7(devid)) + if (IS_GEN6(devid) || IS_GEN7(devid)) { + intel_dump_regs(gen6_fences); intel_dump_regs(gen6_rp_debug_regs); + } power_well_put(power_well); |