summaryrefslogtreecommitdiff
path: root/include/drm/drm_rect.h
diff options
context:
space:
mode:
authorMihail Atanassov <Mihail.Atanassov@arm.com>2019-10-01 17:21:40 +0300
committerAyan kumar halder <ayan.halder@arm.com>2019-10-01 17:39:34 +0300
commitf59769c52cd7d158df53487ec2936f5592073340 (patch)
treed01e1b6087fd26adad2e694bfb444662a50cf229 /include/drm/drm_rect.h
parent4b39582a8fb3c749f0fa96ec920d138f61bf00d6 (diff)
downloadlinux-f59769c52cd7d158df53487ec2936f5592073340.tar.xz
drm/komeda: Workaround for broken FLIP_COMPLETE timestamps
When initially turning a crtc on, drm_reset_vblank_timestamp will set the vblank timestamp to 0 for any driver that doesn't provide a ->get_vblank_timestamp() hook. Unfortunately, the FLIP_COMPLETE event depends on that timestamp, and the only way to regenerate a valid one is to have vblank interrupts enabled and have a valid in-ISR call to drm_crtc_handle_vblank. Additionally, if the user doesn't request vblanks but _does_ request FLIP_COMPLETE events, we still don't have a good timestamp: it'll be the same stamp as the last vblank one. Work around the issue by always enabling vblanks when the CRTC is on. Reducing the amount of time that PL0 has to be unmasked would be nice to fix at a later time. Changes since v1 [https://patchwork.freedesktop.org/patch/331727/]: - moved drm_crtc_vblank_put call to the ->atomic_disable() hook Cc: Daniel Vetter <daniel@ffwll.ch> Cc: Liviu Dudau <Liviu.Dudau@arm.com> Signed-off-by: Mihail Atanassov <mihail.atanassov@arm.com> Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com> Signed-off-by: Ayan kumar halder <ayan.halder@arm.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191001142121.13939-1-mihail.atanassov@arm.com
Diffstat (limited to 'include/drm/drm_rect.h')
0 files changed, 0 insertions, 0 deletions