]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Ensure DRR triggers in BP
authorEryk Brol <eryk.brol@amd.com>
Tue, 23 Apr 2019 15:53:52 +0000 (11:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 22 Jun 2019 14:34:07 +0000 (09:34 -0500)
commit47d3156ba0b4b0a219a9c12fc81828353183fc02
tree7baba01f5cf88df7585e65ccc16bbdba028d0ba6
parent063b3d6cb7e6b0f90747419f74a6cb1c44a84aa9
drm/amd/display: Ensure DRR triggers in BP

[Why]
In the previous implementation DRR event sometimes came
in during FP2 region which is a keep-out zone. This
would cause the frame not to latch until the next frame
which resulted in heavy flicker. To fix this we need
to make sure that it triggers in the BP.

[How]
1. Remove DRR programming during flip
2. Setup manual trigger for DRR event and trigger it
after surface programming is complete

Signed-off-by: Eryk Brol <eryk.brol@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.h
drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h