]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 09:23:42 +0000 (11:23 +0200)
commit41bd90aecffb04e1d479a4e7e2d645549ffb9dc0
treed41a0bd70cd9a4e4e2d43c63c19ea316acb16f9c
parent411ec82daee8f94b09bdf5b0f7efae0f956bab96
drm/amd/display: always reset ODM mode in context when adding first plane

commit 81901d8d0472e9a19d294ae1dea76b950548195d upstream.

[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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/dc/core/dc_state.c