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)
committerSasha Levin <alexander.levin@verizon.com>
Thu, 8 Jun 2017 10:42:00 +0000 (06:42 -0400)
commit7e144ca4d77a8866a7b39b1c573230e69488b84b
tree1e18a4ee06547250df98feeb88814083b85cf4d8
parent7e185e0063bcd0600fb4efcd9d34937792efdb05
drm/msm: Expose our reservation object when exporting a dmabuf.

[ Upstream commit 43523eba79bda8f5b4c27f8ffe20ea078d20113a ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_drv.h
drivers/gpu/drm/msm/msm_gem_prime.c