]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amd/display: Fix incorrect DSC recompute trigger
authorFangzhi Zuo <Jerry.Zuo@amd.com>
Wed, 4 Sep 2024 20:56:45 +0000 (16:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:52:43 +0000 (13:52 +0100)
[ Upstream commit 4641169a8c95d9efc35d2d3c55c3948f3b375ff9 ]

A stream without dsc_aux should not be eliminated from
the dsc determination. Whether it needs a dsc recompute depends on
whether its mode has changed or not. Eliminating such a no-dsc stream
from the dsc determination policy will end up with inconsistencies
in the new dc_state when compared to the current dc_state,
triggering a dsc recompute that should not have happened.

Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@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/amdgpu_dm/amdgpu_dm_mst_types.c

index 0fa922f60ac0a37f8b0325fde38820573cb1bf5c..c6865851e7325d2cd072c6007892b3e51955c209 100644 (file)
@@ -1313,7 +1313,7 @@ static bool is_dsc_need_re_compute(
                        continue;
 
                aconnector = (struct amdgpu_dm_connector *) stream->dm_stream_context;
-               if (!aconnector || !aconnector->dsc_aux)
+               if (!aconnector)
                        continue;
 
                stream_on_link[new_stream_on_link_num] = aconnector;