]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: move GPU active handling to bo pin/unpin
authorLucas Stach <l.stach@pengutronix.de>
Mon, 27 Nov 2017 16:46:15 +0000 (17:46 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 2 Jan 2018 16:34:10 +0000 (17:34 +0100)
commitf2c8a2d8afd0e521a8316a02a9bc3de5d90a7431
tree1e20165960b1de2c1ab87c9c7ba221a1f807bf83
parent6c2a81966e9ca5add6bb882decca58acbc66fb63
drm/etnaviv: move GPU active handling to bo pin/unpin

The active count is used to check if the BO is idle, where idle is defined
as not active on the GPU and all VM mappings and reference counts dropped
to the initial state. As the idling of the mappings and references now only
happens in the submit cleanup, the active state handling must be moved to
the same location in order to keep the userspace semantics.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
drivers/gpu/drm/etnaviv/etnaviv_gpu.c