diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2017-11-24 16:34:46 +0300 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2018-01-02 19:30:44 +0300 |
commit | 08301d73f27d59e2ac45411ed7bb2235d68190db (patch) | |
tree | 1bb76047bb0c5baf8b78c4e12a77b811b5ca9ab9 /drivers/gpu/drm/etnaviv/etnaviv_gem.h | |
parent | 33a63e68f62bef6981fae781090d480080a73570 (diff) | |
download | linux-08301d73f27d59e2ac45411ed7bb2235d68190db.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_gem.h')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gem.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gem.h b/drivers/gpu/drm/etnaviv/etnaviv_gem.h index 21cb3460046f..6b78d059ed2d 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gem.h +++ b/drivers/gpu/drm/etnaviv/etnaviv_gem.h @@ -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; |