All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: Destroy the planes prior to destroying the associated CRTC
@ 2012-09-17  9:38 Chris Wilson
  2012-09-17 14:55 ` Jesse Barnes
  2012-09-20  2:52 ` Joonyoung Shim
  0 siblings, 2 replies; 11+ messages in thread
From: Chris Wilson @ 2012-09-17  9:38 UTC (permalink / raw)
  To: dri-devel; +Cc: airlied, stable

As during the plane cleanup, we wish to disable the hardware and
so may modify state on the associated CRTC, that CRTC must continue to
exist until we are finished.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54101
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: stable@vger.kernel.org
---
 drivers/gpu/drm/drm_crtc.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 6fbfc24..af81f77 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -1034,15 +1034,15 @@ void drm_mode_config_cleanup(struct drm_device *dev)
 		fb->funcs->destroy(fb);
 	}
 
-	list_for_each_entry_safe(crtc, ct, &dev->mode_config.crtc_list, head) {
-		crtc->funcs->destroy(crtc);
-	}
-
 	list_for_each_entry_safe(plane, plt, &dev->mode_config.plane_list,
 				 head) {
 		plane->funcs->destroy(plane);
 	}
 
+	list_for_each_entry_safe(crtc, ct, &dev->mode_config.crtc_list, head) {
+		crtc->funcs->destroy(crtc);
+	}
+
 	idr_remove_all(&dev->mode_config.crtc_idr);
 	idr_destroy(&dev->mode_config.crtc_idr);
 }
-- 
1.7.10.4

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

end of thread, other threads:[~2012-09-20  8:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-17  9:38 [PATCH] drm: Destroy the planes prior to destroying the associated CRTC Chris Wilson
2012-09-17 14:55 ` Jesse Barnes
2012-09-17 15:04   ` Chris Wilson
2012-09-19  9:34     ` Daniel Vetter
2012-09-19  9:45       ` Paul Menzel
2012-09-19 10:26         ` Chris Wilson
2012-09-20  2:52 ` Joonyoung Shim
2012-09-20  5:38   ` Rob Clark
2012-09-20  6:10     ` Joonyoung Shim
2012-09-20  7:49       ` Chris Wilson
2012-09-20  8:08         ` Joonyoung Shim

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.