drm/i915: Only commit active planes when updating planes during reset.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 23 Sep 2015 14:29:37 +0000 (16:29 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 19 Oct 2015 09:38:11 +0000 (11:38 +0200)
In the next commit commit_plane will no longer check if the crtc is active.
To prevent issues with legacy page flips the check should be performed inside
update_primary_planes.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index ef8282678a29f7c8db7500fc028ccf8838dcb054..016fab6d12838888119d9c1177875df74be9000c 100644 (file)
@@ -3194,10 +3194,9 @@ static void intel_update_primary_planes(struct drm_device *dev)
                struct intel_plane_state *plane_state;
 
                drm_modeset_lock_crtc(crtc, &plane->base);
-
                plane_state = to_intel_plane_state(plane->base.state);
 
-               if (plane_state->base.fb)
+               if (crtc->state->active && plane_state->base.fb)
                        plane->commit_plane(&plane->base, plane_state);
 
                drm_modeset_unlock_crtc(crtc);