Skip to content

RFC Xe driver watch-queue implementation and example

Thomas Hellström igt-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/xe: add xe_watch listener for watch queue eventsinclude/drm-uapi/xe_drm.h include/drm-uapi/xe_drm_events.h lib/meson.build +2 more+413 -00 replies
2/2tests/intel/xe_exec_compute_mode: Add a listener for file eventstests/intel/xe_exec_compute_mode.c+57 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH i-g-t 0/2] Xe driver watch-queue implementation and example

This series aims to provide an example how to use the xe driver watch-queue interface. The interface provides a means for user-space render clients to get asynchronous notifications with metadata attached.

The primary use-case would be the LR mode rebind worker running out of memory. Currently the VM gets killed, but it should be possible to recover, unbind buffer objects and restart.

Thomas Hellström (2):
lib/xe: add xe_watch listener for watch queue events tests/intel/xe_exec_compute_mode: Add a listener for file events

 include/drm-uapi/xe_drm.h          |  46 ++++++
 include/drm-uapi/xe_drm_events.h   |  65 +++++++++
 lib/meson.build                    |   1 +
 lib/xe/xe_watch.c                  | 221 +++++++++++++++++++++++++++++
 lib/xe/xe_watch.h                  |  80 +++++++++++
 tests/intel/xe_exec_compute_mode.c |  59 +++++++-
 6 files changed, 470 insertions(+), 2 deletions(-)
 create mode 100644 include/drm-uapi/xe_drm_events.h
 create mode 100644 lib/xe/xe_watch.c
 create mode 100644 lib/xe/xe_watch.h
Signature · 1 line
2.53.0