aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorDhinakaran Pandiyan <[email protected]>2018-02-02 21:13:01 -0800
committerRodrigo Vivi <[email protected]>2018-02-15 11:50:14 -0800
commitd0bb96b4be69feea97f16de5306c35e280658931 (patch)
tree3c9016ad4c3087d2bba13f4c783b43b15c54eb36 /tools/perf/scripts
parent68036b08b91bc491ccc308f902616a570a49227c (diff)
drm/vblank: Restoring vblank counts after device PM events.
The HW frame counter can get reset if device enters a low power state after vblank interrupts were disabled. This messes up any following vblank count update as a negative diff (huge unsigned diff) is calculated from the HW frame counter change. We cannot ignore negative diffs altogther as there could be legitimate wrap arounds. So, allow drivers to update vblank->count with missed vblanks for the time interrupts were disabled. This is similar to _crtc_vblank_on() except that vblanks interrupts are not enabled at the end as this function is expected to be called from the driver _enable_vblank() vfunc. v2: drm_crtc_vblank_restore should take crtc as arg. (Chris) Add docs and sprinkle some asserts. Cc: Daniel Vetter <[email protected]> Cc: Chris Wilson <[email protected]> Cc: Michel Dänzer <[email protected]> Signed-off-by: Dhinakaran Pandiyan <[email protected]> Reviewed-by: Rodrigo Vivi <[email protected]> Acked-by: Daniel Vetter <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions