Skip to content

DRM syncobj scoped cleanup and fast path

Tvrtko Ursulin dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7drm/syncobj: Use vmemdup_array_user in drm_syncobj_array_finddrivers/gpu/drm/drm_syncobj.c+4 -91 reply
2/7drm/syncobj: Use scoped cleanup for drm_syncobj_array_wait_timeout pointsdrivers/gpu/drm/drm_syncobj.c+10 -172 replies
3/7drm/syncobj: Use scoped cleanup for drm_syncobj_array_wait_timeout syncobjsdrivers/gpu/drm/drm_syncobj.c+40 -212 replies
4/7drm/syncobj: Use scoped cleanup for drm_syncobj_timeline_signal_ioctl pointsdrivers/gpu/drm/drm_syncobj.c+5 -71 reply
5/7drm/syncobj: Use scoped cleanup for drm_syncobj_timeline_signal_ioctl chainsdrivers/gpu/drm/drm_syncobj.c+29 -121 reply
6/7drm/syncobj: Use scoped cleanup in drm_syncobj_array_find and callersdrivers/gpu/drm/drm_syncobj.c+97 -980 replies
7/7drm/syncobj: Add temporary array allocation fast pathsdrivers/gpu/drm/drm_syncobj.c+105 -622 replies

Reviews trailers per patch

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

PatchChristian KönigFei Yu
SeriesT-b
1/7R-b
2/7
3/7
4/7
5/7
6/7
7/7R-b

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/7] DRM syncobj scoped cleanup and fast path

A different flavour of:
https://lore.kernel.org/dri-devel/[email protected]/

Where Christian suggested to try with scope based cleanup macros. This is that attempt.

We start with converting all the functions which use temporary arrays to scoped cleanup and then in the last patch fast path is added via two handy macros.

Syncobj IGT pass, light gaming and light desktop as well, and there are no kmemleak reports. Nevertheless this version is a bit more invasive so if the approach is looking good a careful review will be required.

Cc Christian König <[email protected]>
Cc Fei Yu <[email protected]>
Cc Maíra Canal <[email protected]>

Tvrtko Ursulin (7):
drm/syncobj: Use vmemdup_array_user in drm_syncobj_array_find drm/syncobj: Use scoped cleanup for drm_syncobj_array_wait_timeout
points
drm/syncobj: Use scoped cleanup for drm_syncobj_array_wait_timeout
syncobjs
drm/syncobj: Use scoped cleanup for drm_syncobj_timeline_signal_ioctl
points
drm/syncobj: Use scoped cleanup for drm_syncobj_timeline_signal_ioctl
chains
drm/syncobj: Use scoped cleanup in drm_syncobj_array_find and callers drm/syncobj: Add temporary array allocation fast paths

 drivers/gpu/drm/drm_syncobj.c | 384 ++++++++++++++++++++--------------
 1 file changed, 224 insertions(+), 160 deletions(-)
Signature · 1 line
2.56.0