Skip to content

Commit

Permalink
drm/amd/display: Add fallback configuration when set DRR
Browse files Browse the repository at this point in the history
Set OTG/OPTC parameter to 0 if failed to set DRR.

Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Rodrigo Siqueira authored and Alex Deucher committed Apr 12, 2024
1 parent 7dc363e commit d76c0a2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions drivers/gpu/drm/amd/display/dc/optc/dcn32/dcn32_optc.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,16 @@ static void optc32_set_drr(
}

optc->funcs->set_vtotal_min_max(optc, params->vertical_total_min - 1, params->vertical_total_max - 1);
}
optc32_setup_manual_trigger(optc);
} else {
REG_UPDATE_4(OTG_V_TOTAL_CONTROL,
OTG_SET_V_TOTAL_MIN_MASK, 0,
OTG_V_TOTAL_MIN_SEL, 0,
OTG_V_TOTAL_MAX_SEL, 0,
OTG_FORCE_LOCK_ON_EVENT, 0);

optc32_setup_manual_trigger(optc);
optc->funcs->set_vtotal_min_max(optc, 0, 0);
}
}

static struct timing_generator_funcs dcn32_tg_funcs = {
Expand Down

0 comments on commit d76c0a2

Please sign in to comment.