diff options
Diffstat (limited to 'meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0709-drm-amdgpu-powerplay-add-function-point-in-hwmgr_fun.patch')
-rw-r--r-- | meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0709-drm-amdgpu-powerplay-add-function-point-in-hwmgr_fun.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0709-drm-amdgpu-powerplay-add-function-point-in-hwmgr_fun.patch b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0709-drm-amdgpu-powerplay-add-function-point-in-hwmgr_fun.patch new file mode 100644 index 00000000..3eab07be --- /dev/null +++ b/meta-amdfalconx86/recipes-kernel/linux/linux-yocto/0709-drm-amdgpu-powerplay-add-function-point-in-hwmgr_fun.patch @@ -0,0 +1,47 @@ +From 978482479e66e3138f64df06b441e390448d2b44 Mon Sep 17 00:00:00 2001 +From: Rex Zhu <Rex.Zhu@amd.com> +Date: Fri, 16 Oct 2015 14:51:09 +0800 +Subject: [PATCH 0709/1050] drm/amdgpu/powerplay: add function point in + hwmgr_funcs for program display gap + +Displaygap support is required for proper mclk switching. + +Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> +Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +index ca513a1..2370a72 100644 +--- a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h ++++ b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +@@ -275,7 +275,6 @@ struct pp_hwmgr_func { + + int (*get_pp_table_entry)(struct pp_hwmgr *hwmgr, + unsigned long, struct pp_power_state *); +- + int (*get_num_of_pp_table_entries)(struct pp_hwmgr *hwmgr); + int (*powerdown_uvd)(struct pp_hwmgr *hwmgr); + int (*powergate_vce)(struct pp_hwmgr *hwmgr, bool bgate); +@@ -287,6 +286,8 @@ struct pp_hwmgr_func { + void (*print_current_perforce_level)(struct pp_hwmgr *hwmgr, + struct seq_file *m); + int (*enable_clock_power_gating)(struct pp_hwmgr *hwmgr); ++ int (*notify_smc_display_config_after_ps_adjustment)(struct pp_hwmgr *hwmgr); ++ int (*display_config_changed)(struct pp_hwmgr *hwmgr); + }; + + struct pp_table_func { +@@ -543,6 +544,7 @@ struct pp_hwmgr { + struct phm_runtime_table_header enable_dynamic_state_management; + struct phm_runtime_table_header set_power_state; + struct phm_runtime_table_header enable_clock_power_gatings; ++ struct phm_runtime_table_header display_configuration_changed; + const struct pp_hwmgr_func *hwmgr_func; + const struct pp_table_func *pptable_func; + struct pp_power_state *ps; +-- +1.9.1 + |