]> git.baikalelectronics.ru Git - kernel.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)
commit762abc4e7787ddefbce809a760d773a8681b5f0e
tree1bb76047bb0c5baf8b78c4e12a77b811b5ca9ab9
parente1ef3369e9dd17a62a7dcc32fc6803af483c7cc4
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