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

On Fri, Apr 11, 2025 at 11:03:14AM -0700, Ashutosh Dixit wrote:
>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>

LGTM,

Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>

Thanks,
Umesh
>---
> 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
>

      parent reply	other threads:[~2025-04-14 22:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Umesh Nerlige Ramappa [this message]

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=Z_2JSd4MfJQllmM1@unerlige-desk.amr.corp.intel.com \
    --to=umesh.nerlige.ramappa@intel.com \
    --cc=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /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.