diff options
author | Mark Yacoub <[email protected]> | 2021-08-30 14:13:59 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2021-10-15 12:59:20 -0700 |
commit | 885455d6bf829e71a9cfe51fca06ade509c088d6 (patch) | |
tree | 1d8f4f04582b093f4c31c0dd0a6856ffcbeb0a3c /tools/perf/scripts/python | |
parent | f25f656608e3a54ac3e0747be415cf3d4a69cef8 (diff) |
drm/msm: Change dpu_crtc_get_vblank_counter to use vsync count.
[why]
vsync_cnt atomic counter increments for every hw vsync. On the other
hand, frame count is a register that increments when the frame gets
actually pushed out. We cannnot read this register whenever the timing
engine is off, but vblank counter should still return a valid number.
This behavior also matches the downstream driver.
[How]
Read the encoder vsync count instead of the dpu_encoder_phys frame
count.
Suggested-by: Abhinav Kumar <[email protected]>
CC: Rob Clark <[email protected]>
Signed-off-by: Mark Yacoub <[email protected]>
Reviewed-by: Abhinav Kumar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Baryshkov <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions