drm: Update docs around gem_free_object
Subsystems (3)
PATCH 1/1 drm: Update docs around gem_free_object
Not all places correctly stated that gem_free_object_unlocked is the one to use.
Reported-by Eric Anholt <[email protected]
Cc Eric Anholt <[email protected]
Signed-off-by Daniel Vetter <[email protected]>
--- Documentation/gpu/drm-mm.rst | 2 +- drivers/gpu/drm/drm_gem_cma_helper.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Documentation/gpu/drm-mm.rst +1 -1
@@ -191,7 +191,7 @@ acquired and release by :c:func:`calling drm_gem_object_get()` and holding the lock. When the last reference to a GEM object is released the GEM core calls -the :c:type:`struct drm_driver <drm_driver>` gem_free_object +the :c:type:`struct drm_driver <drm_driver>` gem_free_object_unlocked operation. That operation is mandatory for GEM-enabled drivers and must free the GEM object and all associated resources.
drivers/gpu/drm/drm_gem_cma_helper.c +1 -1
@@ -177,7 +177,7 @@ drm_gem_cma_create_with_handle(struct drm_file *file_priv,* This function frees the backing memory of the CMA GEM object, cleans up the * GEM object state and frees the memory used to store the object itself. * Drivers using the CMA helpers should set this as their -* &drm_driver.gem_free_object callback. +* &drm_driver.gem_free_object_unlocked callback. */ void drm_gem_cma_free_object (struct drm_gem_object *gem_obj) {
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 5 lines · Daniel Vetter
Not all places correctly stated that
gem_free_object_unlockedis the one to use.Reported-by Eric Anholt <[email protected]Cc Eric Anholt <[email protected]
Reviewed-by Eric Anholt <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel