[PATCH i-g-t] i915/perf: Use debug message to identify reason for failure

Umesh Nerlige Ramappa umesh.nerlige.ramappa at intel.com
Fri Oct 30 22:22:32 UTC 2020


Debugging: https://gitlab.freedesktop.org/drm/intel/issues/2562

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
---
 tests/i915/perf.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/tests/i915/perf.c b/tests/i915/perf.c
index a5c4adc3..a5a18990 100644
--- a/tests/i915/perf.c
+++ b/tests/i915/perf.c
@@ -884,7 +884,7 @@ init_sys_info(void)
 	igt_debug("n_eu_slices: %"PRIu64"\n", intel_perf->devinfo.n_eu_slices);
 	igt_debug("n_eu_sub_slices: %"PRIu64"\n", intel_perf->devinfo.n_eu_sub_slices);
 	igt_debug("n_eus: %"PRIu64"\n", intel_perf->devinfo.n_eus);
-	igt_debug("timestamp_frequency = %"PRIu64"\n",
+	igt_info("timestamp_frequency = %"PRIu64"\n",
 		  intel_perf->devinfo.timestamp_frequency);
 	igt_assert_neq(intel_perf->devinfo.timestamp_frequency, 0);
 
@@ -3933,8 +3933,8 @@ static void gen12_single_ctx_helper(void)
 			accumulator.deltas[2 + 21],
 			accumulator.deltas[2 + 26]);
 
-	igt_debug("oa_timestamp32 0 = %u\n", report0_32[1]);
-	igt_debug("oa_timestamp32 1 = %u\n", report1_32[1]);
+	igt_info("oa_timestamp32 0 = %u\n", report0_32[1]);
+	igt_info("oa_timestamp32 1 = %u\n", report1_32[1]);
 	igt_debug("ctx_id 0 = %u\n", report0_32[2]);
 	igt_debug("ctx_id 1 = %u\n", report1_32[2]);
 
@@ -3945,8 +3945,8 @@ static void gen12_single_ctx_helper(void)
 	timestamp0_64 = *(uint64_t *)(((uint8_t *)dst_buf->ptr) + BO_TIMESTAMP_OFFSET0);
 	timestamp1_64 = *(uint64_t *)(((uint8_t *)dst_buf->ptr) + BO_TIMESTAMP_OFFSET1);
 
-	igt_debug("ts_timestamp64 0 = %"PRIu64"\n", timestamp0_64);
-	igt_debug("ts_timestamp64 1 = %"PRIu64"\n", timestamp1_64);
+	igt_info("ts_timestamp64 0 = %"PRIu64"\n", timestamp0_64);
+	igt_info("ts_timestamp64 1 = %"PRIu64"\n", timestamp1_64);
 
 	delta_ts64 = timestamp1_64 - timestamp0_64;
 	delta_oa32 = report1_32[1] - report0_32[1];
@@ -3965,7 +3965,8 @@ static void gen12_single_ctx_helper(void)
 		      (delta_ts64_ns - delta_oa32_ns) :
 		      (delta_oa32_ns - delta_ts64_ns);
 	if (delta_delta > 500) {
-		igt_debug("delta_delta exceeds margin, skipping..\n");
+		igt_info("delta_delta %d exceeds margin, skipping..\n",
+			  delta_delta);
 		exit(EAGAIN);
 	}
 
@@ -3986,6 +3987,7 @@ static void gen12_single_ctx_helper(void)
 	intel_buf_unmap(&dst[0]);
 
 	if (ret != 0) {
+		igt_info("memcmp returned %d\n", ret);
 		accumulator_print(&accumulator, "total");
 		exit(EAGAIN);
 	}
-- 
2.20.1



More information about the Intel-gfx-trybot mailing list