]> git.itanic.dy.fi Git - linux-stable/commit
drm/amd/display: Fix hang when skipping modeset
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Fri, 24 Mar 2023 14:42:37 +0000 (10:42 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 11:59:13 +0000 (13:59 +0200)
commit212fbbf9e25169bf972b52cb732aa834812b4fd5
treeb24f5b498a5a3515b7cb92baf4a9d9244769ec7d
parentb9d9e8856f1c83e4277403f9b4c369b322ebcb12
drm/amd/display: Fix hang when skipping modeset

commit da5e14909776edea4462672fb4a3007802d262e7 upstream.

[Why&How]

When skipping full modeset since the only state change was a front porch
change, the DC commit sequence requires extra checks to handle non
existant plane states being asked to be removed from context.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c