All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] Common DRM execution context
@ 2022-04-26 13:22 ` Christian König
  0 siblings, 0 replies; 12+ messages in thread
From: Christian König @ 2022-04-26 13:22 UTC (permalink / raw)
  To: dri-devel, amd-gfx

Hello everyone,

as mentioned a couple of times in various discussions it would be rather helpful if DRM has an execution context component similar to TTMs execbuf util.

In contrast to the TTM component this implementation works on the GEM level instead and also doesn't use a double linked list but rather an xarray to track all prepared GEM objects.

Additionally to that an object oriented approach is used to describe the state which makes initializing and cleaning up the object much easier to handle (no external state, just use init/fini and that's it).

Since we now doesn't have nor need a linked list of all the objects to lock a bunch of macros are provided to aid driver developers to correctly prepare all the buffer objects. See the documentation in drm_exec.c for further details.

As prove of concept the new component is then used inside amdgpu to replace TTMs execbuf util.

Please comment and/or review,
Christian.



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

end of thread, other threads:[~2022-04-26 13:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-26 13:22 [RFC] Common DRM execution context Christian König
2022-04-26 13:22 ` Christian König
2022-04-26 13:22 ` [PATCH 1/5] drm: execution context for GEM buffers Christian König
2022-04-26 13:22   ` Christian König
2022-04-26 13:22 ` [PATCH 2/5] drm: add drm_exec selftests Christian König
2022-04-26 13:22   ` Christian König
2022-04-26 13:22 ` [PATCH 3/5] drm/amdkfd: switch over to using drm_exec Christian König
2022-04-26 13:22   ` Christian König
2022-04-26 13:22 ` [PATCH 4/5] drm/amdgpu: use drm_exec for GEM and CSA handling Christian König
2022-04-26 13:22   ` Christian König
2022-04-26 13:22 ` [PATCH 5/5] drm/amdgpu: use the new drm_exec object for CS Christian König
2022-04-26 13:22   ` Christian König

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.