drm/amd/display: Break after finding supported vlevel for repopulate
authorAlvin Lee <alvin.lee2@amd.com>
Thu, 14 Sep 2023 15:40:31 +0000 (11:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2023 21:00:22 +0000 (17:00 -0400)
[Description]
After repopulating pipes for a split / merge, we want to find the
lowest vlevel that supports the desired mpc combine level.

Reviewed-by: Nevenko Stupar <nevenko.stupar@amd.com>
Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Alvin Lee <alvin.lee2@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/dml/dcn32/dcn32_fpu.c

index 992e9c3..7179c2b 100644 (file)
@@ -2187,6 +2187,7 @@ bool dcn32_internal_validate_bw(struct dc *dc,
                                        vba->VoltageLevel = i;
                                        vlevel = i;
                                        flags_valid = true;
+                                       break;
                                }
                        }