Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/atomic: Use KMS VBLANK API

Instead of using the legacy VBLANK API, use the new KMS API. This is
part of an effort to convert all existing users so that the KMS API can
be changed to properly use per-CRTC data.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

authored by

Thierry Reding and committed by
Daniel Vetter
d4853630 c30e11fc

+2 -2
+2 -2
drivers/gpu/drm/drm_atomic_helper.c
··· 958 958 continue; 959 959 960 960 old_crtc_state->enable = true; 961 - old_crtc_state->last_vblank_count = drm_vblank_count(dev, i); 961 + old_crtc_state->last_vblank_count = drm_crtc_vblank_count(crtc); 962 962 } 963 963 964 964 for_each_crtc_in_state(old_state, crtc, old_crtc_state, i) { ··· 967 967 968 968 ret = wait_event_timeout(dev->vblank[i].queue, 969 969 old_crtc_state->last_vblank_count != 970 - drm_vblank_count(dev, i), 970 + drm_crtc_vblank_count(crtc), 971 971 msecs_to_jiffies(50)); 972 972 973 973 drm_crtc_vblank_put(crtc);