Skip to content

Commit ec3102d

Browse files
victorlu-amdalexdeucher
authored andcommitted
drm/amd/display: Fix comparison error in dcn21 DML
[why] A comparison error made it possible to not iterate through all the specified prefetch modes. [how] Correct "<" to "<=" Reviewed-by: Dmytro Laktyushkin <[email protected]> Reviewed-by: Yongqiang Sun <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Victor Lu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 353ca0f commit ec3102d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4889,7 +4889,7 @@ void dml21_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l
48894889
}
48904890
} while ((locals->PrefetchSupported[i][j] != true || locals->VRatioInPrefetchSupported[i][j] != true)
48914891
&& (mode_lib->vba.NextMaxVStartup != mode_lib->vba.MaxMaxVStartup[0][0]
4892-
|| mode_lib->vba.NextPrefetchMode < mode_lib->vba.MaxPrefetchMode));
4892+
|| mode_lib->vba.NextPrefetchMode <= mode_lib->vba.MaxPrefetchMode));
48934893

48944894
if (locals->PrefetchSupported[i][j] == true && locals->VRatioInPrefetchSupported[i][j] == true) {
48954895
mode_lib->vba.BandwidthAvailableForImmediateFlip = locals->ReturnBWPerState[i][0];

0 commit comments

Comments
 (0)