]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit6b6352dd1f96ca2464d7373557cb913f00c9e6dd
treedb790761ff66f906ad4f5f874ab2c6910e3a5725
parentc5892a10218214d729699ab61bad6fc109baf0ce
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