drm/msm: handle read vs write fences
authorRob Clark <robdclark@gmail.com>
Sun, 1 Sep 2013 17:25:09 +0000 (13:25 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 10 Sep 2013 17:56:58 +0000 (13:56 -0400)
commitbf6811f304795e7697985449ee870b29a8cbc6c7
tree23e844ef2eb4887d6d8f939fc056ffa54b1cbcd7
parent86a7e1224a68511d3a1ae0b7e11581b9d37723ae
drm/msm: handle read vs write fences

The userspace API already had everything needed to handle read vs write
synchronization.  This patch actually bothers to hook it up properly, so
that we don't need to (for example) stall on userspace read access to a
buffer that gpu is also still reading.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_drv.h
drivers/gpu/drm/msm/msm_gem.c
drivers/gpu/drm/msm/msm_gem.h
drivers/gpu/drm/msm/msm_gpu.c