summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
diff options
context:
space:
mode:
authorEvan Quan <evan.quan@amd.com>2018-05-09 05:08:29 +0200
committerAlex Deucher <alexander.deucher@amd.com>2018-05-17 15:54:23 +0200
commit11a89b431e41dcfaa4e7b9806233f60de905287b (patch)
tree0b8db5c65013ded557ada20e24e4e40fd70883e2 /drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
parentdrm/amd/powerplay: new framework to honour DAL clock limits (diff)
downloadlinux-11a89b431e41dcfaa4e7b9806233f60de905287b.tar.xz
linux-11a89b431e41dcfaa4e7b9806233f60de905287b.zip
drm/amd/powerplay: add a framework for perfroming pre display
configuration change settings Signed-off-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
index f5571e9fde26..a0bb921fac22 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c
@@ -170,6 +170,16 @@ int phm_disable_clock_power_gatings(struct pp_hwmgr *hwmgr)
return 0;
}
+int phm_pre_display_configuration_changed(struct pp_hwmgr *hwmgr)
+{
+ PHM_FUNC_CHECK(hwmgr);
+
+ if (NULL != hwmgr->hwmgr_func->pre_display_config_changed)
+ hwmgr->hwmgr_func->pre_display_config_changed(hwmgr);
+
+ return 0;
+
+}
int phm_display_configuration_changed(struct pp_hwmgr *hwmgr)
{