drm/etnaviv: Expose our reservation object when exporting a dmabuf.
authorEric Anholt <eric@anholt.net>
Tue, 11 Apr 2017 01:44:13 +0000 (18:44 -0700)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 5 May 2017 15:14:27 +0000 (17:14 +0200)
commit8555137e26618490cbeb12c243818539875d12f4
tree31e3d4336c69b1fda392f379a00d701bb9e98094
parent657314b7a5d16961e7e0ecdae4a59d28123e74c0
drm/etnaviv: 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>
Cc: stable@vger.kernel.org
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Russell King <linux+etnaviv@armlinux.org.uk>
Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
Cc: etnaviv@lists.freedesktop.org
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_drv.c
drivers/gpu/drm/etnaviv/etnaviv_drv.h
drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c