Skip to content

Commit 8d4cd94

Browse files
6by9gregkh
authored andcommitted
drm/vc4: hvs: Don't write gamma luts on 2711
[ Upstream commit 52efe36 ] The gamma block has changed in 2711, therefore writing the lut in vc4_hvs_lut_load is incorrect. Whilst the gamma property isn't created for 2711, it is called from vc4_hvs_init_channel, so abort if attempted. Fixes: c54619b ("drm/vc4: Add support for the BCM2711 HVS5") Reviewed-by: Maxime Ripard <mripard@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240621152055.4180873-15-dave.stevenson@raspberrypi.com Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent f9aaa84 commit 8d4cd94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/vc4/vc4_hvs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ static void vc4_hvs_lut_load(struct vc4_hvs *hvs,
222222
if (!drm_dev_enter(drm, &idx))
223223
return;
224224

225+
if (hvs->vc4->is_vc5)
226+
return;
227+
225228
/* The LUT memory is laid out with each HVS channel in order,
226229
* each of which takes 256 writes for R, 256 for G, then 256
227230
* for B.

0 commit comments

Comments
 (0)