All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] DRM syncobj scoped cleanup and fast path
@ 2026-11-26 11:11 Tvrtko Ursulin
  2026-11-26 11:11 ` [PATCH 1/7] drm/syncobj: Use vmemdup_array_user in drm_syncobj_array_find Tvrtko Ursulin
                   ` (7 more replies)
  0 siblings, 8 replies; 22+ messages in thread
From: Tvrtko Ursulin @ 2026-11-26 11:11 UTC (permalink / raw)
  To: dri-devel
  Cc: kernel-dev, Tvrtko Ursulin, Christian König, Fei Yu,
	Maíra Canal

A different flavour of:
https://lore.kernel.org/dri-devel/20261117103916.9101-1-tvrtko.ursulin@igalia.com/

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 <christian.koenig@amd.com>
Cc: Fei Yu <fei.yu@intel.com>
Cc: Maíra Canal <mcanal@igalia.com>

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(-)

-- 
2.56.0


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

end of thread, other threads:[~2026-11-27  7:53 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 11:11 [PATCH 0/7] DRM syncobj scoped cleanup and fast path Tvrtko Ursulin
2026-11-26 11:11 ` [PATCH 1/7] drm/syncobj: Use vmemdup_array_user in drm_syncobj_array_find Tvrtko Ursulin
2026-11-26 11:59   ` Christian König
2026-11-26 11:11 ` [PATCH 2/7] drm/syncobj: Use scoped cleanup for drm_syncobj_array_wait_timeout points Tvrtko Ursulin
2026-11-26 12:09   ` Christian König
2026-11-26 14:22     ` Tvrtko Ursulin
2026-11-26 11:11 ` [PATCH 3/7] drm/syncobj: Use scoped cleanup for drm_syncobj_array_wait_timeout syncobjs Tvrtko Ursulin
2026-11-26 11:17   ` sashiko-bot
2026-11-26 12:11   ` Christian König
2026-11-26 14:33     ` Tvrtko Ursulin
2026-11-26 11:11 ` [PATCH 4/7] drm/syncobj: Use scoped cleanup for drm_syncobj_timeline_signal_ioctl points Tvrtko Ursulin
2026-11-26 12:15   ` Christian König
2026-11-26 11:11 ` [PATCH 5/7] drm/syncobj: Use scoped cleanup for drm_syncobj_timeline_signal_ioctl chains Tvrtko Ursulin
2026-11-26 11:21   ` sashiko-bot
2026-11-26 12:19   ` Christian König
2026-11-26 11:11 ` [PATCH 6/7] drm/syncobj: Use scoped cleanup in drm_syncobj_array_find and callers Tvrtko Ursulin
2026-11-26 11:19   ` sashiko-bot
2026-11-26 11:11 ` [PATCH 7/7] drm/syncobj: Add temporary array allocation fast paths Tvrtko Ursulin
2026-11-26 11:22   ` sashiko-bot
2026-11-26 11:49   ` [PATCH v2 " Tvrtko Ursulin
2026-11-27  7:59     ` Fei Yu
2026-11-27  7:58 ` [PATCH 0/7] DRM syncobj scoped cleanup and fast path Fei Yu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.