drm/etnaviv: couple runtime PM management to submit object lifetime
authorLucas Stach <l.stach@pengutronix.de>
Fri, 24 Nov 2017 16:56:29 +0000 (17:56 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 2 Jan 2018 16:34:59 +0000 (17:34 +0100)
commit8bda1516fb4acf4bd6eaeb746258a9f536aeeb5d
treefe8d3fc6a5a08a3baea13f852b4453a375a0a483
parent5b223e94a8842e5e9deaa1b8198fc52558fee782
drm/etnaviv: couple runtime PM management to submit object lifetime

As long as there is an active submit, we want the GPU to stay awake. This
is slightly complicated by the fact that we really want to wake the GPU
at the last possible moment to achieve maximum power savings.

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