]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/etnaviv: unconditionally enable debug registers
authorLucas Stach <l.stach@pengutronix.de>
Fri, 5 Jul 2024 20:00:11 +0000 (22:00 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 28 Oct 2024 15:34:13 +0000 (16:34 +0100)
commitca0593a29e9ea2df17bf222a649a41bc16936255
tree8267039fd06bf53624d77f875fc12284e3db1db3
parent67cb86039f8e2e29164b317d16756804e0deaa2a
drm/etnaviv: unconditionally enable debug registers

A later change will use the FE debug registers to improve GPU
progress monitoring. Instead of having to keep track of the
usage state of the debug registers and lock access to the
VIVS_HI_CLOCK_CONTROL register, statically enable debug
register access during GPU init.

The Vivante downstream driver seems to do the same thing since
a while, so it should be okay to keep access enabled. (See
gckHARDWARE_InitializeHardware in 6.4.11 downstream driver).

Many debug registers contain bogus data if clock gating is
enabled, so even if they are always accessible performance
profiling still needs to manage some prerequisites.

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