]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/etnaviv: assert GPU lock held in perfmon pipe_*_read functions
authorLucas Stach <l.stach@pengutronix.de>
Fri, 5 Jul 2024 20:00:10 +0000 (22:00 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 28 Oct 2024 15:33:43 +0000 (16:33 +0100)
commit67cb86039f8e2e29164b317d16756804e0deaa2a
tree3888f0320f73ae2c05a2f42a5943dacac6c20d75
parent37dc4737447a7667f8e9ec790dac251da057eb27
drm/etnaviv: assert GPU lock held in perfmon pipe_*_read functions

The perf counter read functions don't just read registers, but they
also mutate state to direct the reads towards the correct pipe and
engine. Assert that the GPU mutex is held at this point, so that
those state changes don't interfere with others.

Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_perfmon.c