Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/xe_tlb: Print tlb inval counts on failure
@ 2024-10-08 20:21 Nirmoy Das
  2024-10-08 21:44 ` Cavitt, Jonathan
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Nirmoy Das @ 2024-10-08 20:21 UTC (permalink / raw)
  To: igt-dev; +Cc: Nirmoy Das, kamil.konieczny, Sai Gowtham Ch

Print tlb inval counts on failure with igt_assert_lt_u64()

Cc: kamil.konieczny@linux.intel.com
Cc: Sai Gowtham Ch <sai.gowtham.ch@intel.com>
Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
---
 tests/intel/xe_tlb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/intel/xe_tlb.c b/tests/intel/xe_tlb.c
index 8104e45d8..15d89931c 100644
--- a/tests/intel/xe_tlb.c
+++ b/tests/intel/xe_tlb.c
@@ -116,7 +116,7 @@ static void tlb_invalidation(int fd, struct drm_xe_engine_class_instance *eci)
 	tlb_pos = xe_gt_stats_get_count(fd, eci->gt_id, stat);
 	igt_assert_eq(data1->data, value1);
 	igt_assert_eq(data2->data, value2);
-	igt_assert(tlb_pos > tlb_pre);
+	igt_assert_lt_u64(tlb_pre, tlb_pos);
 
 	syncobj_destroy(fd, sync[0].handle);
 	syncobj_destroy(fd, syncobj);
-- 
2.46.0


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

end of thread, other threads:[~2024-10-11 10:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-08 20:21 [PATCH i-g-t] tests/intel/xe_tlb: Print tlb inval counts on failure Nirmoy Das
2024-10-08 21:44 ` Cavitt, Jonathan
2024-10-08 21:45 ` ✓ CI.xeBAT: success for " Patchwork
2024-10-08 22:00 ` ✓ Fi.CI.BAT: " Patchwork
2024-10-09  4:44 ` ✗ CI.xeFULL: failure " Patchwork
2024-10-10  2:12 ` ✗ Fi.CI.IGT: " Patchwork
2024-10-11 10:03 ` [PATCH i-g-t] " Kamil Konieczny
2024-10-11 10:10   ` Nirmoy Das

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