]> 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)
commit302436e59acd58c52c8d73ebe6c3130f9d44677e
tree1e20165960b1de2c1ab87c9c7ba221a1f807bf83
parent4fd5657ddf1abf75b42c617d37df440508b296f7
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