]> 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)
commitb96705d1d9c9bac08469501fa126cd13aee7a654
tree1bb76047bb0c5baf8b78c4e12a77b811b5ca9ab9
parentd6e1679b3ff504f013ae176505de2b04057d60c7
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