drm/i915: Restore planes after load detection
authorVille Syrjälä <[email protected]>
Thu, 22 Mar 2018 15:23:12 +0000 (17:23 +0200)
committerVille Syrjälä <[email protected]>
Thu, 29 Mar 2018 16:14:21 +0000 (19:14 +0300)
Actually turn the planes back on after were done with
the load detection.

Fixes: 20bdc112bbe4 ("drm/i915: Disable all planes for load detection, v2.")
Cc: Maarten Lankhorst <[email protected]>
Cc: Daniel Vetter <[email protected]>
Reviewed-by: Maarten Lankhorst <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_display.c

index 54d4c369cae2587ddd7255b9eedad37d3aaf8d5f..182f9bf98484a0a415aaf407502aa0115059d62a 100644 (file)
@@ -9974,6 +9974,8 @@ found:
        ret = PTR_ERR_OR_ZERO(drm_atomic_get_connector_state(restore_state, connector));
        if (!ret)
                ret = PTR_ERR_OR_ZERO(drm_atomic_get_crtc_state(restore_state, crtc));
+       if (!ret)
+               ret = drm_atomic_add_affected_planes(restore_state, crtc);
        if (ret) {
                DRM_DEBUG_KMS("Failed to create a copy of old state to restore: %i\n", ret);
                goto fail;