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: "Ch, Sai Gowtham" <sai.gowtham.ch@intel.com>,
	"Dandamudi, Priyanka" <priyanka.dandamudi@intel.com>,
	"kamil.konieczny@linux.intel.com"
	<kamil.konieczny@linux.intel.com>
Subject: Re: [PATCH v2 13/19] tests/intel/xe_exec_multi_queue: Add multi queues with SMEM
Date: Thu, 4 Dec 2025 20:59:51 +0000	[thread overview]
Message-ID: <7980cd6532284b72de93426c9ffbbbb3751d9cd4.camel@intel.com> (raw)
In-Reply-To: <20251121035715.767226-34-niranjana.vishwanathapura@intel.com>

On Thu, 2025-11-20 at 19:57 -0800, Niranjana Vishwanathapura wrote:
> From: Priyanka Dandamudi <priyanka.dandamudi@intel.com>
> 
> Extend multi queue tests with SMEM.

This one is definitely interesting.

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

> 
> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com>
> Signed-off-by: Niranjana Vishwanathapura
> <niranjana.vishwanathapura@intel.com>
> ---
>  tests/intel/xe_exec_multi_queue.c | 40 +++++++++++++++++++++++++++--
> --
>  1 file changed, 36 insertions(+), 4 deletions(-)
> 
> diff --git a/tests/intel/xe_exec_multi_queue.c
> b/tests/intel/xe_exec_multi_queue.c
> index da8117d57..df65ccafb 100644
> --- a/tests/intel/xe_exec_multi_queue.c
> +++ b/tests/intel/xe_exec_multi_queue.c
> @@ -32,6 +32,7 @@
>  #define DYN_PRIORITY           (0x1 << 4)
>  #define INVALIDATE             (0x1 << 5)
>  #define FAULT_MODE             (0x1 << 6)
> +#define SMEM                   (0x1 << 7)
>  
>  #define MAX_INSTANCE 9
>  
> @@ -266,8 +267,11 @@ test_preempt_mode(int fd, struct
> drm_xe_engine_class_instance *eci, int num_plac
>                 }
>                 memset(data, 0, bo_size);
>         } else {
> -               bo = xe_bo_create(fd, vm, bo_size,
> vram_if_possible(fd, eci[0].gt_id),
> -                                
> DRM_XE_GEM_CREATE_FLAG_NEEDS_VISIBLE_VRAM);
> +               if (flags & SMEM)
> +                       bo = xe_bo_create(fd, vm, bo_size,
> system_memory(fd), 0);
> +               else
> +                       bo = xe_bo_create(fd, vm, bo_size,
> vram_if_possible(fd, eci[0].gt_id),
> +                                        
> DRM_XE_GEM_CREATE_FLAG_NEEDS_VISIBLE_VRAM);
>                 data = xe_bo_map(fd, bo, bo_size);
>         }
>  
> @@ -428,8 +432,11 @@ test_legacy_mode(int fd, struct
> drm_xe_engine_class_instance *eci, int num_place
>                 }
>                 memset(data, 0, bo_size);
>         } else {
> -               bo = xe_bo_create(fd, vm, bo_size,
> vram_if_possible(fd, eci[0].gt_id),
> -                                
> DRM_XE_GEM_CREATE_FLAG_NEEDS_VISIBLE_VRAM);
> +               if (flags & SMEM)
> +                       bo = xe_bo_create(fd, vm, bo_size,
> system_memory(fd), 0);
> +               else
> +                       bo = xe_bo_create(fd, vm, bo_size,
> vram_if_possible(fd, eci[0].gt_id),
> +                                        
> DRM_XE_GEM_CREATE_FLAG_NEEDS_VISIBLE_VRAM);
>                 data = xe_bo_map(fd, bo, bo_size);
>         }
>  
> @@ -578,23 +585,36 @@ test_legacy_mode(int fd, struct
> drm_xe_engine_class_instance *eci, int num_place
>   * arg[1]:
>   *
>   * @basic:                                     basic
> + * @basic-smem:                                        basic smem
>   * @userptr:                                   userptr
>   * @userptr-invalidate:                                userptr
> invalidate
>   * @priority:                                  priority
>   * @close-fd:                                  close fd without
> destroying exec queues
>   * @dyn-priority:                              dynamic priority
>   * @preempt-mode-basic:                                preempt-mode
> basic
> + * @priority-smem:                             priority smem
> + * @close-fd-smem:                             close fd without
> destroying exec queues smem
> + * @dyn-priority-smem:                         dynamic priority smem
> + * @preempt-mode-basic-smem:                   preempt-mode basic
> smem
>   * @preempt-mode-userptr:                      preempt-mode userptr
>   * @preempt-mode-userptr-invalidate:           preempt-mode userptr
> invalidate
>   * @preempt-mode-priority:                     preempt-mode priority
>   * @preempt-mode-close-fd:                     preempt-mode close fd
> without destroying exec queues
>   * @preempt-mode-dyn-priority:                 preempt-mode dynamic
> priority
>   * @preempt-mode-fault-basic:                  preempt-mode-fault-
> mode basic
> + * @preempt-mode-priority-smem:                        preempt-mode
> priority smem
> + * @preempt-mode-close-fd-smem:                        preempt-mode
> close fd without destroying exec queues smem
> + * @preempt-mode-dyn-priority-smem:            preempt-mode dynamic
> priority smem
> + * @preempt-mode-fault-basic-smem:             preempt-mode-fault-
> mode basic smem
>   * @preempt-mode-fault-userptr:                        preempt-mode-
> fault-mode userptr
>   * @preempt-mode-fault-userptr-invalidate:     preempt-mode-fault-
> mode userptr invalidate
>   * @preempt-mode-fault-priority:               preempt-mode-fault-
> mode priority
>   * @preempt-mode-fault-close-fd:               preempt-mode-fault-
> mode close fd
>   * @preempt-mode-fault-dyn-priority:           preempt-mode-fault-
> mode dynamic priority
> + * @preempt-mode-fault-priority-smem:          preempt-mode-fault-
> mode priority smem
> + * @preempt-mode-fault-close-fd-smem:          preempt-mode-fault-
> mode close fd smem
> + * @preempt-mode-fault-dyn-priority-smem:      preempt-mode-fault-
> mode dynamic priority smem
> + *
>   */
>  static void
>  test_exec(int fd, struct drm_xe_engine_class_instance *eci, int
> num_placement,
> @@ -638,24 +658,36 @@ igt_main
>                 unsigned int flags;
>         } sections[] = {
>                 { "basic", 0 },
> +               { "basic-smem", SMEM },
>                 { "userptr", USERPTR },
>                 { "userptr-invalidate", USERPTR | INVALIDATE },
>                 { "priority", PRIORITY },
> +               { "priority-smem", PRIORITY | SMEM },
>                 { "close-fd", CLOSE_FD },
> +               { "close-fd-smem", CLOSE_FD | SMEM },
>                 { "dyn-priority", DYN_PRIORITY },
> +               { "dyn-priority-smem", DYN_PRIORITY | SMEM },
>                 { "preempt-mode-basic", PREEMPT_MODE },
> +               { "preempt-mode-basic-smem", PREEMPT_MODE | SMEM },
>                 { "preempt-mode-userptr", PREEMPT_MODE | USERPTR },
>                 { "preempt-mode-userptr-invalidate", PREEMPT_MODE |
> USERPTR | INVALIDATE },
>                 { "preempt-mode-priority", PREEMPT_MODE | PRIORITY },
> +               { "preempt-mode-priority-smem", PREEMPT_MODE |
> PRIORITY | SMEM },
>                 { "preempt-mode-close-fd", PREEMPT_MODE | CLOSE_FD },
> +               { "preempt-mode-close-fd-smem", PREEMPT_MODE |
> CLOSE_FD | SMEM },
>                 { "preempt-mode-dyn-priority", PREEMPT_MODE |
> DYN_PRIORITY },
> +               { "preempt-mode-dyn-priority-smem", PREEMPT_MODE |
> DYN_PRIORITY | SMEM },
>                 { "preempt-mode-fault-basic", PREEMPT_MODE |
> FAULT_MODE },
> +               { "preempt-mode-fault-basic-smem", PREEMPT_MODE |
> FAULT_MODE | SMEM },
>                 { "preempt-mode-fault-userptr", PREEMPT_MODE |
> FAULT_MODE | USERPTR },
>                 { "preempt-mode-fault-userptr-invalidate",
> PREEMPT_MODE | FAULT_MODE |
>                         USERPTR | INVALIDATE },
>                 { "preempt-mode-fault-priority", PREEMPT_MODE |
> FAULT_MODE | PRIORITY },
> +               { "preempt-mode-fault-priority-smem", PREEMPT_MODE |
> FAULT_MODE | PRIORITY | SMEM },
>                 { "preempt-mode-fault-close-fd", PREEMPT_MODE |
> FAULT_MODE | CLOSE_FD },
> +               { "preempt-mode-fault-close-fd-smem", PREEMPT_MODE |
> FAULT_MODE | CLOSE_FD | SMEM },
>                 { "preempt-mode-fault-dyn-priority", PREEMPT_MODE |
> FAULT_MODE | DYN_PRIORITY },
> +               { "preempt-mode-fault-dyn-priority-smem",
> PREEMPT_MODE | FAULT_MODE | DYN_PRIORITY | SMEM },
>                 { NULL },
>         };
>         int fd, gt, class;


  parent reply	other threads:[~2025-12-04 21:00 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-21  3:57 [PATCH v2 00/19] Multi Queue feature validation support Niranjana Vishwanathapura
2025-11-21  3:57 ` [PATCH v2 01/19] drm-uapi/xe: Sync with Multi-Queue uapi Niranjana Vishwanathapura
2025-12-04 19:19   ` Summers, Stuart
2025-12-04 20:58     ` Niranjana Vishwanathapura
2025-12-05 18:07       ` Summers, Stuart
2025-11-21  3:57 ` [PATCH v2 02/19] lib/xe: Add multi-queue helper routines Niranjana Vishwanathapura
2025-12-04 19:20   ` Summers, Stuart
2025-11-21  3:57 ` [PATCH v2 03/19] tests/intel/xe_exec_multi_queue: Add xe_exec_multi_queue test Niranjana Vishwanathapura
2025-12-04 20:02   ` Summers, Stuart
2025-12-05  1:34     ` Niranjana Vishwanathapura
2025-12-05 18:09       ` Summers, Stuart
2025-11-21  3:57 ` [PATCH v2 04/19] tests/intel/xe_exec_multi_queue: Validate exec submissions Niranjana Vishwanathapura
2025-12-02  5:27   ` Ch, Sai Gowtham
2025-12-04 20:42   ` Summers, Stuart
2025-11-21  3:57 ` [PATCH v2 05/19] tests/intel/xe_exec_multi_queue: Validate queue priority setting Niranjana Vishwanathapura
2025-12-02  5:29   ` Dandamudi, Priyanka
2025-12-04 20:45   ` Summers, Stuart
2025-11-21  3:57 ` [PATCH v2 06/19] tests/intel/xe_exec_multi_queue: Add close-fd tests Niranjana Vishwanathapura
2025-11-24  8:18   ` Goyal, Nakshtra
2025-12-04 20:46   ` Summers, Stuart
2025-11-21  3:57 ` [PATCH v2 07/19] tests/intel/xe_exec_multi_queue: Add multiple placement test Niranjana Vishwanathapura
2025-12-02  5:32   ` Dandamudi, Priyanka
2025-12-05 18:10   ` Summers, Stuart
2025-11-21  3:57 ` [PATCH v2 08/19] tests/intel/xe_exec_multi_queue: Add preempt mode test Niranjana Vishwanathapura
2025-12-04 20:52   ` Summers, Stuart
2025-12-05 19:12     ` Niranjana Vishwanathapura
2025-12-08 19:40       ` Summers, Stuart
2025-11-21  3:57 ` [PATCH v2 09/19] lib/xe: Add exec_queue set_property ioctl support Niranjana Vishwanathapura
2025-12-04 19:24   ` Summers, Stuart
2025-12-05  1:58     ` Niranjana Vishwanathapura
2025-12-05 18:11       ` Summers, Stuart
2025-11-21  3:57 ` [PATCH v2 10/19] tests/intel/xe_exec_multi_queue: Add dynamic priority test Niranjana Vishwanathapura
2025-12-04 20:53   ` Summers, Stuart
2025-11-21  3:57 ` [PATCH v2 11/19] tests/intel/xe_exec_multi_queue: Add userptr invalidation tests Niranjana Vishwanathapura
2025-12-04 20:56   ` Summers, Stuart
2025-11-21  3:57 ` [PATCH v2 12/19] tests/intel/xe_exec_multi_queue: Add fault mode test Niranjana Vishwanathapura
2025-11-21  5:04   ` Goyal, Nakshtra
2025-12-04 20:59   ` Summers, Stuart
2025-12-04 23:25     ` Niranjana Vishwanathapura
2025-12-05 18:13       ` Summers, Stuart
2025-11-21  3:57 ` [PATCH v2 13/19] tests/intel/xe_exec_multi_queue: Add multi queues with SMEM Niranjana Vishwanathapura
2025-12-04 19:56   ` Goyal, Nakshtra
2025-12-04 20:59   ` Summers, Stuart [this message]
2025-11-21  3:57 ` [PATCH v2 14/19] lib/xe/xe_spin: Add switch point for preemptible spinner Niranjana Vishwanathapura
2025-12-04 21:03   ` Summers, Stuart
2025-12-04 21:42     ` Niranjana Vishwanathapura
2025-12-05 18:45       ` Summers, Stuart
2025-11-21  3:57 ` [PATCH v2 15/19] tests/intel/xe_exec_multi_queue: Add priority test Niranjana Vishwanathapura
2025-12-02  5:28   ` Dandamudi, Priyanka
2025-12-04 21:53   ` Summers, Stuart
2025-12-05 18:23     ` Niranjana Vishwanathapura
2025-12-08 19:38       ` Summers, Stuart
2025-11-21  3:57 ` [PATCH v2 16/19] tests/intel/xe_exec_multi_queue: Add submission sanity test Niranjana Vishwanathapura
2025-12-02 11:46   ` Ch, Sai Gowtham
2025-12-04 21:08   ` Summers, Stuart
2025-12-04 21:28     ` Niranjana Vishwanathapura
2025-11-21  3:57 ` [PATCH v2 17/19] tests/intel/xe_exec_multi_queue: Sanity test KEEP_ACTIVE flag Niranjana Vishwanathapura
2025-12-04 21:10   ` Summers, Stuart
2025-12-04 21:20     ` Niranjana Vishwanathapura
2025-11-21  3:57 ` [PATCH v2 18/19] tests/intel/xe_exec_multi_queue: Keep group active in exec-sanity Niranjana Vishwanathapura
2025-12-02 11:51   ` Ch, Sai Gowtham
2025-12-04 21:12   ` Summers, Stuart
2025-11-21  3:57 ` [PATCH v2 19/19] tests/intel/xe_exec_queue_property: Update invalid-property test Niranjana Vishwanathapura
2025-12-04 19:25   ` Summers, Stuart
2025-12-04 21:11     ` Niranjana Vishwanathapura
2025-11-21  4:32 ` ✓ Xe.CI.BAT: success for Multi Queue feature validation support (rev2) Patchwork
2025-11-21  6:47 ` ✓ i915.CI.BAT: " Patchwork
2025-11-21  7:20 ` ✗ Xe.CI.Full: failure " Patchwork
2025-11-21  9:42 ` ✗ 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=7980cd6532284b72de93426c9ffbbbb3751d9cd4.camel@intel.com \
    --to=stuart.summers@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=niranjana.vishwanathapura@intel.com \
    --cc=priyanka.dandamudi@intel.com \
    --cc=sai.gowtham.ch@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