Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v2] tests/intel/xe_pm_residency: Add an assertion on MI_STORE execution time
@ 2024-09-24  8:03 Karthik Poosa
  2024-09-26  1:22 ` ✗ CI.xeBAT: failure for tests/intel/xe_pm_residency: Add an assertion on MI_STORE execution time (rev2) Patchwork
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Karthik Poosa @ 2024-09-24  8:03 UTC (permalink / raw)
  To: igt-dev; +Cc: anshuman.gupta, riana.tauro, Karthik Poosa

MI_STORE_DWORD generally completes within couple of ms.
Assert if it takes more than 1.2 seconds, as it will cause
IGT test to timeout due to sleep of 120 seconds which is
the current per test timeout.

v2: Correct couple of typos in patch and commit message.

Signed-off-by: Karthik Poosa <karthik.poosa@intel.com>
Reviewed-by: Riana Tauro <riana.tauro@intel.com>
---
 tests/intel/xe_pm_residency.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/intel/xe_pm_residency.c b/tests/intel/xe_pm_residency.c
index 0e687558b..75cdeeeee 100644
--- a/tests/intel/xe_pm_residency.c
+++ b/tests/intel/xe_pm_residency.c
@@ -144,6 +144,15 @@ static void exec_load(int fd, struct drm_xe_engine_class_instance *hwe, unsigned
 			  1e-3 * submit,
 			  1e-3 * (elapsed - submit));
 
+		/*
+		 * MI_STORE_DWORD generally completes within couple of ms.
+		 * Assert if it takes more than 1.2 seconds, as it will cause
+		 * IGT test to timeout due to sleep of 120 seconds which is
+		 * the current per test timeout. Currently there is no way to
+		 * read this timeout from IGT test.
+		 */
+		igt_assert((uint64_t)elapsed < (uint64_t)(1.2 * NSEC_PER_SEC));
+
 		syncobj_reset(fd, &syncobj, 1);
 
 		/*
-- 
2.25.1


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

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

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-24  8:03 [PATCH i-g-t v2] tests/intel/xe_pm_residency: Add an assertion on MI_STORE execution time Karthik Poosa
2024-09-26  1:22 ` ✗ CI.xeBAT: failure for tests/intel/xe_pm_residency: Add an assertion on MI_STORE execution time (rev2) Patchwork
2024-09-26  1:24 ` ✗ Fi.CI.BAT: " Patchwork
2024-09-26  7:33 ` ✗ CI.xeFULL: " Patchwork
2024-09-27  9:05 ` ✓ Fi.CI.BAT: success " Patchwork
2024-09-28 16:40 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-09-30 21:03 ` ✓ CI.xeBAT: success for tests/intel/xe_pm_residency: Add an assertion on MI_STORE execution time (rev3) Patchwork
2024-09-30 21:10 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-10-01  8:00   ` Poosa, Karthik
2024-10-01  5:27 ` ✗ CI.xeFULL: " Patchwork

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