drm/msm: Expose our reservation object when exporting a dmabuf.
authorEric Anholt <eric@anholt.net>
Wed, 12 Apr 2017 19:11:58 +0000 (12:11 -0700)
committerRob Clark <robdclark@gmail.com>
Sat, 27 May 2017 17:48:26 +0000 (13:48 -0400)
commit43523eba79bda8f5b4c27f8ffe20ea078d20113a
tree2901b946f356d7bdd15a0036c826365eb405170a
parent134ccada7ac59156761ce05afd1c0b1d02ebd928
drm/msm: Expose our reservation object when exporting a dmabuf.

Without this, polling on the dma-buf (and presumably other devices
synchronizing against our rendering) would return immediately, even
while the BO was busy.

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
Cc: Rob Clark <robdclark@gmail.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: freedreno@lists.freedesktop.org
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_drv.h
drivers/gpu/drm/msm/msm_gem_prime.c