drm/vc4: hvs: Print error if we fail an allocation
authorMaxime Ripard <maxime@cerno.tech>
Wed, 22 Mar 2023 08:53:17 +0000 (09:53 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:34:53 +0000 (11:34 +0000)
commit2dcd7e73e0d61e72f0e3f64a11504caf4b3a0b21
treed6ee9dcb5df6725338ea781685bcdaf680f78ce4
parent90853f179d3146a5d71e2846435cf5b82609b74f
drm/vc4: hvs: Print error if we fail an allocation

We need to allocate a few additional structures when checking our
atomic_state, especially related to hardware SRAM that will hold the
plane descriptors (DLIST) and the current line context (LBM) during
composition.

Since those allocation can fail, let's add some error message in that
case to help debug what goes wrong.

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