public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_psr2_su: Print the SU blocks mismatches
@ 2020-01-23 19:00 José Roberto de Souza
  2020-01-23 20:24 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: José Roberto de Souza @ 2020-01-23 19:00 UTC (permalink / raw)
  To: igt-dev

This will help us debug failures in this test.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
 tests/kms_psr2_su.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/kms_psr2_su.c b/tests/kms_psr2_su.c
index f2244b29..9f40c735 100644
--- a/tests/kms_psr2_su.c
+++ b/tests/kms_psr2_su.c
@@ -183,9 +183,13 @@ static bool update_screen_and_test(data_t *data)
 		igt_assert_f(data->op, "Operation not handled\n");
 	}
 
-	if (psr2_wait_su(data->debugfs_fd, &su_blocks))
+	if (psr2_wait_su(data->debugfs_fd, &su_blocks)) {
 		ret = su_blocks == EXPECTED_NUM_SU_BLOCKS;
 
+		if (!ret)
+			igt_debug("Not matching SU blocks read: %u\n", su_blocks);
+	}
+
 	return ret;
 }
 
@@ -206,7 +210,6 @@ static void run(data_t *data)
 			result = update_screen_and_test(data);
 	}
 
-	igt_debug("Screen changes: %u\n", data->screen_changes);
 	igt_assert_f(result,
 		     "No matching selective update blocks read from debugfs\n");
 }
-- 
2.25.0

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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-02-26 20:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-23 19:00 [igt-dev] [PATCH i-g-t] tests/kms_psr2_su: Print the SU blocks mismatches José Roberto de Souza
2020-01-23 20:24 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-01-25  8:25 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2020-02-24  5:18 ` [igt-dev] [PATCH i-g-t] " Anshuman Gupta
2020-02-24 23:17   ` Souza, Jose
2020-02-25  4:00     ` Anshuman Gupta
2020-02-25 18:17       ` Souza, Jose
2020-02-26  7:44         ` Anshuman Gupta
2020-02-26 20:27           ` Souza, Jose

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox