]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/vc4: hvs: Print error if we fail an allocation
authorMaxime Ripard <mripard@kernel.org>
Fri, 21 Jun 2024 15:20:34 +0000 (16:20 +0100)
committerDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 9 Sep 2024 12:02:53 +0000 (13:02 +0100)
commit6184b9446d43d36615b75683967a3bbfb06c2d20
treed161b2c82da43e9806b9c4065b03df1029758a9c
parentb6d7a953969eef2d30d1213c5f8c565eb8b27f2e
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 <mripard@kernel.org>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240621152055.4180873-11-dave.stevenson@raspberrypi.com
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_hvs.c
drivers/gpu/drm/vc4/vc4_plane.c