Skip to content

Commit 508300a

Browse files
Alvin Leealexdeucher
authored andcommitted
drm/amd/display: Don't allow pstate if no support in blank
[Why] We will hang if we report switch in VACTIVE but not in VBLANK and DPG_EN = 1 [How] Block switch in ACTIVE if not supported in BLANK Signed-off-by: Alvin Lee <[email protected]> Reviewed-by: Jun Lei <[email protected]> Acked-by: Eryk Brol <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 95d620a commit 508300a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5558,7 +5558,7 @@ static void CalculateWatermarksAndDRAMSpeedChangeSupport(
55585558
}
55595559
}
55605560

5561-
if (mode_lib->vba.MinActiveDRAMClockChangeMargin > 0) {
5561+
if (mode_lib->vba.MinActiveDRAMClockChangeMargin > 0 && PrefetchMode == 0) {
55625562
*DRAMClockChangeSupport = dm_dram_clock_change_vactive;
55635563
} else if (((mode_lib->vba.SynchronizedVBlank == true || mode_lib->vba.TotalNumberOfActiveOTG == 1 || SecondMinActiveDRAMClockChangeMarginOneDisplayInVBLank > 0) && PrefetchMode == 0)) {
55645564
*DRAMClockChangeSupport = dm_dram_clock_change_vblank;

0 commit comments

Comments
 (0)