drm/etnaviv: use submit exec_state for perfmon sampling
authorLucas Stach <l.stach@pengutronix.de>
Fri, 24 Nov 2017 14:19:16 +0000 (15:19 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 2 Jan 2018 16:33:01 +0000 (17:33 +0100)
commit7a9c0fe20e04f16db075a71065685628ec79e6c6
tree90f2cf51d6002dbd1fdf70f8f8e96917a74665ca
parent797b0159e6b9124c24968c9b2b4631eba7c112b9
drm/etnaviv: use submit exec_state for perfmon sampling

The GPU exec state may have changed at the time when the perfmon sampling
is done, as it reflects the state of the last submission, not the current
GPU execution state.

So for proper sampling we must use the submit exec_state.

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