]> 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)
commitd1cdca7de7504d0f1849f2592e9cb9298a20e125
tree90f2cf51d6002dbd1fdf70f8f8e96917a74665ca
parentd52d93f72f27bb3faec17ede943c73b49e3ce80b
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