]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: handle max_downscale_src_width fail check
authorYihan Zhu <Yihan.Zhu@amd.com>
Wed, 12 Feb 2025 20:17:56 +0000 (15:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:40:11 +0000 (14:40 +0200)
commit42733703c462f12b8aed64e8efc4589718c09145
tree9c8c31057047cf9a29b4be8130c792c950a08f87
parenta66f46751ca4a90b223535ea656308efd2ad2d53
drm/amd/display: handle max_downscale_src_width fail check

[ Upstream commit 02a940da2ccc0cc0299811379580852b405a0ea2 ]

[WHY]
If max_downscale_src_width check fails, we exit early from TAP calculation and left a NULL
value to the scaling data structure to cause the zero divide in the DML validation.

[HOW]
Call set default TAP calculation before early exit in get_optimal_number_of_taps due to
max downscale limit exceed.

Reviewed-by: Samson Tam <samson.tam@amd.com>
Signed-off-by: Yihan Zhu <Yihan.Zhu@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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c