Skip to contentSkip to conversation

tools/intel_reg_dumper: Shows fences and rp debug regs on BDW.

PATCH In review Rodrigo Vivi 3 participants 4 messages Sep 17, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/intel_reg_dumper: Shows fences and rp debug regs on BDW.

---
 tools/intel_reg_dumper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/intel_reg_dumper.c +1 -1
index 4bc299c..f88bd9f 100644
@@ -2972,7 +2972,7 @@ int main(int argc, char** argv)
 		intel_dump_other_regs();
 	}
 
-	if (IS_GEN6(devid) || IS_GEN7(devid)) {
+	if (IS_GEN6(devid) || IS_GEN7(devid) || IS_GEN8(devid)) {
 		intel_dump_regs(gen6_fences);
 		intel_dump_regs(gen6_rp_debug_regs);
 	}
Signature · 1 line
1.9.3
#1 lore raw
Quoted 10 lines · Rodrigo Vivi
---
 tools/intel_reg_dumper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/intel_reg_dumper.c +0 -0
index 4bc299c..f88bd9f 100644

tools/intel_reg_dumper.c int main(int argc, char** argv) · line 2978

Quoted 8 lines
tools/intel_reg_dumper.c +1 -1
@@ -2972,7 +2972,7 @@ int main(int argc, char** argv)
 		intel_dump_other_regs();
 	}
 
-	if (IS_GEN6(devid) || IS_GEN7(devid)) {
+	if (IS_GEN6(devid) || IS_GEN7(devid) || IS_GEN8(devid)) {
 		intel_dump_regs(gen6_fences);
 		intel_dump_regs(gen6_rp_debug_regs);
 	}

Can we make sure to fix this for future platforms? using intel_gen().

Thanks,

Signature · 1 line
Damien
#2 lore raw

PATCH 1/1 tools/intel_reg_dumper: Shows fences and rp debug regs on BDW+.

v2: a more generic fix to cover current and future platforms (Damien).

Cc Damien Lespiau <[email protected]>
---
 tools/intel_reg_dumper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/intel_reg_dumper.c +1 -1
index 4bc299c..0b6d887 100644
@@ -2972,7 +2972,7 @@ int main(int argc, char** argv)
 		intel_dump_other_regs();
 	}
 
-	if (IS_GEN6(devid) || IS_GEN7(devid)) {
+	if (intel_gen(devid) >= 6) {
 		intel_dump_regs(gen6_fences);
 		intel_dump_regs(gen6_rp_debug_regs);
 	}
Signature · 1 line
1.9.3
Reviewed-by on v1 1/1
#3 lore raw

Re: [PATCH] tools/intel_reg_dumper: Shows fences and rp debug regs on BDW+.

Quoted 4 lines · Rodrigo Vivi

v2: a more generic fix to cover current and future platforms (Damien).

Cc Damien Lespiau <[email protected]>

(not needed for igt, but still)

Signature · 1 line
Damien
Quoted 20 lines
---
 tools/intel_reg_dumper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/intel_reg_dumper.c +1 -1
index 4bc299c..0b6d887 100644
@@ -2972,7 +2972,7 @@ int main(int argc, char** argv)
 		intel_dump_other_regs();
 	}
 
-	if (IS_GEN6(devid) || IS_GEN7(devid)) {
+	if (intel_gen(devid) >= 6) {
 		intel_dump_regs(gen6_fences);
 		intel_dump_regs(gen6_rp_debug_regs);
 	}
Signature · 1 line
1.9.3