drm/amd/display: always reset ODM mode in context when adding first plane
authorWenjing Liu <wenjing.liu@amd.com>
Fri, 22 Mar 2024 19:02:45 +0000 (15:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2024 02:15:02 +0000 (22:15 -0400)
commit4a5b171299e59d51322f4c6bd376c5acbeca0a4a
tree521337f91ea0c0cb6603b84532dd3017fcdcb47b
parentd6d6561f936bc8066537c3fa5fa352f2ea025d55
drm/amd/display: always reset ODM mode in context when adding first plane

[why]
In current implemenation ODM mode is only reset when the last plane is
removed from dc state. For any dc validate we will always remove all
current planes and add new planes. However when switching from no planes
to 1 plane, ODM mode is not reset because no planes get removed. This
has caused an issue where we kept ODM combine when it should have been
remove when a plane is added. The change is to reset ODM mode when
adding the first plane.

Cc: stable@vger.kernel.org
Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_state.c