All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/xe_oa: Check for DRM_XE_OA_CAPS_OA_BUFFER_SIZE
@ 2025-04-11 18:03 Ashutosh Dixit
  2025-04-11 19:15 ` ✓ Xe.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Ashutosh Dixit @ 2025-04-11 18:03 UTC (permalink / raw)
  To: igt-dev; +Cc: Umesh Nerlige Ramappa

Tests which use DRM_XE_OA_PROPERTY_OA_BUFFER_SIZE should check for
DRM_XE_OA_CAPS_OA_BUFFER_SIZE and skip if the capability is not available.

Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/4678
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
---
 tests/intel/xe_oa.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tests/intel/xe_oa.c b/tests/intel/xe_oa.c
index 67acc74b32..891ce24518 100644
--- a/tests/intel/xe_oa.c
+++ b/tests/intel/xe_oa.c
@@ -4736,9 +4736,11 @@ igt_main
 		__for_one_hwe_in_oag(hwe)
 			test_oa_exponents(hwe);
 
-	igt_subtest_with_dynamic("buffer-fill")
+	igt_subtest_with_dynamic("buffer-fill") {
+		igt_require(oau->capabilities & DRM_XE_OA_CAPS_OA_BUFFER_SIZE);
 		__for_one_hwe_in_oag(hwe)
 			test_buffer_fill(hwe);
+	}
 
 	/**
 	 * SUBTEST: buffer-size
@@ -4747,13 +4749,16 @@ igt_main
 	igt_subtest_with_dynamic("buffer-size") {
 		long k = random() % num_buf_sizes;
 
+		igt_require(oau->capabilities & DRM_XE_OA_CAPS_OA_BUFFER_SIZE);
 		__for_one_hwe_in_oag_w_arg(hwe, buf_sizes[k].name)
 			test_non_zero_reason(hwe, buf_sizes[k].size);
 	}
 
-	igt_subtest_with_dynamic("non-zero-reason")
+	igt_subtest_with_dynamic("non-zero-reason") {
+		igt_require(oau->capabilities & DRM_XE_OA_CAPS_OA_BUFFER_SIZE);
 		__for_one_hwe_in_oag(hwe)
 			test_non_zero_reason(hwe, 0);
+	}
 
 	igt_subtest("disabled-read-error")
 		test_disabled_read_error();
-- 
2.48.1


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

end of thread, other threads:[~2025-04-14 22:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-11 18:03 [PATCH i-g-t] tests/intel/xe_oa: Check for DRM_XE_OA_CAPS_OA_BUFFER_SIZE Ashutosh Dixit
2025-04-11 19:15 ` ✓ Xe.CI.BAT: success for " Patchwork
2025-04-11 21:14 ` ✗ Xe.CI.Full: failure " Patchwork
2025-04-12  3:42 ` ✓ i915.CI.BAT: success " Patchwork
2025-04-12  5:17 ` ✗ i915.CI.Full: failure " Patchwork
2025-04-14 22:16 ` [PATCH i-g-t] " Umesh Nerlige Ramappa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.