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)
commit9b6ca29e093660241002c91e2c8abf771c726921
tree603894791b4e7bcb43a8dc8d503be822d456671c
parent473e2d16777030ca9b3a0178b179efdb2548b415
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