public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [RFC PATCH i-g-t 0/2] Xe driver watch-queue implementation and example
@ 2026-03-04 12:17 Thomas Hellström
  2026-03-04 12:17 ` [RFC PATCH i-g-t 1/2] lib/xe: add xe_watch listener for watch queue events Thomas Hellström
  2026-03-04 12:17 ` [RFC PATCH i-g-t 2/2] tests/intel/xe_exec_compute_mode: Add a listener for file events Thomas Hellström
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Hellström @ 2026-03-04 12:17 UTC (permalink / raw)
  To: igt-dev
  Cc: Thomas Hellström, Matthew Brost, Maarten Lankhorst,
	Michal Mrozek, John Falkowski, Rodrigo Vivi, Lahtinen Joonas

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

-- 
2.53.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-04 12:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04 12:17 [RFC PATCH i-g-t 0/2] Xe driver watch-queue implementation and example Thomas Hellström
2026-03-04 12:17 ` [RFC PATCH i-g-t 1/2] lib/xe: add xe_watch listener for watch queue events Thomas Hellström
2026-03-04 12:17 ` [RFC PATCH i-g-t 2/2] tests/intel/xe_exec_compute_mode: Add a listener for file events Thomas Hellström

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox