All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ashutosh Dixit <ashutosh.dixit@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Subject: [PATCH i-g-t] tests/intel/xe_oa: Check for DRM_XE_OA_CAPS_OA_BUFFER_SIZE
Date: Fri, 11 Apr 2025 11:03:14 -0700	[thread overview]
Message-ID: <20250411180314.1095215-1-ashutosh.dixit@intel.com> (raw)

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


             reply	other threads:[~2025-04-11 18:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-11 18:03 Ashutosh Dixit [this message]
2025-04-11 19:15 ` ✓ Xe.CI.BAT: success for tests/intel/xe_oa: Check for DRM_XE_OA_CAPS_OA_BUFFER_SIZE 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

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=20250411180314.1095215-1-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=umesh.nerlige.ramappa@intel.com \
    /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 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.