summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorTomasz Figa <tfiga@chromium.org>2016-09-14 15:54:56 +0300
committerSean Paul <seanpaul@chromium.org>2016-09-21 16:55:50 +0300
commit7caecdbec1128a934ee628f399110dff8a50c9a1 (patch)
tree55355d848a6b012feffbbb1b4296ab8c35eb0ec0 /tools/perf/scripts/python/export-to-postgresql.py
parent65bcb6bcc8b791ed9fa97603c2ed8063d41cedbe (diff)
downloadlinux-7caecdbec1128a934ee628f399110dff8a50c9a1.tar.xz
drm/rockchip: Avoid race with vblank count increment
Since VOP does not have a hardware vblank count register, the ongoing commit might be racing with a requested vblank interrupt, which would increment the software vblank counter before the changes being committed actually happen. To avoid this, we can extend .atomic_flush(), so after it sets cfg_done bit, it polls the vblank interrupt bit until it's inactive to make sure that any old vblank interrupt gets to the handler and then uses synchronize_irq(vop->irq) to make sure the handler finishes running. The polling case should happen very rarely, but even if, the total wait time should be relatively low and in practice almost equal to the vop hardirq handler running time. Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions