linux/drivers/gpu/drm/amd
Jun Lei f7f38ffef5 drm/amd/display: fixup DPP programming sequence
[why]
DC does not correct account for the fact that DPP DTO is double buffered while DPP ref is not.
This means that when DPP ref clock is lowered when it's "safe to lower", the DPP blocks that need
an increased divider will temporarily have actual DPP clock drop below minimum while DTO
double buffering takes effect.  This results in temporary underflow.

[how]
To fix this, DPP clock cannot be programmed atomically, but rather be broken up into the DTO and the
ref.  Each has a separate "safe to lower" logic.  When doing "prepare" the ref and dividers may only increase.
When doing "optimize", both may decrease.  It is guaranteed that we won't exceed max DPP clock because
we do not use dividers larger than 1.

Signed-off-by: Jun Lei <Jun.Lei@amd.com>
Reviewed-by: Eric Yang <eric.yang2@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-08-15 10:53:43 -05:00
..
acp treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
amdgpu drm/amdgpu: MODULE_FIRMWARE requires linux/module.h 2019-08-15 10:52:01 -05:00
amdkfd Linux 5.3-rc3 2019-08-09 13:07:28 -05:00
display drm/amd/display: fixup DPP programming sequence 2019-08-15 10:53:43 -05:00
include drm/amdgpu: implement querying ras error count for mmhub 2019-08-15 10:51:50 -05:00
powerplay drm/amdgpu/powerplay: fix spelling mistake "unsuported" -> "unsupported" 2019-08-15 10:51:56 -05:00