]> 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, 6 Aug 2020 20:39:54 +0000 (16:39 -0400)
commitc6b186a7c9f6404c3a62970b467dad79c19f1869
treedb790761ff66f906ad4f5f874ab2c6910e3a5725
parent964289cb650c76724cce5194d0c23b09f5de6dba
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