diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-08-11 03:12:48 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-08-11 03:12:48 +0000 |
commit | efcd8e66ed894b160d531155c1a1e1cbc7d5676b (patch) | |
tree | 6138959291fac06ef2e0f71309d0eaa104165a25 /sys/dev/pci/drm | |
parent | 74cdbef77cde69541337a1aeaab7d86d6aa3b4ce (diff) |
drm/amd/display: Fix comparison error in dcn21 DML
From Victor Lu
f9d875c8c92f1bdaeeb3eeccbf8402974f20cd31 in linux 5.10.y/5.10.57
ec3102dc6b36c692104c4a0546d4119de59a3bc1 in mainline linux
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r-- | sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c b/sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c index 367c82b5ab4..c09bca33506 100644 --- a/sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c +++ b/sys/dev/pci/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c @@ -4888,7 +4888,7 @@ void dml21_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l } } while ((locals->PrefetchSupported[i][j] != true || locals->VRatioInPrefetchSupported[i][j] != true) && (mode_lib->vba.NextMaxVStartup != mode_lib->vba.MaxMaxVStartup[0][0] - || mode_lib->vba.NextPrefetchMode < mode_lib->vba.MaxPrefetchMode)); + || mode_lib->vba.NextPrefetchMode <= mode_lib->vba.MaxPrefetchMode)); if (locals->PrefetchSupported[i][j] == true && locals->VRatioInPrefetchSupported[i][j] == true) { mode_lib->vba.BandwidthAvailableForImmediateFlip = locals->ReturnBWPerState[i][0]; |