]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: update infoframe after dig fe is turned on (v2)
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Mon, 24 Jun 2019 17:14:14 +0000 (13:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jun 2019 18:24:03 +0000 (13:24 -0500)
commit7fb2db5233de86db80731fdd8372735b59715c04
tree4714148dbb5589f2a4208584446fcfa0122126db
parent57e932fd812bf573550acbdaf4e3b77ce9bf94d7
drm/amd/display: update infoframe after dig fe is turned on (v2)

[Why]
The AVI infoframe is incorrectly programmed on DCN1/2 when enabling a
stream - causing the wrong pixel encoding to be used for display.

This is because the AVI infoframe is programmed before the DIG BE is
connected to the FE and turned on, so enabling the AFMT block doesn't
actually work and the registers subsequently can't be written to.

[How]
Program the infoframe *after* turning on the DIG FE. This was the
behavior previously used but it was incorrectly reverted
when adding the DCN2 HW sequencer code.

v2: Don't call update_info_frame twice

Fixes: 0075d1972b8c8047 ("drm/amd/display: Add DCN2 HW Sequencer and Resource")
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c