]> 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)
commit41456eaa669f775c2c20ad753ea8c28081bb3933
treedb790761ff66f906ad4f5f874ab2c6910e3a5725
parent43b55f3ecaffd46b454ed76e4ac2e2b7744da22f
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