From: Yicong Hui <yiconghui@gmail.com>
To: christian.koenig@amd.com, michel.daenzer@mailbox.org
Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
skhan@linuxfoundation.org, david.hunter.linux@gmail.com,
Yicong Hui <yiconghui@gmail.com>
Subject: [RFC PATCH v2 0/3] Querying errors from drm_syncobj
Date: Fri, 20 Feb 2026 02:26:25 +0000 [thread overview]
Message-ID: <20260220022631.2205037-1-yiconghui@gmail.com> (raw)
This patch series adds 2 new flags, DRM_SYNCOBJ_QUERY_FLAGS_ERROR and
DRM_SYNCOBJ_WAIT_FLAGS_ABORT_ON_ERROR for 3 ioctl operations
DRM_IOCTL_SYNCOBJ_QUERY, DRM_IOCTL_SYNCOBJ_WAIT and
DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT to allow them to batch-request error
codes from multiple syncobjs and abort early upon error of any of them.
Based on discussions from Michel Dänzer and Christian König, and a
starter task from the DRM todo documentation.
See https://gitlab.gnome.org/GNOME/mutter/-/issues/4624 for discussions
on userspace implementation.
---
Changes:
v2:
* Went from adding a new ioctl to implementing flags for existing ones.
v1: https://lore.kernel.org/all/20260213120836.81283-1-yiconghui@gmail.com/T/#mfdbc7f97e91ca5731b51b69c8cf8173cb0b2fb3e
Yicong Hui (3):
drm/syncobj: Add flag DRM_SYNCOBJ_QUERY_FLAGS_ERROR to query errors
drm/syncobj: Add DRM_SYNCOBJ_WAIT_FLAGS_ABORT_ON_ERROR ioctl flag
drm/syncobj/doc: Remove starter task from todo list
Documentation/gpu/todo.rst | 16 ----------
drivers/dma-buf/dma-fence-chain.c | 52 +++++++++++++++++++++++++++++++
drivers/gpu/drm/drm_syncobj.c | 46 ++++++++++++++++++++++++---
include/linux/dma-fence-chain.h | 1 +
include/uapi/drm/drm.h | 2 ++
5 files changed, 96 insertions(+), 21 deletions(-)
--
2.53.0
next reply other threads:[~2026-02-20 2:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-20 2:26 Yicong Hui [this message]
2026-02-20 2:26 ` [RFC PATCH v2 1/3] drm/syncobj: Add flag DRM_SYNCOBJ_QUERY_FLAGS_ERROR to query errors Yicong Hui
2026-02-20 13:13 ` Christian König
2026-02-20 17:05 ` Yicong Hui
2026-02-20 17:07 ` Christian König
2026-02-20 19:40 ` Yicong Hui
2026-02-23 9:38 ` Christian König
2026-02-20 2:26 ` [RFC PATCH v2 2/3] drm/syncobj: Add DRM_SYNCOBJ_WAIT_FLAGS_ABORT_ON_ERROR ioctl flag Yicong Hui
2026-02-20 2:26 ` [RFC PATCH v2 3/3] drm/syncobj/doc: Remove starter task from todo list Yicong Hui
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=20260220022631.2205037-1-yiconghui@gmail.com \
--to=yiconghui@gmail.com \
--cc=christian.koenig@amd.com \
--cc=david.hunter.linux@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michel.daenzer@mailbox.org \
--cc=skhan@linuxfoundation.org \
/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
all inboxes | Powered by JetHome®