diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2017-01-24 09:32:26 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2017-01-31 20:05:26 +1000 |
commit | 2b5078937355c0d662ecef54b7d4d04f48da4fa9 (patch) | |
tree | 9e75490ab352bf7d2e4a689ee761656d3dafc7d1 /drivers/gpu | |
parent | 24bf7ae359b8cca165bb30742d2b1c03a1eb23af (diff) | |
download | talos-op-linux-2b5078937355c0d662ecef54b7d4d04f48da4fa9.tar.gz talos-op-linux-2b5078937355c0d662ecef54b7d4d04f48da4fa9.zip |
drm/nouveau/kms/nv50: request vblank events for commits that send completion events
This somehow fixes an issue where sync-to-vblank longer works correctly
after resume from suspend.
From a HW perspective, we don't need the IRQs turned on to be able to
detect flip completion, so it's assumed that this is required for the
voodoo in the core DRM vblank core.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_display.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index 2c2c64507661..32097fd615fd 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c @@ -4052,6 +4052,11 @@ nv50_disp_atomic_commit_tail(struct drm_atomic_state *state) } } + for_each_crtc_in_state(state, crtc, crtc_state, i) { + if (crtc->state->event) + drm_crtc_vblank_get(crtc); + } + /* Update plane(s). */ for_each_plane_in_state(state, plane, plane_state, i) { struct nv50_wndw_atom *asyw = nv50_wndw_atom(plane->state); @@ -4101,6 +4106,7 @@ nv50_disp_atomic_commit_tail(struct drm_atomic_state *state) drm_crtc_send_vblank_event(crtc, crtc->state->event); spin_unlock_irqrestore(&crtc->dev->event_lock, flags); crtc->state->event = NULL; + drm_crtc_vblank_put(crtc); } } |