Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Summers, Stuart" <stuart.summers@intel.com>
To: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
	"Vishwanathapura,
	Niranjana" <niranjana.vishwanathapura@intel.com>
Cc: "Wang, X" <x.wang@intel.com>,
	"Nerlige Ramappa, Umesh" <umesh.nerlige.ramappa@intel.com>
Subject: Re: [PATCH v2 3/3] tests/intel/xe_exec_reset: Add multi-queue long spin tests
Date: Thu, 7 May 2026 22:57:47 +0000	[thread overview]
Message-ID: <e86c5d759c369b7727d87ec57bedce34c259bf75.camel@intel.com> (raw)
In-Reply-To: <20260507225024.4544-8-niranjana.vishwanathapura@intel.com>

On Thu, 2026-05-07 at 15:50 -0700, Niranjana Vishwanathapura wrote:
> Add the following multi-queue tests and update xe_legacy_test_mode()
> function to use queue_timestamp and multi_queue_switch spinner
> options
> for the multi-queue scenarios.
> 
> multi-queue-long-spin-many-queue-switch
> multi-queue-long-spin-reuse-many-queue-switch
> 
> v2: Change test name and add documentation (Stuart)
> 
> Signed-off-by: Niranjana Vishwanathapura
> <niranjana.vishwanathapura@intel.com>

Reviewed-by: Stuart Summers <stuart.summers@intel.com>

> ---
>  lib/xe/xe_legacy.c          |  2 ++
>  tests/intel/xe_exec_reset.c | 23 +++++++++++++++++++++++
>  2 files changed, 25 insertions(+)
> 
> diff --git a/lib/xe/xe_legacy.c b/lib/xe/xe_legacy.c
> index f9bd5bcb61..b7054756cd 100644
> --- a/lib/xe/xe_legacy.c
> +++ b/lib/xe/xe_legacy.c
> @@ -67,6 +67,8 @@ xe_legacy_test_mode(int fd, struct
> drm_xe_engine_class_instance *eci,
>         } *data;
>         struct xe_spin_opts spin_opts = {
>                 .preempt = flags & PREEMPT,
> +               .multi_queue_switch = flags & MULTI_QUEUE,
> +               .use_queue_timestamp = flags & MULTI_QUEUE,
>  #define THREE_SEC      (3 * 1000000000ull)
>                 .ctx_ticks = flags & LONG_SPIN ?
>                         xe_spin_nsec_to_ticks(fd, 0, THREE_SEC) : 0,
> diff --git a/tests/intel/xe_exec_reset.c
> b/tests/intel/xe_exec_reset.c
> index a3cf290abf..89a47d236f 100644
> --- a/tests/intel/xe_exec_reset.c
> +++ b/tests/intel/xe_exec_reset.c
> @@ -330,6 +330,12 @@ test_balancer(int fd, int gt, int class, int
> n_exec_queues, int n_execs,
>   * SUBTEST: long-spin-reuse-many-preempt-media
>   * Description: Test long spinners with many preemptable jobs, use
> queues again spinners complete on media GT
>   *
> + * SUBTEST: multi-queue-long-spin-many-queue-switch
> + * Description: Test long spinners with many jobs with multi-queue
> switching
> + *
> + * SUBTEST: multi-queue-long-spin-reuse-many-queue-switch
> + * Description: Test long spinners with many jobs with multi-queue
> switching, use queues again once spinners complete
> + *
>   * SUBTEST: gt-reset
>   * Description: Test GT reset
>   *
> @@ -1179,6 +1185,23 @@ int igt_main()
>                                           MULTI_QUEUE);
>         }
>  
> +       igt_subtest("multi-queue-long-spin-many-queue-switch")
> +               xe_for_each_multi_queue_engine(fd, hwe) {
> +                       xe_legacy_test_mode(fd, hwe, 4, 8,
> +                                           LONG_SPIN | MULTI_QUEUE,
> +                                           LEGACY_MODE_ADDR, false);
> +                       break;
> +               }
> +
> +       igt_subtest("multi-queue-long-spin-reuse-many-queue-switch")
> +               xe_for_each_multi_queue_engine(fd, hwe) {
> +                       xe_legacy_test_mode(fd, hwe, 4, 8,
> +                                           LONG_SPIN | MULTI_QUEUE |
> +                                           LONG_SPIN_REUSE_QUEUE,
> +                                           LEGACY_MODE_ADDR, false);
> +                       break;
> +               }
> +
>         igt_fixture()
>                 drm_close_driver(fd);
>  }


  reply	other threads:[~2026-05-07 22:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-07 22:50 [PATCH v2 0/3] tests/intel/xe_exec_reset: Validate multi-queue timestamping Niranjana Vishwanathapura
2026-05-07 22:50 ` [PATCH v2 1/3] lib/xe/xe_spin: Enhance multi-queue switch option Niranjana Vishwanathapura
2026-05-07 22:50 ` [PATCH v2 2/3] lib/xe/xe_spin: Add option for QUEUE_TIMESTAMP Niranjana Vishwanathapura
2026-05-07 22:50 ` [PATCH v2 3/3] tests/intel/xe_exec_reset: Add multi-queue long spin tests Niranjana Vishwanathapura
2026-05-07 22:57   ` Summers, Stuart [this message]
2026-05-07 23:45 ` ✓ Xe.CI.BAT: success for tests/intel/xe_exec_reset: Validate multi-queue timestamping Patchwork
2026-05-07 23:48 ` ✓ i915.CI.BAT: " Patchwork
2026-05-08 12:44 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-05-08 17:30 ` ✓ i915.CI.Full: success " Patchwork

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=e86c5d759c369b7727d87ec57bedce34c259bf75.camel@intel.com \
    --to=stuart.summers@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=niranjana.vishwanathapura@intel.com \
    --cc=umesh.nerlige.ramappa@intel.com \
    --cc=x.wang@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox