]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Disable idle optimizations before programming DCN
authorJun Lei <jun.lei@amd.com>
Thu, 25 Jun 2020 17:24:12 +0000 (13:24 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Jul 2020 18:12:57 +0000 (14:12 -0400)
commit84f56c0b63f95617848cefec37047824b882607b
tree603894791b4e7bcb43a8dc8d503be822d456671c
parente7b4ca86635a2f0291bff7d1b9b10ffc16c5b965
drm/amd/display: Disable idle optimizations before programming DCN

[Why]
Programming DCN is explicitly forbidden during idle optimzations allowed
state. Existing implemenation relies on OS/DM, which is not robust. Instead
DC should sequence this.

Note that DC will not re-enter idle optimized state on its own, it is only
responsible for catching out of sequence calls. It is still DM
responsibility to sequence appropriate for optimized power, but this change
removes the requirement for DM to cover the .1% case.

[How]
 - elevate updates during idle optimized state to full updates
 - disable idle power optimizations prior to programming

Signed-off-by: Jun Lei <jun.lei@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Eryk Brol <eryk.brol@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c