]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/etnaviv: move ww_acquire_ctx out of submit object
authorLucas Stach <l.stach@pengutronix.de>
Fri, 24 Nov 2017 13:34:46 +0000 (14:34 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 2 Jan 2018 16:30:44 +0000 (17:30 +0100)
commit08301d73f27d59e2ac45411ed7bb2235d68190db
tree1bb76047bb0c5baf8b78c4e12a77b811b5ca9ab9
parent33a63e68f62bef6981fae781090d480080a73570
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>
drivers/gpu/drm/etnaviv/etnaviv_gem.h
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c