public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v25 20/22] tests/perf: debug stuff
Date: Mon,  3 Aug 2020 14:43:11 +0200	[thread overview]
Message-ID: <20200803124313.31162-21-zbigniew.kempczynski@intel.com> (raw)
In-Reply-To: <20200803124313.31162-1-zbigniew.kempczynski@intel.com>

---
 tests/i915/perf.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/tests/i915/perf.c b/tests/i915/perf.c
index 401fe72f..10386e30 100644
--- a/tests/i915/perf.c
+++ b/tests/i915/perf.c
@@ -3394,6 +3394,14 @@ gen8_test_single_ctx_render_target_writes_a_counter(void)
 			memset(dst_buf->ptr, 0x80, 4096);
 			intel_buf_unmap(dst_buf);
 
+			/* Check 0 */
+			intel_buf_cpu_map(dst_buf, false /* write enable */);
+			report0_32 = dst_buf->ptr;
+			igt_info("report 0: %x\n", report0_32[0]);
+			igt_info("time 0: %x\n", report0_32[1]);
+			intel_buf_unmap(dst_buf);
+
+
 			emit_stall_timestamp_and_rpc(ibb0,
 						     dst_buf,
 						     512 /* timestamp offset */,
@@ -3415,6 +3423,13 @@ gen8_test_single_ctx_render_target_writes_a_counter(void)
 			/* Another redundant flush to clarify batch bo is free to reuse */
 			intel_bb_flush_render_with_context(ibb0, context0_id);
 
+			/* Check 1 */
+			intel_buf_cpu_map(dst_buf, false /* write enable */);
+			report0_32 = dst_buf->ptr;
+			igt_info("report 1: %x\n", report0_32[0]);
+			igt_info("time 1: %x\n", report0_32[1]);
+			intel_buf_unmap(dst_buf);
+
 			/* submit two copies on the other context to avoid a false
 			 * positive in case the driver somehow ended up filtering for
 			 * context1
@@ -3440,11 +3455,24 @@ gen8_test_single_ctx_render_target_writes_a_counter(void)
 
 			intel_bb_flush_render_with_context(ibb1, context1_id);
 			intel_bb_sync(ibb1);
+
+			/* Check 2 */
+			intel_buf_cpu_map(dst_buf, false /* write enable */);
+			report0_32 = dst_buf->ptr;
+			report1_32 = report0_32 + 64; /* 64 uint32_t = 256bytes offset */
+			igt_info("report 2 a: %x\n", report0_32[0]);
+			igt_info("time 2 a: %x\n", report0_32[1]);
+			igt_info("report 2 b: %x\n", report1_32[0]);
+			igt_info("time 2 b: %x\n", report1_32[1]);
+			intel_buf_unmap(dst_buf);
+
 			intel_bb_sync(ibb0);
 
 			intel_buf_cpu_map(dst_buf, false /* write enable */);
 
 			report0_32 = dst_buf->ptr;
+			igt_info("report: %x\n", report0_32[0]);
+			igt_info("time: %x\n", report0_32[1]);
 			igt_assert_eq(report0_32[0], 0xdeadbeef); /* report ID */
 			igt_assert_neq(report0_32[1], 0); /* timestamp */
 			prev = report0_32;
-- 
2.26.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2020-08-03 12:44 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-03 12:42 [igt-dev] [PATCH i-g-t v25 00/22] Remove libdrm in rendercopy Zbigniew Kempczyński
2020-08-03 12:42 ` [igt-dev] [PATCH i-g-t v25 01/22] lib/intel_bufops: add mapping on cpu / device Zbigniew Kempczyński
2020-08-03 12:42 ` [igt-dev] [PATCH i-g-t v25 02/22] lib/intel_bufops: change in hw/sw tiling detection Zbigniew Kempczyński
2020-08-03 12:42 ` [igt-dev] [PATCH i-g-t v25 03/22] lib/intel_bufops: change stride requirements for Grantsdale Zbigniew Kempczyński
2020-08-03 12:42 ` [igt-dev] [PATCH i-g-t v25 04/22] lib/intel_batchbuffer: add new functions to support rendercopy Zbigniew Kempczyński
2020-08-03 12:42 ` [igt-dev] [PATCH i-g-t v25 05/22] lib/intel_batchbuffer: dump bb to base64 Zbigniew Kempczyński
2020-08-03 12:42 ` [igt-dev] [PATCH i-g-t v25 06/22] lib/intel_batchbuffer: use canonical addresses for 48bit ppgtt Zbigniew Kempczyński
2020-08-03 12:42 ` [igt-dev] [PATCH i-g-t v25 07/22] tests/api_intel_bb: test flags are cleared on bb reset Zbigniew Kempczyński
2020-08-03 12:42 ` [igt-dev] [PATCH i-g-t v25 08/22] tests/gem_caching|partial: adopt to batch flush function cleanup Zbigniew Kempczyński
2020-08-03 12:43 ` [igt-dev] [PATCH i-g-t v25 09/22] lib/rendercopy: remove libdrm dependency Zbigniew Kempczyński
2020-08-03 12:43 ` [igt-dev] [PATCH i-g-t v25 10/22] tests/api_intel_bb: add render tests Zbigniew Kempczyński
2020-08-03 12:43 ` [igt-dev] [PATCH i-g-t v25 11/22] lib/igt_draw: remove libdrm dependency Zbigniew Kempczyński
2020-08-03 12:43 ` [igt-dev] [PATCH i-g-t v25 12/22] lib/igt_fb: Removal of " Zbigniew Kempczyński
2020-08-03 12:43 ` [igt-dev] [PATCH i-g-t v25 13/22] tests/gem|kms: remove libdrm dependency (batch 1) Zbigniew Kempczyński
2020-08-03 12:43 ` [igt-dev] [PATCH i-g-t v25 14/22] tests/gem|kms: remove libdrm dependency (batch 2) Zbigniew Kempczyński
2020-08-03 12:43 ` [igt-dev] [PATCH i-g-t v25 15/22] tools/intel_residency: adopt intel_residency to use bufops Zbigniew Kempczyński
2020-08-03 12:43 ` [igt-dev] [PATCH i-g-t v25 16/22] tests/perf: remove libdrm dependency for rendercopy Zbigniew Kempczyński
2020-08-03 12:43 ` [igt-dev] [PATCH i-g-t v25 17/22] fix: lib/intel_bufops: add 64bit bpp Zbigniew Kempczyński
2020-08-03 12:43 ` [igt-dev] [PATCH i-g-t v25 18/22] tests/kms_psr: trying to fix blt Zbigniew Kempczyński
2020-08-03 12:43 ` [igt-dev] [PATCH i-g-t v25 19/22] tests/api_intel_bb: just fail in BAT Zbigniew Kempczyński
2020-08-03 12:43 ` Zbigniew Kempczyński [this message]
2020-08-03 12:43 ` [igt-dev] [PATCH i-g-t v25 21/22] tests/perf: use coherent mapping on non-llc platforms Zbigniew Kempczyński
2020-08-03 12:43 ` [igt-dev] [PATCH i-g-t v25 22/22] HAX: run in BAT and fail to avoid full run Zbigniew Kempczyński
2020-08-03 13:08 ` [igt-dev] ✓ Fi.CI.BAT: success for Remove libdrm in rendercopy (rev24) Patchwork
2020-08-03 16:30 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200803124313.31162-21-zbigniew.kempczynski@intel.com \
    --to=zbigniew.kempczynski@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox