Skip to content

Commit

Permalink
drm/msm/mdp5: disable vblanks when crtc is off
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Clark <[email protected]>
  • Loading branch information
robclark committed Oct 28, 2017
1 parent cae923e commit 0033e1b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,9 @@ static void mdp5_crtc_atomic_disable(struct drm_crtc *crtc,
if (WARN_ON(!mdp5_crtc->enabled))
return;

/* Disable/save vblank irq handling before power is disabled */
drm_crtc_vblank_off(crtc);

if (mdp5_cstate->cmd_mode)
mdp_irq_unregister(&mdp5_kms->base, &mdp5_crtc->pp_done);

Expand All @@ -446,6 +449,9 @@ static void mdp5_crtc_atomic_enable(struct drm_crtc *crtc,

pm_runtime_get_sync(dev);

/* Restore vblank irq handling after power is enabled */
drm_crtc_vblank_on(crtc);

mdp5_crtc_mode_set_nofb(crtc);

mdp_irq_register(&mdp5_kms->base, &mdp5_crtc->err);
Expand Down

0 comments on commit 0033e1b

Please sign in to comment.