]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: program DPG_OFFSET_SEGMENT for odm_pipe
authorWenjing Liu <Wenjing.Liu@amd.com>
Tue, 11 Feb 2020 15:27:21 +0000 (10:27 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Mar 2020 05:29:47 +0000 (00:29 -0500)
commit92b839b30373656dc4a8871ed5efb7dbaf187667
treea6019675322499bf667a5068e0c1720fb4a8e313
parentad715e52d573afb64a97952e0f6ea29ca355eac4
drm/amd/display: program DPG_OFFSET_SEGMENT for odm_pipe

[why]
When test pattern is enabled with ODM combine, test pattern is generated
by piecing multiple DPGs image together.  The current code will program
all DPGs with horizontal offset of 0. This will cause all DPGs to output
the beginning of the pattern. Instead each DPG should program a
horizontal offset of its x position to form a continous pattern when
pieced together.

Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Nikola Cornij <Nikola.Cornij@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_opp.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_opp.h
drivers/gpu/drm/amd/display/dc/inc/hw/opp.h