drm/etnaviv: return GPU fence through the submit structure
authorLucas Stach <l.stach@pengutronix.de>
Wed, 22 Mar 2017 12:00:53 +0000 (13:00 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Wed, 29 Mar 2017 14:19:01 +0000 (16:19 +0200)
commit6e2b98cf3b4f81df68a150e1d8737100160e1262
tree2f54411b7b9f68c7db2eebaec08f182b2701bb7d
parent9ad59fea162c139f62335f0ca0ce1fdf4f82bd91
drm/etnaviv: return GPU fence through the submit structure

The next patch will need the complete dma_fence, instead of just the seqno,
to create the sync_file in etnaviv_ioctl_gem_submit, in case an
out_fence_fd is requested.

The submit needs to hold a reference to the dma_fence, to avoid raceing
with the GPU completing the fence.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Philipp Zabel <p.zabel@pengutronix.de>
---
New patch in v3.
drivers/gpu/drm/etnaviv/etnaviv_gem.h
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
drivers/gpu/drm/etnaviv/etnaviv_gpu.c