mbox series

[0/2] drm/managed: Add drmm_release_action

Message ID 20231129221412.1180549-1-michal.winiarski@intel.com (mailing list archive)
Headers show
Series drm/managed: Add drmm_release_action | expand

Message

Michał Winiarski Nov. 29, 2023, 10:14 p.m. UTC
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.

Michał Winiarski (2):
  drm/managed: Add drmm_release_action
  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 | 65 ++++++++++++++++++------
 include/drm/drm_managed.h                |  4 ++
 3 files changed, 93 insertions(+), 15 deletions(-)