Skip to content

Commit

Permalink
drm/amd/display: Add fallback configuration for set DRR in DCN10
Browse files Browse the repository at this point in the history
Set OTG/OPTC parameters to 0 if something goes wrong on DCN10.

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 d76c0a2 commit bc87d66
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions drivers/gpu/drm/amd/display/dc/optc/dcn10/dcn10_optc.c
Original file line number Diff line number Diff line change
Expand Up @@ -945,10 +945,19 @@ void optc1_set_drr(
OTG_FORCE_LOCK_ON_EVENT, 0,
OTG_SET_V_TOTAL_MIN_MASK_EN, 0,
OTG_SET_V_TOTAL_MIN_MASK, 0);
}

// Setup manual flow control for EOF via TRIG_A
optc->funcs->setup_manual_trigger(optc);
// Setup manual flow control for EOF via TRIG_A
optc->funcs->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);

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

void optc1_set_vtotal_min_max(struct timing_generator *optc, int vtotal_min, int vtotal_max)
Expand Down

0 comments on commit bc87d66

Please sign in to comment.