]> git.itanic.dy.fi Git - linux-stable/commit
drm/amd/display: Add NULL plane_state check for cursor disable logic
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Sat, 11 Mar 2023 14:11:29 +0000 (09:11 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 31 Mar 2023 15:18:53 +0000 (11:18 -0400)
commitd29fb7baab09b6a1dc484c9c67933253883e770a
treebee4c019554a25c06057327785c149ae23db2f79
parent9c224e058dd9ae9b03602d6c86d44f0d11e21ba3
drm/amd/display: Add NULL plane_state check for cursor disable logic

[Why]
While scanning the top_pipe connections we can run into a case where
the bottom pipe is still connected to a top_pipe but with a NULL
plane_state.

[How]
Treat a NULL plane_state the same as the plane being invisible for
pipe cursor disable logic.

Cc: stable@vger.kernel.org
Cc: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c