]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b13c0a733ca128ee70a58f4b3d2d2f9ee8e6aa9
tree23e844ef2eb4887d6d8f939fc056ffa54b1cbcd7
parent8cf023eaef67706ff8ebf69d50339fcd20603298
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