]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit5200c4017ef25f85634012a967c78ff64495dd85
tree681bb8c1cc684f7cce842884153da60ec333d309
parent09b07f7a188f3b52e7f7c778ab3b4e4aa4e9677a
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