Re: [PATCH v12 0/5] drm/amdgpu: Add WAIT_EVENT ioctl for render-node events

Alex Deucher <[email protected]>
Newsgroups org.freedesktop.lists.amd-gfx
Message-ID <CADnq5_PFDW_ek=OU6BtL51J2xUPCD5+YWL1R4fkbh0xXCgVD8g@mail.gmail.com>
Series is:
Reviewed-by: Alex Deucher <[email protected]>

On Thu, Jul 16, 2026 at 9:21 AM Srinivasan Shanmugam
<[email protected]> wrote:
>
> This series introduces a render-node WAIT_EVENT ioctl for retrieving
> AMDGPU event records and associated metadata.
>
> WAIT_EVENT complements the EVENTFD notification interface. EVENTFD
> provides lightweight readiness notification, while WAIT_EVENT allows
> userspace to retrieve the corresponding event record and associated
> metadata.
>
> This series builds on the previously proposed render-node EVENTFD
> infrastructure and adds WAIT_EVENT support together with USERQ_EOP and
> QUEUE_RESET event producers.
>
> Changes since v11:
> - Use an unsigned absolute CLOCK_MONOTONIC deadline for WAIT_EVENT.
> - Preserve zero timeout semantics as an immediate check-and-return.
> - Remove the special handling for indefinite waits.
> - Improve kerneldoc for timeout handling and WAIT_EVENT manager
>   lifetime.
> - Clarify the existing teardown ordering that guarantees the embedded
>   WAIT_EVENT manager remains valid while USERQ producers are active.
> - Address review comments from Christian.
>
> Srinivasan Shanmugam (5):
>   drm/amdgpu/uapi: Add WAIT_EVENT ioctl and metadata structures
>   drm/amdgpu: Add wait-event manager and per-file lifetime plumbing
>   drm/amdgpu: Remove queue-scoped WAIT_EVENT records on queue teardown
>   drm/amdgpu: Record USERQ_EOP WAIT_EVENT notifications
>   drm/amdgpu: Record QUEUE_RESET WAIT_EVENT notifications
>
>  drivers/gpu/drm/amd/amdgpu/Makefile           |   2 +-
>  drivers/gpu/drm/amd/amdgpu/amdgpu.h           |   5 +-
>  drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c       |   1 +
>  drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c       |   5 +-
>  drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c     |  35 +-
>  drivers/gpu/drm/amd/amdgpu/amdgpu_userq.h     |   2 +
>  .../gpu/drm/amd/amdgpu/amdgpu_wait_event.c    | 490 ++++++++++++++++++
>  .../gpu/drm/amd/amdgpu/amdgpu_wait_event.h    | 101 ++++
>  include/uapi/drm/amdgpu_drm.h                 | 114 ++++
>  9 files changed, 751 insertions(+), 4 deletions(-)
>  create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_wait_event.c
>  create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_wait_event.h
>
> --
> 2.34.1
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.