drm/plane_helper: don't disable plane in destroy function
Subsystems (2)
PATCH 1/1 drm/plane_helper: don't disable plane in destroy function
By the time drm_mode_config_cleanup calls this all the hw state should be cleaned up already - we even have a WARN right before calling plane->destroy callbacks asserting that all framebuffers are gone.
So trying to disable things harder is a bit a bug. Caught by Thierry since it resulted in some mode_config.mutex locking backtraces.
--- drivers/gpu/drm/drm_plane_helper.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/drm_plane_helper.c +0 -1
@@ -255,7 +255,6 @@ EXPORT_SYMBOL(drm_primary_helper_disable);*/ void drm_primary_helper_destroy (struct drm_plane *plane) { - plane->funcs->disable_plane (plane);drm_plane_cleanup (plane);kfree (plane); }
Signature · 1 line
1.8.5.2
Quoted 7 lines · Daniel Vetter
By the time
drm_mode_config_cleanupcalls this all the hw state should be cleaned up already - we even have a WARN right before callingplane->destroycallbacks asserting that all framebuffers are gone.So trying to disable things harder is a bit a bug. Caught by Thierry since it resulted in some mode_config.mutex locking backtraces.
Quoted 6 lines
Cc Thierry Reding <[email protected]>Cc Matt Roper <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/drm_plane_helper.c | 1 - 1 file changed, 1 deletion(-)
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 10 lines · Daniel Vetter
By the time
drm_mode_config_cleanupcalls this all the hw state should be cleaned up already - we even have a WARN right before callingplane->destroycallbacks asserting that all framebuffers are gone.So trying to disable things harder is a bit a bug. Caught by Thierry since it resulted in some mode_config.mutex locking backtraces.
Cc Thierry Reding <[email protected]>Cc Matt Roper <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Quoted 19 lines
--- drivers/gpu/drm/drm_plane_helper.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/drm_plane_helper.c +0
-1@@ -255,7 +255,6 @@ EXPORT_SYMBOL(drm_primary_helper_disable);*/ void drm_primary_helper_destroy (struct drm_plane *plane) { - plane->funcs->disable_plane (plane);drm_plane_cleanup (plane);kfree (plane); }Signature · 1 line
1.8.5.2
Signature · 5 lines
Matt Roper Graphics Software Engineer IoTG Platform Enabling & Development Intel Corporation (916) 356-2795