diff options
author | Josip Pavic <Josip.Pavic@amd.com> | 2022-07-21 15:33:00 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-08-10 15:12:06 -0400 |
commit | 615fc50207fa27453ba7f5fa1abd60a01a498136 (patch) | |
tree | 7f2812f4e75e849a2d5143a6b870fbd1ec6962f3 /drivers/gpu/drm/amd/display/modules/freesync/freesync.c | |
parent | 9c580e8f6cd6524d4e2c3490c440110526f7ddd6 (diff) | |
download | linux-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