]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita27ecb88c7f688bd3f4bf171945b1221fa3e8662
tree90f2cf51d6002dbd1fdf70f8f8e96917a74665ca
parentf89333bd7b5afd86168d26437e0dede47b0c37b8
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