diff options
author | Archit Taneja <archit@ti.com> | 2014-04-11 09:23:31 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-04-15 12:35:28 +0200 |
commit | f2cff0f34ff2c51f703880a2b883ea0c9de4a5ac (patch) | |
tree | 2144c9cbb81a5b60746632763a67ba9f6dd0238f /drivers/video/cg6.c | |
parent | drm/omap: Fix memory leak in omap_gem_op_async (diff) | |
download | linux-f2cff0f34ff2c51f703880a2b883ea0c9de4a5ac.tar.xz linux-f2cff0f34ff2c51f703880a2b883ea0c9de4a5ac.zip |
drm/omap: gem sync: wait on correct events
A waiter of the type OMAP_GEM_READ should wait for a buffer to be completely
written, and only then proceed with reading it. A similar logic applies for
waiters with OMAP_GEM_WRITE flag.
Currently the function is_waiting() waits on the read_complete/read_target
counts in the sync object.
This should be the other way round, as a reader should wait for users who are
'writing' to this buffer, and vice versa.
Make readers of the buffer(OMAP_GEM_READ) wait on the write counters, and
writers to the buffer(OMAP_GEM_WRITE) wait on the read counters in is_waiting()
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/cg6.c')
0 files changed, 0 insertions, 0 deletions