]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Allow idle optimization after turning off all pipes
authorAlvin Lee <Alvin.Lee2@amd.com>
Thu, 5 Jan 2023 15:46:47 +0000 (10:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jan 2023 17:25:35 +0000 (12:25 -0500)
commit174a05af39175bdf59bf50bd1c599384514e1dae
treeaaa0956d9bc9bcf9097b78088cbfc970fdcc3676
parent53f4da731bf36afc32e46c3b7a5f3bd563c93e83
drm/amd/display: Allow idle optimization after turning off all pipes

[Why]
In certain D3 cases (BOCO / BOMACO) the hardware is reset but
software state still has idle_optimizations = true. This prevents
us from entering idle optimizations again if no display is connected.

[How]
In hw init, reset the idle optimization state, and allow idle
optimizations after all pipes have been turned off.

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Alvin Lee <Alvin.Lee2@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c