drm/amd/display: Bypass DET swath fill check for max clocks
authorDillon Varone <Dillon.Varone@amd.com>
Wed, 23 Nov 2022 19:15:00 +0000 (14:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Dec 2022 15:16:17 +0000 (10:16 -0500)
[Description]
If validating for max voltage level (therefore max clocks) always pass over
the DET swath fill latency hiding check.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Stylon Wang <stylon.wang@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>
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c

index 820042f6aaca579335e5b8f5ab4f90d80b730c44..4b8f5fa0f0ad614436f54fcee3f8d01e9bf4a075 100644 (file)
@@ -1683,8 +1683,9 @@ static void mode_support_configuration(struct vba_vars_st *v,
                                && mode_lib->vba.PTEBufferSizeNotExceeded[i][j] == true
                                && mode_lib->vba.DCCMetaBufferSizeNotExceeded[i][j] == true
                                && mode_lib->vba.NonsupportedDSCInputBPC == false
-                               && mode_lib->vba.NotEnoughDETSwathFillLatencyHidingPerState[i][j] == false
                                && !mode_lib->vba.ExceededMALLSize
+                               && (mode_lib->vba.NotEnoughDETSwathFillLatencyHidingPerState[i][j] == false
+                               || i == v->soc.num_states - 1)
                                && ((mode_lib->vba.HostVMEnable == false
                                && !mode_lib->vba.ImmediateFlipRequiredFinal)
                                || mode_lib->vba.ImmediateFlipSupportedForState[i][j])