Skip to content

Commit d76c0a2

Browse files
Rodrigo Siqueiraalexdeucher
authored andcommitted
drm/amd/display: Add fallback configuration when set DRR
Set OTG/OPTC parameter to 0 if failed to set DRR. Acked-by: Hamza Mahfooz <[email protected]> Signed-off-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 7dc363e commit d76c0a2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

drivers/gpu/drm/amd/display/dc/optc/dcn32/dcn32_optc.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,16 @@ static void optc32_set_drr(
293293
}
294294

295295
optc->funcs->set_vtotal_min_max(optc, params->vertical_total_min - 1, params->vertical_total_max - 1);
296-
}
296+
optc32_setup_manual_trigger(optc);
297+
} else {
298+
REG_UPDATE_4(OTG_V_TOTAL_CONTROL,
299+
OTG_SET_V_TOTAL_MIN_MASK, 0,
300+
OTG_V_TOTAL_MIN_SEL, 0,
301+
OTG_V_TOTAL_MAX_SEL, 0,
302+
OTG_FORCE_LOCK_ON_EVENT, 0);
297303

298-
optc32_setup_manual_trigger(optc);
304+
optc->funcs->set_vtotal_min_max(optc, 0, 0);
305+
}
299306
}
300307

301308
static struct timing_generator_funcs dcn32_tg_funcs = {

0 commit comments

Comments
 (0)