]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Fix plug/unplug external monitor will hang while playback MPO video
authorTom Chung <chiahsuan.chung@amd.com>
Wed, 3 Aug 2022 07:15:17 +0000 (15:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Sep 2022 08:31:34 +0000 (10:31 +0200)
commitbd71ef2c30244c25243d84b593ea0ba88164ebb6
tree45de353144e7c01728737472ccf8310b1ef7e2ba
parentdb1d9deb84d7870486688a5d13602962443a5500
drm/amd/display: Fix plug/unplug external monitor will hang while playback MPO video

[ Upstream commit e98459c06e3d45c2229b097f7b8cdd412357fa2f ]

[Why]
Pipes for MPO primary and overlay will be power down and power up during
plug/unplug external monitor while MPO video playback.
But the pipes were the same after plug/unplug and should not need to be
power down and power up or it will make page flip interrupt disabled and
cause hang issue.

[How]
Add pipe split change condition that not only check the top pipe pointer
but also check the index of top pipe if both top pipes are available.

Reviewed-by: Sun peng Li <Sunpeng.Li@amd.com>
Acked-by: Brian Chang <Brian.Chang@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@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/core/dc.c