drm/amd/display: Update idle optimization handling
authorJoshua Aberback <joshua.aberback@amd.com>
Mon, 31 Aug 2020 05:58:03 +0000 (01:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Sep 2020 21:52:41 +0000 (17:52 -0400)
commit4b675aad9695070c728c386b8f15ff8f27cd3e34
tree57017ed30c27151a94d7dfc6b33d97a610434c76
parent0825d9658b5e6b9ec6220ac5d2500f683c9601e7
drm/amd/display: Update idle optimization handling

[How]
 - use dc interface instead of hwss interface in cursor functions, to keep
dc->idle_optimizations_allowed updated
 - add dc interface to check if idle optimizations might apply to a plane

Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_stream.c
drivers/gpu/drm/amd/display/dc/dc.h