File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed
drivers/gpu/drm/amd/display/dc/optc Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -945,19 +945,10 @@ void optc1_set_drr(
945
945
OTG_FORCE_LOCK_ON_EVENT , 0 ,
946
946
OTG_SET_V_TOTAL_MIN_MASK_EN , 0 ,
947
947
OTG_SET_V_TOTAL_MIN_MASK , 0 );
948
-
949
- // Setup manual flow control for EOF via TRIG_A
950
- optc -> funcs -> setup_manual_trigger (optc );
951
-
952
- } else {
953
- REG_UPDATE_4 (OTG_V_TOTAL_CONTROL ,
954
- OTG_SET_V_TOTAL_MIN_MASK , 0 ,
955
- OTG_V_TOTAL_MIN_SEL , 0 ,
956
- OTG_V_TOTAL_MAX_SEL , 0 ,
957
- OTG_FORCE_LOCK_ON_EVENT , 0 );
958
-
959
- optc -> funcs -> set_vtotal_min_max (optc , 0 , 0 );
960
948
}
949
+
950
+ // Setup manual flow control for EOF via TRIG_A
951
+ optc -> funcs -> setup_manual_trigger (optc );
961
952
}
962
953
963
954
void optc1_set_vtotal_min_max (struct timing_generator * optc , int vtotal_min , int vtotal_max )
Original file line number Diff line number Diff line change @@ -453,6 +453,16 @@ void optc2_setup_manual_trigger(struct timing_generator *optc)
453
453
{
454
454
struct optc * optc1 = DCN10TG_FROM_TG (optc );
455
455
456
+ /* Set the min/max selectors unconditionally so that
457
+ * DMCUB fw may change OTG timings when necessary
458
+ * TODO: Remove the w/a after fixing the issue in DMCUB firmware
459
+ */
460
+ REG_UPDATE_4 (OTG_V_TOTAL_CONTROL ,
461
+ OTG_V_TOTAL_MIN_SEL , 1 ,
462
+ OTG_V_TOTAL_MAX_SEL , 1 ,
463
+ OTG_FORCE_LOCK_ON_EVENT , 0 ,
464
+ OTG_SET_V_TOTAL_MIN_MASK , (1 << 1 )); /* TRIGA */
465
+
456
466
REG_SET_8 (OTG_TRIGA_CNTL , 0 ,
457
467
OTG_TRIGA_SOURCE_SELECT , 21 ,
458
468
OTG_TRIGA_SOURCE_PIPE_SELECT , optc -> inst ,
You can’t perform that action at this time.
0 commit comments