Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jesse Zhang <Jesse.Zhang@amd.com>
To: <igt-dev@lists.freedesktop.org>
Cc: Vitaly Prosyak <vitaly.prosyak@amd.com>,
	Alex Deucher <alexander.deucher@amd.com>,
	Christian Koenig <christian.koenig@amd.com>,
	Jesse Zhang <Jesse.Zhang@amd.com>,
	Jesse Zhang <jesse.zhang@amd.com>, Claude <noreply@anthropic.com>
Subject: [PATCH i-g-t v2 1/3] include/drm-uapi/amdgpu: add queue id to user queue wait IOCTL
Date: Thu, 24 Sep 2026 15:51:56 +0800	[thread overview]
Message-ID: <20260924075300.172142-1-Jesse.Zhang@amd.com> (raw)

Add waitq_id (plus padding) to the front of struct drm_amdgpu_userq_wait
to match the kernel/libdrm uAPI. The wait IOCTL uses the queue id to
retrieve the wait user queue and maintain the fence driver references in
it, so that queues in the same context release their fence-driver
references before queue destruction.

Mirrors the libdrm change "amdgpu: Add queue id support to the user
queue wait IOCTL" by Arunpravin Paneer Selvam:
  https://gitlab.freedesktop.org/mesa/libdrm/-/commit/15e174c1ed2426be3228eb595f942481cfcf5a90

v2: delete change-id

Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Co-Authored-By: Claude <noreply@anthropic.com>
---
 include/drm-uapi/amdgpu_drm.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/drm-uapi/amdgpu_drm.h b/include/drm-uapi/amdgpu_drm.h
index ca24519c7..321f374d4 100644
--- a/include/drm-uapi/amdgpu_drm.h
+++ b/include/drm-uapi/amdgpu_drm.h
@@ -511,6 +511,12 @@ struct drm_amdgpu_userq_fence_info {
 };
 
 struct drm_amdgpu_userq_wait {
+	/**
+	 * @waitq_id: Queue handle used by the userq wait IOCTL to retrieve the
+	 * wait queue and maintain the fence driver references in it.
+	 */
+	__u32	waitq_id;
+	__u32	pad;
 	/**
 	 * @syncobj_handles: The list of syncobj handles submitted by the user queue
 	 * job to get the va/value pairs.
-- 
2.49.0


             reply	other threads:[~2026-09-24  7:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-24  7:51 Jesse Zhang [this message]
2026-09-24  7:51 ` [PATCH i-g-t v2 2/3] lib/amdgpu: support a non-zero wptr offset in user_queue_create Jesse Zhang
2026-09-24  7:51 ` [PATCH i-g-t v2 3/3] tests/amdgpu: add userq wptr-offset checks to amd_fuzzing Jesse Zhang
2026-09-24  9:51 ` ✗ i915.CI.BAT: failure for series starting with [i-g-t,v2,1/3] include/drm-uapi/amdgpu: add queue id to user queue wait IOCTL Patchwork
2026-09-24  9:56 ` ✓ Xe.CI.BAT: success " Patchwork
2026-09-24 23:50 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-09-30 17:33 ` [PATCH i-g-t v2 1/3] " vitaly prosyak

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=20260924075300.172142-1-Jesse.Zhang@amd.com \
    --to=jesse.zhang@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=christian.koenig@amd.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=noreply@anthropic.com \
    --cc=vitaly.prosyak@amd.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