]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
drm: mali-dp: Disable planes when their CRTC gets disabled.
authorLiviu Dudau <Liviu.Dudau@arm.com>
Thu, 31 Aug 2017 16:39:24 +0000 (17:39 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Fri, 24 Nov 2017 15:43:52 +0000 (15:43 +0000)
Make sure only the planes on the active CRTCs get committed and
that all planes on the disabled CRTCs get turned off.

Reviewed-by: Brian Starkey <brian.starkey@arm.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/malidp_crtc.c

index 153a4967062628e4116e08c4d1a11b6ff144869f..904fff80917baa09bfa5cdafa2f56ee2aa4b4474 100644 (file)
@@ -77,6 +77,9 @@ static void malidp_crtc_atomic_disable(struct drm_crtc *crtc,
        struct malidp_hw_device *hwdev = malidp->dev;
        int err;
 
+       /* always disable planes on the CRTC that is being turned off */
+       drm_atomic_helper_disable_planes_on_crtc(old_state, false);
+
        drm_crtc_vblank_off(crtc);
        hwdev->hw->enter_config_mode(hwdev);