All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bernatowicz, Marcin" <marcin.bernatowicz@linux.intel.com>
To: Matthew Brost <matthew.brost@intel.com>, igt-dev@lists.freedesktop.org
Subject: Re: [PATCH v3 4/5] tests/intel/xe_exec_reset: Add long-spin-sys-reuse-many-preempt-threads
Date: Tue, 30 Sep 2025 15:13:34 +0200	[thread overview]
Message-ID: <485fd4bf-0d7e-4d9e-bc69-105dfbd3223e@linux.intel.com> (raw)
In-Reply-To: <20250923211333.766147-5-matthew.brost@intel.com>



On 9/23/2025 11:13 PM, Matthew Brost wrote:
> Add long-spin-sys-reuse-many-preempt-threads which verifies system
> memory can be used during this test. Useful to test VF migration.
> 
> Signed-off-by: Matthew Brost <matthew.brost@intel.com>
> ---
>   lib/xe/xe_legacy.c          | 3 +++
>   tests/intel/xe_exec_reset.c | 8 ++++++++
>   2 files changed, 11 insertions(+)
> 
> diff --git a/lib/xe/xe_legacy.c b/lib/xe/xe_legacy.c
> index c0c0c4605c..cb53a8cfc8 100644
> --- a/lib/xe/xe_legacy.c
> +++ b/lib/xe/xe_legacy.c
> @@ -12,6 +12,7 @@
>   
>   /* Batch buffer element count, in number of dwords(u32) */
>   #define BATCH_DW_COUNT			16
> +#define SYSTEM				(0x1 << 12)
>   #define LONG_SPIN_REUSE_QUEUE		(0x1 << 11)
>   #define LONG_SPIN			(0x1 << 8)
>   #define CANCEL				(0x1 << 7)
> @@ -79,6 +80,8 @@ xe_legacy_test_mode(int fd, struct drm_xe_engine_class_instance *eci,
>   	bo_size = xe_bb_size(fd, bo_size);
>   
>   	bo = xe_bo_create(fd, vm, bo_size,
> +			  flags & SYSTEM ?
> +			  system_memory(fd) :
>   			  vram_if_possible(fd, eci->gt_id),
>   			  DRM_XE_GEM_CREATE_FLAG_NEEDS_VISIBLE_VRAM);
>   	data = xe_bo_map(fd, bo, bo_size);
> diff --git a/tests/intel/xe_exec_reset.c b/tests/intel/xe_exec_reset.c
> index 8685b84270..113ceb2178 100644
> --- a/tests/intel/xe_exec_reset.c
> +++ b/tests/intel/xe_exec_reset.c
> @@ -122,6 +122,7 @@ static void test_spin(int fd, struct drm_xe_engine_class_instance *eci,
>   #define GT0				(0x1 << 9)
>   #define GT1				(0x1 << 10)
>   #define LONG_SPIN_REUSE_QUEUE		(0x1 << 11)
> +#define SYSTEM				(0x1 << 12)
>   
>   /**
>    * SUBTEST: %s-cat-error
> @@ -698,6 +699,9 @@ static void *thread(void *data)
>    * SUBTEST: long-spin-reuse-many-preempt-threads
>    * Description: Test long spinners with many preemptable jobs on each engine instance with a thread, use queues again spinners complete, both GTs
>    *
> + * SUBTEST: long-spin-sys-reuse-many-preempt-threads
> + * Description: Test long spinners with many preemptable jobs on each engine instance with a thread, use queues again spinners complete, both GTs, use system memory
> + *
>    * SUBTEST: long-spin-reuse-many-preempt-gt0-threads
>    * Description: Test long spinners with many preemptable jobs on each engine instance with a thread, use queues again spinners complete, primary GT
>    *
> @@ -870,6 +874,10 @@ igt_main
>   		threads(fd, 2, 16, LONG_SPIN | PREEMPT |
>   			LONG_SPIN_REUSE_QUEUE);
>   
> +	igt_subtest("long-spin-sys-reuse-many-preempt-threads")
> +		threads(fd, 2, 16, SYSTEM | LONG_SPIN | PREEMPT |
> +			LONG_SPIN_REUSE_QUEUE);
> +
LGTM,
Reviewed-by: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>> 
igt_subtest("long-spin-reuse-many-preempt-gt0-threads")
>   		threads(fd, 2, 16, LONG_SPIN | PREEMPT | GT0 |
>   			LONG_SPIN_REUSE_QUEUE);


  reply	other threads:[~2025-09-30 13:13 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-23 21:13 [PATCH v3 0/5] Add tests to help verify VF migration Matthew Brost
2025-09-23 21:13 ` [PATCH v3 1/5] tests/intel/xe_exec_reset: Add job cancel tests Matthew Brost
2025-09-30 11:21   ` Bernatowicz, Marcin
2025-09-23 21:13 ` [PATCH v3 2/5] tests/intel/xe_exec_reset: Add timeslice preempt test Matthew Brost
2025-09-30 13:10   ` Bernatowicz, Marcin
2025-09-23 21:13 ` [PATCH v3 3/5] tests/intel/xe_exec_reset: Long spin tests Matthew Brost
2025-09-30 13:12   ` Bernatowicz, Marcin
2025-09-23 21:13 ` [PATCH v3 4/5] tests/intel/xe_exec_reset: Add long-spin-sys-reuse-many-preempt-threads Matthew Brost
2025-09-30 13:13   ` Bernatowicz, Marcin [this message]
2025-09-23 21:13 ` [PATCH v3 5/5] tests/intel/xe_exec_reset: Add long-spin-comp-reuse-many-preempt-threads Matthew Brost
2025-09-30 14:29   ` Bernatowicz, Marcin
2025-10-01  2:24     ` Matthew Brost
2025-10-01 17:41       ` Bernatowicz, Marcin
2025-09-30 17:35   ` Kamil Konieczny
2025-10-01  2:18     ` Matthew Brost
2025-10-01 11:55       ` Kamil Konieczny
2025-10-01 11:46   ` K V P, Satyanarayana
2025-10-06  9:17     ` Matthew Brost
2025-10-06 11:37       ` K V P, Satyanarayana
2025-09-24  1:48 ` ✓ Xe.CI.BAT: success for Add tests to help verify VF migration (rev3) Patchwork
2025-09-24  2:05 ` ✓ i915.CI.BAT: " Patchwork
2025-09-24  6:26 ` ✗ Xe.CI.Full: failure " Patchwork
2025-09-24 16:44 ` ✗ i915.CI.Full: " 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=485fd4bf-0d7e-4d9e-bc69-105dfbd3223e@linux.intel.com \
    --to=marcin.bernatowicz@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=matthew.brost@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.