drm/amd/display: Update Interface to Check UCLK DPM
authorAustin Zheng <Austin.Zheng@amd.com>
Tue, 10 Sep 2024 20:41:20 +0000 (16:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2024 18:16:44 +0000 (14:16 -0400)
commitd016d0dd5a57a6c11847bf750c4177e5ad219190
tree7aaf0f3c641220bb8f6e89504ac95d31e9c4336f
parent5c7cc114dd6e88b2242db00242b85543b5fe3164
drm/amd/display: Update Interface to Check UCLK DPM

[Why]
Videos using YUV420 format may result in high power being used.
Disabling MPO may result in lower power usage.
Update interface that can be used to check power profile of a dc_state.

[How]
Add helper functions that can be used to determine power level:
- get power profile after a dc_state has undergone full validation

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Austin Zheng <Austin.Zheng@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@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/core/dc.c
drivers/gpu/drm/amd/display/dc/inc/core_types.h
drivers/gpu/drm/amd/display/dc/resource/dcn315/dcn315_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c