summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
diff options
context:
space:
mode:
authorJosip Pavic <Josip.Pavic@amd.com>2022-07-21 15:33:00 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-08-10 15:12:06 -0400
commit615fc50207fa27453ba7f5fa1abd60a01a498136 (patch)
tree7f2812f4e75e849a2d5143a6b870fbd1ec6962f3 /drivers/gpu/drm/amd/display/modules/freesync/freesync.c
parent9c580e8f6cd6524d4e2c3490c440110526f7ddd6 (diff)
downloadlinux-615fc50207fa27453ba7f5fa1abd60a01a498136.tar.bz2
drm/amd/display: Avoid MPC infinite loop
[Why] In some cases MPC tree bottom pipe ends up point to itself. This causes iterating from top to bottom to hang the system in an infinite loop. [How] When looping to next MPC bottom pipe, check that the pointer is not same as current to avoid infinite loop. Reviewed-by: Jun Lei <Jun.Lei@amd.com> Acked-by: Tom Chung <chiahsuan.chung@amd.com> Signed-off-by: Josip Pavic <Josip.Pavic@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync/freesync.c')
0 files changed, 0 insertions, 0 deletions