drm/etnaviv: move ww_acquire_ctx out of submit object

The acquire_ctx is special in that it needs to be released from the same
thread as has been used to initialize it. This collides with the intention to
extend the submit lifetime beyond the gem_submit function with potentially
other threads doing the final cleanup.

Move the ww_acquire_ctx to the function local stack as suggested in the
documentation.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
Lucas Stach
2017-11-24 14:34:46 +01:00
parent 33a63e68f6
commit 08301d73f2
2 changed files with 13 additions and 10 deletions

View File

@@ -102,7 +102,6 @@ struct etnaviv_gem_submit_bo {
*/
struct etnaviv_gem_submit {
struct etnaviv_gpu *gpu;
struct ww_acquire_ctx ticket;
struct dma_fence *out_fence, *in_fence;
u32 flags;
unsigned int nr_bos;