]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: fix asserts in SPL during bootup
authorSamson Tam <Samson.Tam@amd.com>
Sun, 20 Oct 2024 02:07:31 +0000 (22:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Nov 2024 16:35:35 +0000 (11:35 -0500)
commit9626890e56f70eeb863c2960c105afd0df0c73be
treef87e079b61707a4efb49ce460c925fedb4255081
parent69603bfcffc887fdfb5f8e877849e400958fb72d
drm/amd/display: fix asserts in SPL during bootup

[Why]
During mode validation, there maybe modes that fail
 max_downscale_src_width check and scaling_quality
 taps are 0.  This will cause an assert to trigger
 in spl_set_filters_data() because taps are 0.

[How]
Move taps calculation for non-adaptive scaling mode
 to separate function and call it
 if max_downscale_src_width fails.  This will
 populate taps if scaling_quality taps are 0.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Signed-off-by: Zaeem Mohamed <zaeem.mohamed@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/spl/dc_spl.c