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, 5 Jan 2021 16:34:35 +0000 (11:34 -0500)
commite74c8a461139b41075ede68f40c313a268445284
treea5d49b89442e2a6289d532c825cabe4de05d83f6
parentf01afd1ee48816457fb22e201f1d0cfb14589904
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: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@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/dc.h
drivers/gpu/drm/amd/display/dc/dc_hw_types.h
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.h
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_init.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
drivers/gpu/drm/amd/display/dc/inc/hw_sequencer.h