Skip to content

Commit 246e667

Browse files
Dillon Varonealexdeucher
authored andcommitted
drm/amd/display: Fix prefetch calculations for dcn32
[Description] Prefetch calculation loop was not exiting until utilizing all of vstartup if it failed once. Locals need to be reset on each iteration of the loop. Reviewed-by: Jun Lei <Jun.Lei@amd.com> Acked-by: Tom Chung <chiahsuan.chung@amd.com> Signed-off-by: Dillon Varone <Dillon.Varone@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org # 6.0.x
1 parent e7e4f77 commit 246e667

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,8 @@ static void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerforman
718718

719719
do {
720720
MaxTotalRDBandwidth = 0;
721+
DestinationLineTimesForPrefetchLessThan2 = false;
722+
VRatioPrefetchMoreThanMax = false;
721723
#ifdef __DML_VBA_DEBUG__
722724
dml_print("DML::%s: Start loop: VStartup = %d\n", __func__, mode_lib->vba.VStartupLines);
723725
#endif

0 commit comments

Comments
 (0)