diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-07-24 15:59:25 +0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-08-14 17:34:58 +0200 |
commit | deead1d39368ac11a66f0d9def39f75d1db7e78b (patch) | |
tree | a55e799797e24380ad0db0e3a304f4bbf872dfcb /assembler/disasm-main.c | |
parent | b0263e5d0563a81a42cf66e7d3b84662d3222862 (diff) |
lib/igt_debugfs: Add igt_pipe_crc_get_current() to get a crc.
A pair of igt_pipe_crc_drain() and igt_pipe_crc_get_single() has a bug in which
you're not sure whether the new CRC is captured because the vblank irq may race
against the CRC irq and delivered to userspace too soon.
When receiving a vblank event, igt_pipe_crc_drain() will then drain all crc's,
but not the new (stale) crc, which is then delivered and immediately returned
by igt_pipe_crc_get_single().
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'assembler/disasm-main.c')
0 files changed, 0 insertions, 0 deletions