public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] drm/managed: Add drmm_release_action
@ 2023-12-11 22:09 Michał Winiarski
  2023-12-11 22:09 ` [PATCH v3 1/3] " Michał Winiarski
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Michał Winiarski @ 2023-12-11 22:09 UTC (permalink / raw)
  To: intel-xe, dri-devel, linux-kernel
  Cc: Rodrigo Vivi, Michal Wajdeczko, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Daniel Vetter,
	Javier Martinez Canillas, Maíra Canal, Michał Winiarski

Upcoming Intel Xe driver will need to have a more fine-grained control
over DRM managed actions - namely, the ability to release a given
action, triggering it manually at a different point in time than the
final drm_dev_put().
This series adds a drmm_release_action function (which is similar to
devres devm_release_action) and a simple test that uses it.

v1 -> v2:
- Split the test changes (Maxime)
- Simplify priv lifetime management (Maxime)

v2 -> v3:
- Order tests alphabetically (Maxime)
- Add comments explaining the intention behind the tests and the reason
  why DRM device can't be embedded inside test priv (Maxime)
- Bring back priv lifetime management from v1 to avoid use-after-free

Michał Winiarski (3):
  drm/managed: Add drmm_release_action
  drm/tests: managed: Extract device initialization into test init
  drm/tests: managed: Add a simple test for drmm_managed_release

 drivers/gpu/drm/drm_managed.c            | 39 ++++++++++++
 drivers/gpu/drm/tests/drm_managed_test.c | 80 +++++++++++++++++++-----
 include/drm/drm_managed.h                |  4 ++
 3 files changed, 108 insertions(+), 15 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-01-05 10:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-11 22:09 [PATCH v3 0/3] drm/managed: Add drmm_release_action Michał Winiarski
2023-12-11 22:09 ` [PATCH v3 1/3] " Michał Winiarski
2023-12-15 10:31   ` Maxime Ripard
2023-12-11 22:09 ` [PATCH v3 2/3] drm/tests: managed: Extract device initialization into test init Michał Winiarski
2023-12-15 10:34   ` Maxime Ripard
2023-12-11 22:09 ` [PATCH v3 3/3] drm/tests: managed: Add a simple test for drmm_managed_release Michał Winiarski
2023-12-15 16:31   ` Maxime Ripard
2024-01-05 10:06     ` Michał Winiarski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox