From: Matthew Brost <matthew.brost@intel.com>
To: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH v3 16/18] drm/xe/doc: Add documentation for Multi Queue Group
Date: Fri, 21 Nov 2025 22:02:59 -0800 [thread overview]
Message-ID: <aSFSE8FRzGN4bSac@lstrano-desk.jf.intel.com> (raw)
In-Reply-To: <20251121035147.766072-36-niranjana.vishwanathapura@intel.com>
On Thu, Nov 20, 2025 at 07:51:50PM -0800, Niranjana Vishwanathapura wrote:
> Add kernel documentation for Multi Queue group and update
> the corresponding rst.
>
> Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
> ---
> Documentation/gpu/xe/xe_exec_queue.rst | 6 ++++
> drivers/gpu/drm/xe/xe_exec_queue.c | 45 ++++++++++++++++++++++++++
> 2 files changed, 51 insertions(+)
>
> diff --git a/Documentation/gpu/xe/xe_exec_queue.rst b/Documentation/gpu/xe/xe_exec_queue.rst
> index 6076569e311c..732af4741df4 100644
> --- a/Documentation/gpu/xe/xe_exec_queue.rst
> +++ b/Documentation/gpu/xe/xe_exec_queue.rst
> @@ -7,6 +7,12 @@ Execution Queue
> .. kernel-doc:: drivers/gpu/drm/xe/xe_exec_queue.c
> :doc: Execution Queue
>
> +Multi Queue Group
> +=================
> +
> +.. kernel-doc:: drivers/gpu/drm/xe/xe_exec_queue.c
> + :doc: Multi Queue Group
> +
> Internal API
> ============
>
> diff --git a/drivers/gpu/drm/xe/xe_exec_queue.c b/drivers/gpu/drm/xe/xe_exec_queue.c
> index 839fb08f09e7..50326b4431e0 100644
> --- a/drivers/gpu/drm/xe/xe_exec_queue.c
> +++ b/drivers/gpu/drm/xe/xe_exec_queue.c
> @@ -54,6 +54,51 @@
> * the ring operations the different engine classes support.
> */
>
> +/**
> + * DOC: Multi Queue Group
> + *
> + * Multi Queue Group is another mode of execution supported by the compute
> + * and blitter copy command streamers (CCS and BCS, respectively). It is
> + * an enhancement of the existing hardware architecture and leverages the
> + * same submission model. It enables support for efficient, parallel
> + * execution of multiple queues within a single shared context. The multi
> + * queue group functionality is only supported with GuC submission backend.
> + * All the queues of a group must use the same address space (VM).
> + *
> + * The DRM_XE_EXEC_QUEUE_SET_PROPERTY_MULTI_QUEUE execution queue property
> + * supports creating a multi queue group and adding queues to a queue group.
> + *
> + * The XE_EXEC_QUEUE_CREATE ioctl call with above property with value field
> + * set to DRM_XE_MULTI_GROUP_CREATE, will create a new multi queue group with
> + * the queue being created as the primary queue (aka q0) of the group. To add
> + * secondary queues to the group, they need to be created with the above
> + * property with id of the primary queue as the value. The properties of
> + * the primary queue (like priority, time slice) applies to the whole group.
> + * So, these properties can't be set for secondary queues of a group.
> + *
> + * The hardware does not support removing a queue from a multi-queue group.
> + * However, queues can be dynamically added to the group. A group can have
> + * up to 64 queues. To support this, XeKMD holds references to LRCs of the
> + * queues even after the queues are destroyed by the user until the whole
> + * group is destroyed. The secondary queues hold a reference to the primary
> + * queue thus preventing the group from being destroyed when user destroys
> + * the primary queue. Once the primary queue is destroyed, secondary queues
> + * can't be added to the queue group, but they can continue to submit the
> + * jobs if the DRM_XE_MULTI_GROUP_KEEP_ACTIVE flag is set during the multi
> + * queue group creation.
> + *
> + * The queues of a multi queue group can set their priority within the group
> + * through the DRM_XE_EXEC_QUEUE_SET_PROPERTY_MULTI_QUEUE_PRIORITY property.
> + * This multi queue priority can also be set dynamically through the
> + * XE_EXEC_QUEUE_SET_PROPERTY ioctl. This is the only other property
> + * supported by the secondary queues of a multi queue group, other than
> + * DRM_XE_EXEC_QUEUE_SET_PROPERTY_MULTI_QUEUE.
> + *
> + * When GuC reports an error on any of the queues of a multi queue group,
> + * the queue cleanup mechanism is invoked for all the queues of the group
> + * as hardware cannot make progress on the multi queue context.
> + */
> +
> enum xe_exec_queue_sched_prop {
> XE_EXEC_QUEUE_JOB_TIMEOUT = 0,
> XE_EXEC_QUEUE_TIMESLICE = 1,
> --
> 2.43.0
>
next prev parent reply other threads:[~2025-11-22 6:03 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-21 3:51 [PATCH v3 00/18] drm/xe: Multi Queue feature support Niranjana Vishwanathapura
2025-11-21 3:51 ` [PATCH v3 01/18] drm/xe/multi_queue: Add multi_queue_enable_mask to gt information Niranjana Vishwanathapura
2025-11-21 3:51 ` [PATCH v3 02/18] drm/xe/multi_queue: Add user interface for multi queue support Niranjana Vishwanathapura
2025-11-21 22:51 ` Matthew Brost
2025-11-22 4:35 ` Niranjana Vishwanathapura
2025-11-21 3:51 ` [PATCH v3 03/18] drm/xe/multi_queue: Add GuC " Niranjana Vishwanathapura
2025-11-22 22:16 ` Matthew Brost
2025-12-03 3:40 ` Niranjana Vishwanathapura
2025-11-21 3:51 ` [PATCH v3 04/18] drm/xe/multi_queue: Add multi queue priority property Niranjana Vishwanathapura
2025-11-21 22:57 ` Matthew Brost
2025-11-21 3:51 ` [PATCH v3 05/18] drm/xe/multi_queue: Handle invalid exec queue property setting Niranjana Vishwanathapura
2025-11-21 3:51 ` [PATCH v3 06/18] drm/xe/multi_queue: Add exec_queue set_property ioctl support Niranjana Vishwanathapura
2025-11-21 3:51 ` [PATCH v3 07/18] drm/xe/multi_queue: Add support for multi queue dynamic priority change Niranjana Vishwanathapura
2025-11-21 3:51 ` [PATCH v3 08/18] drm/xe/multi_queue: Add multi queue information to guc_info dump Niranjana Vishwanathapura
2025-11-21 3:51 ` [PATCH v3 09/18] drm/xe/multi_queue: Handle tearing down of a multi queue Niranjana Vishwanathapura
2025-11-21 23:03 ` Matthew Brost
2025-11-22 4:40 ` Niranjana Vishwanathapura
2025-11-22 5:47 ` Matthew Brost
2025-12-09 3:31 ` Niranjana Vishwanathapura
2025-11-21 3:51 ` [PATCH v3 10/18] drm/xe/multi_queue: Set QUEUE_DRAIN_MODE for Multi Queue batches Niranjana Vishwanathapura
2025-11-24 18:49 ` Matt Roper
2025-12-02 21:28 ` Niranjana Vishwanathapura
2025-11-21 3:51 ` [PATCH v3 11/18] drm/xe/multi_queue: Handle CGP context error Niranjana Vishwanathapura
2025-11-21 3:51 ` [PATCH v3 12/18] drm/xe/multi_queue: Reset GT upon CGP_SYNC failure Niranjana Vishwanathapura
2025-11-21 23:08 ` Matthew Brost
2025-11-21 3:51 ` [PATCH v3 13/18] drm/xe/multi_queue: Tracepoint support Niranjana Vishwanathapura
2025-11-21 3:51 ` [PATCH v3 14/18] drm/xe/multi_queue: Support active group after primary is destroyed Niranjana Vishwanathapura
2025-11-22 5:57 ` Matthew Brost
2025-11-22 6:08 ` Niranjana Vishwanathapura
2025-11-21 3:51 ` [PATCH v3 15/18] drm/xe/xe3p: Disable GuC Dynamic ICS for Xe3p Niranjana Vishwanathapura
2025-11-21 3:51 ` [PATCH v3 16/18] drm/xe/doc: Add documentation for Multi Queue Group Niranjana Vishwanathapura
2025-11-22 6:02 ` Matthew Brost [this message]
2025-11-21 3:51 ` [PATCH v3 17/18] drm/xe/doc: Add documentation for Multi Queue Group GuC interface Niranjana Vishwanathapura
2025-11-22 6:10 ` Matthew Brost
2025-11-21 3:51 ` [PATCH v3 18/18] drm/xe/multi_queue: Enable multi_queue on xe3p_xpc Niranjana Vishwanathapura
2025-11-21 4:01 ` ✗ CI.checkpatch: warning for drm/xe: Multi Queue feature support (rev3) Patchwork
2025-11-21 4:02 ` ✓ CI.KUnit: success " Patchwork
2025-11-21 4:51 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-11-21 8:10 ` ✗ Xe.CI.Full: " Patchwork
2025-11-24 14:04 ` Patchwork
2025-11-27 9:38 ` [PATCH v3 00/18] drm/xe: Multi Queue feature support Hoppe, Mateusz
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=aSFSE8FRzGN4bSac@lstrano-desk.jf.intel.com \
--to=matthew.brost@intel.com \
--cc=intel-xe@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