[PATCH v3 0/5] drm/xe: Fix races on fdinfo
Lucas De Marchi
lucas.demarchi at intel.com
Mon Nov 4 14:38:10 UTC 2024
The current reading of engine utilization has same races. This should
fix most of them while also drastically reducing the update rate needed
on "normal apps".
I left tests/xe_drm_fdinfo --r utilization-single-full-load-destroy-queue
running on 2 systems and saw no failures after 100 iterations about
execution cycles being 0.
v3:
- Fix the wait for exec queues to validate user args
- Include new patch to extract force wake get.
Lucas De Marchi (5):
drm/xe: Add trace to lrc timestamp update
drm/xe: Stop accumulating LRC timestamp on job_free
drm/xe: Reword exec_queue.lock doc
drm/xe: Wait on killed exec queues
drm/xe: Sample gpu timestamp closer to exec queues
drivers/gpu/drm/xe/Makefile | 1 +
drivers/gpu/drm/xe/xe_device_types.h | 11 +++--
drivers/gpu/drm/xe/xe_drm_client.c | 68 ++++++++++++++++++----------
drivers/gpu/drm/xe/xe_exec_queue.c | 12 +++++
drivers/gpu/drm/xe/xe_guc_submit.c | 2 -
drivers/gpu/drm/xe/xe_lrc.c | 3 ++
drivers/gpu/drm/xe/xe_trace_lrc.c | 9 ++++
drivers/gpu/drm/xe/xe_trace_lrc.h | 52 +++++++++++++++++++++
8 files changed, 130 insertions(+), 28 deletions(-)
create mode 100644 drivers/gpu/drm/xe/xe_trace_lrc.c
create mode 100644 drivers/gpu/drm/xe/xe_trace_lrc.h
--
2.47.0
More information about the Intel-xe
mailing list