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>
Subject: Re: [PATCH 3/3] tests/intel/xe_exec_reset: Add multi-queue long spin tests
Date: Thu, 7 May 2026 19:37:23 +0000	[thread overview]
Message-ID: <130b948c986be91a0bf7be181d213fcd74245a51.camel@intel.com> (raw)
In-Reply-To: <20260506183137.51479-8-niranjana.vishwanathapura@intel.com>

On Wed, 2026-05-06 at 11:31 -0700, Niranjana Vishwanathapura wrote:
> From: gta <gta@DUT4637NVLP.fm.intel.com>
> 
> 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-preempt
> multi-queue-long-spin-reuse-many-preempt
> 
> Signed-off-by: Niranjana Vishwanathapura
> <niranjana.vishwanathapura@intel.com>
> ---
>  lib/xe/xe_legacy.c          |  2 ++
>  tests/intel/xe_exec_reset.c | 17 +++++++++++++++++
>  2 files changed, 19 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..f7ae94a424 100644
> --- a/tests/intel/xe_exec_reset.c
> +++ b/tests/intel/xe_exec_reset.c
> @@ -1179,6 +1179,23 @@ int igt_main()
>                                           MULTI_QUEUE);
>         }
>  
> +       igt_subtest("multi-queue-long-spin-many-preempt")

These need to be documented now. The existing non-multi queue tests
talk about preemption being the deciding factor in ensuring we aren't
getting engine resets. So here would be nice to call out lite restore
explicitly.

Other than documentation the changes look good.

Thanks,
Stuart

> +               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-preempt")
> +               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 19:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-06 18:31 [PATCH 0/3] tests/intel/xe_exec_reset: Validate multi-queue timestamping Niranjana Vishwanathapura
2026-05-06 18:31 ` [PATCH 1/3] lib/xe/xe_spin: Enhance multi-queue switch option Niranjana Vishwanathapura
2026-05-07  0:50   ` Wang, X
2026-05-07 19:15   ` Summers, Stuart
2026-05-07 20:11     ` Niranjana Vishwanathapura
2026-05-06 18:31 ` [PATCH 2/3] lib/xe/xe_spin: Add option for QUEUE_TIMESTAMP Niranjana Vishwanathapura
2026-05-07 19:23   ` Summers, Stuart
2026-05-07 19:41     ` Umesh Nerlige Ramappa
2026-05-07 20:05       ` Summers, Stuart
2026-05-07 20:07       ` Niranjana Vishwanathapura
2026-05-06 18:31 ` [PATCH 3/3] tests/intel/xe_exec_reset: Add multi-queue long spin tests Niranjana Vishwanathapura
2026-05-07 19:37   ` Summers, Stuart [this message]
2026-05-07 20:11     ` Niranjana Vishwanathapura

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=130b948c986be91a0bf7be181d213fcd74245a51.camel@intel.com \
    --to=stuart.summers@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=niranjana.vishwanathapura@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