drm/vc4: Leverage the load tracker on the BCM2711
authorMaxime Ripard <maxime@cerno.tech>
Mon, 21 Jun 2021 15:19:22 +0000 (17:19 +0200)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:03:45 +0000 (16:03 +0000)
commitd77bc36840a6e8838a6156ade8c1b2db33503b9a
tree47d89b26656bae445fd54b161eedbb6612a7046e
parente0881000763152a6fb01eac76ead7a5591da83c6
drm/vc4: Leverage the load tracker on the BCM2711

The load tracker was initially designed to report and warn about a load
too high for the HVS. To do so, it computes for each plane the impact
it's going to have on the HVS, and will warn (if it's enabled) if we go
over what the hardware can process.

While the limits being used are a bit irrelevant to the BCM2711, the
algorithm to compute the HVS load will be one component used in order to
compute the core clock rate on the BCM2711.

Let's remove the hooks to prevent the load tracker to do its
computation, but since we don't have the same limits, don't check them
against them, and prevent the debugfs file to enable it from being
created.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_debugfs.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_kms.c
drivers/gpu/drm/vc4/vc4_plane.c