]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: delay fp2 programming until vactive before lock
authorMartin Leung <martin.leung@amd.com>
Wed, 2 Dec 2020 20:10:12 +0000 (15:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Dec 2020 16:34:17 +0000 (11:34 -0500)
commit94c4c3b4d8983bb1c6c868927dd0cdb987d0b539
tree681bb8c1cc684f7cce842884153da60ec333d309
parent709ec6c9f1d4462a1297a3f53acb85fc3e7e9ecf
drm/amd/display: delay fp2 programming until vactive before lock

[Why]
race condition of programming FP2 wrt pipe locking
and vactive state can cause underflow/black screen

[How]
Enforce the FP2 is only programmed during vactive,
and unlock pipe soon afterwards.

Signed-off-by: Martin Leung <martin.leung@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.h
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h