Skip to content

drm/xe: Fix races on fdinfo

Lucas De Marchi intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/xe: Add trace to lrc timestamp updatedrivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/xe_lrc.c drivers/gpu/drm/xe/xe_trace_lrc.c +1 more+65 -01 reply
2/3drm/xe: Accumulate exec queue timestamp on destroydrivers/gpu/drm/xe/xe_exec_queue.c+8 -01 reply
3/3drm/xe: Stop accumulating LRC timestamp on job_freedrivers/gpu/drm/xe/xe_exec_queue.c drivers/gpu/drm/xe/xe_guc_submit.c+6 -20 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchNirmoy Das
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] drm/xe: Fix races on fdinfo

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 running on 2 systems and saw no failures after 100 iterations.

Lucas De Marchi (3):
drm/xe: Add trace to lrc timestamp update drm/xe: Accumulate exec queue timestamp on destroy drm/xe: Stop accumulating LRC timestamp on job_free

 drivers/gpu/drm/xe/Makefile        |  1 +
 drivers/gpu/drm/xe/xe_exec_queue.c | 14 ++++++++
 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 ++++++++++++++++++++++++++++++
 6 files changed, 79 insertions(+), 2 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/xe_trace_lrc.c
 create mode 100644 drivers/gpu/drm/xe/xe_trace_lrc.h
Signature · 1 line
2.47.0