Commit 974ce181 authored by Aurabindo Pillai's avatar Aurabindo Pillai Committed by Alex Deucher
Browse files

drm/amd/display: Add check for PState change in DCN32



For pstate change, allow DML to loop through
all possible prefetch combinations so as to
support more display configurations. Set the max
and min prefetch modes to enable the sequence.

Reviewed-by: default avatarRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a1f1fecd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4656,6 +4656,10 @@ void dml32_CalculateMinAndMaxPrefetchMode(
	} else if (AllowForPStateChangeOrStutterInVBlankFinal == dm_prefetch_support_uclk_fclk_and_stutter) {
		*MinPrefetchMode = 0;
		*MaxPrefetchMode = 0;
	} else if (AllowForPStateChangeOrStutterInVBlankFinal ==
			dm_prefetch_support_uclk_fclk_and_stutter_if_possible) {
		*MinPrefetchMode = 0;
		*MaxPrefetchMode = 3;
	} else {
		*MinPrefetchMode = 0;
		*MaxPrefetchMode = 3;