]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Guard reading 3DLUT registers for dcn32/dcn35
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 21 May 2024 14:41:52 +0000 (10:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 19:34:52 +0000 (15:34 -0400)
commit470679ef332e7ebceb05d11e602d101a627e5200
tree778accb7d905a8d2bf9d01f5783fd2d06ff7906f
parent06cd6d8f808164513e453af842720fe258abbbf0
drm/amd/display: Guard reading 3DLUT registers for dcn32/dcn35

[Why]
3DLUT is not part of the DPP on DCN32/DCN35 ASIC and these registers
now exist in MCM state.

[How]
Add guards when reading DPP state based on whether the register has a
valid offset.

Reviewed-by: Sung joon Kim <sungjoon.kim@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dpp/dcn30/dcn30_dpp.c