Searched hist:"071444280 bcbb96ec38a1fb1ee3924ca7860844a" (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | i915_debugfs.c | diff 071444280bcbb96ec38a1fb1ee3924ca7860844a Tue Oct 15 12:55:40 CDT 2013 Damien Lespiau <damien.lespiau@intel.com> drm/i915: Implement blocking read for pipe CRC files
seq_file is not quite the right interface for these ones. We have a circular buffer with a new entry per vblank on one side and a process wanting to dequeue the CRC with a read().
It's quite racy to wait for vblank in user land and then try to read a pipe_crc file, sometimes the CRC interrupt hasn't been fired and we end up with an EOF.
So, let's have the read on the pipe_crc file block until the interrupt gives us a new entry. At that point we can wake the reading process.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
|
H A D | i915_irq.c | diff 071444280bcbb96ec38a1fb1ee3924ca7860844a Tue Oct 15 12:55:40 CDT 2013 Damien Lespiau <damien.lespiau@intel.com> drm/i915: Implement blocking read for pipe CRC files
seq_file is not quite the right interface for these ones. We have a circular buffer with a new entry per vblank on one side and a process wanting to dequeue the CRC with a read().
It's quite racy to wait for vblank in user land and then try to read a pipe_crc file, sometimes the CRC interrupt hasn't been fired and we end up with an EOF.
So, let's have the read on the pipe_crc file block until the interrupt gives us a new entry. At that point we can wake the reading process.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
|
H A D | i915_drv.h | diff 071444280bcbb96ec38a1fb1ee3924ca7860844a Tue Oct 15 12:55:40 CDT 2013 Damien Lespiau <damien.lespiau@intel.com> drm/i915: Implement blocking read for pipe CRC files
seq_file is not quite the right interface for these ones. We have a circular buffer with a new entry per vblank on one side and a process wanting to dequeue the CRC with a read().
It's quite racy to wait for vblank in user land and then try to read a pipe_crc file, sometimes the CRC interrupt hasn't been fired and we end up with an EOF.
So, let's have the read on the pipe_crc file block until the interrupt gives us a new entry. At that point we can wake the reading process.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
|