Bug 110904

Summary: [VKMS] vblank counter error
Product: DRI Reporter: Oleg Vasilev <oleg.vasilev>
Component: DRM/otherAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: DRI git   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Oleg Vasilev 2019-06-12 11:10:49 UTC
VKMS uses vblank simulation through hrtimer.

Updates to vblank counter in DRM are performed through drm_update_vblank_count, where the elapsed time in ns divided by vblank period.

VKMS vblank timestamp computation approach results in negative elapsed time, which leads to trash u64 division result.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.