drm/vc4: Configure the HVS COB allocations
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 11 Aug 2022 12:49:16 +0000 (13:49 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Thu, 1 Sep 2022 16:58:41 +0000 (17:58 +0100)
commitcf9faae8120fb366bc71af191814d3afb5216478
tree3a496f4580a99765b5c140ee98691c50174dc643
parenta59a3781987e1e6331a88df8d7abb1a1a9524e66
drm/vc4: Configure the HVS COB allocations

The HVS Composite Output Buffer (COB) is the memory used to
generate the output pixel data.
Until now the vc4 driver has been relying on the firmware to
have set these to sensible values.

In testing triple screen support it has been noted that only
1 line was being assigned to HVS channel 2. Whilst that is fine
for the transposer (TXP), and indeed needed as only some pixels
have an alpha channel, it is insufficient to run a live display.

Split the COB more evenly between the 3 HVS channels.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Revert vc4_regs change
drivers/gpu/drm/vc4/vc4_hvs.c