OSDN Git Service

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)
commit5b223e94a8842e5e9deaa1b8198fc52558fee782
tree1e20165960b1de2c1ab87c9c7ba221a1f807bf83
parent2f9225dbc09abe7cacb9820ebdeef5b6c0eb9c72
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