OSDN Git Service

drm/amd/display: Program OTG vtotal min/max selectors unconditionally for DCN1+
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Thu, 1 Jun 2023 17:09:44 +0000 (13:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:39:32 +0000 (12:39 -0400)
commit1598fc576420207e5c89088fc46610c2318e2f5c
treee4d28fe07eb8aefa169b07eb7ac26016eee27485
parent3cb4807dbf7f47f0a1368f78e7c37b1dd515c2dd
drm/amd/display: Program OTG vtotal min/max selectors unconditionally for DCN1+

For FPO/FAMS, DMCUB will try to change the output timings by writing to
the OTG registers. However, the timings written directly to the OTG
registers will not be honoured unless VMIN/VMAX selector registers are
programmed with the right bits and trigger source is selected correctly.
Proper solution needs to go into DMCUB but will require additional state
tracking to ensure that the selectors are set and reset correctly as per
driver state. Until fix is merged into firmware, apply the workaround in
driver to unconditionally write OTG vmin/vmax selectors.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c