diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1069-drm-amd-pp-thermal-control-not-enabled-on-vega10.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/1069-drm-amd-pp-thermal-control-not-enabled-on-vega10.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1069-drm-amd-pp-thermal-control-not-enabled-on-vega10.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1069-drm-amd-pp-thermal-control-not-enabled-on-vega10.patch new file mode 100644 index 00000000..3a66d981 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1069-drm-amd-pp-thermal-control-not-enabled-on-vega10.patch @@ -0,0 +1,46 @@ +From dff2b372c42b8b3ccdf38aa2dba10634fc76552f Mon Sep 17 00:00:00 2001 +From: Rex Zhu <Rex.Zhu@amd.com> +Date: Wed, 18 Oct 2017 14:31:40 +0800 +Subject: [PATCH 1069/4131] drm/amd/pp: thermal control not enabled on vega10. + +regression issue. +caused by "f12f9f5e5d455edebc01" +forget to set start_thermal_controller function point. + +Change-Id: Ica1ef147ca5d31a5a5104dcf0399e91bb3742d10 +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> +--- + drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 1 + + drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.h | 3 ++- + 2 files changed, 3 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +index 2642e02..015f149 100644 +--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c ++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +@@ -5048,6 +5048,7 @@ static const struct pp_hwmgr_func vega10_hwmgr_funcs = { + .get_mclk_od = vega10_get_mclk_od, + .set_mclk_od = vega10_set_mclk_od, + .avfs_control = vega10_avfs_enable, ++ .start_thermal_controller = vega10_start_thermal_controller, + }; + + int vega10_hwmgr_init(struct pp_hwmgr *hwmgr) +diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.h b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.h +index f34ce04..82f10bd 100644 +--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.h ++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.h +@@ -71,7 +71,8 @@ extern int vega10_fan_ctrl_get_fan_speed_rpm(struct pp_hwmgr *hwmgr, + extern int vega10_fan_ctrl_stop_smc_fan_control(struct pp_hwmgr *hwmgr); + extern int vega10_thermal_disable_alert(struct pp_hwmgr *hwmgr); + extern int vega10_fan_ctrl_start_smc_fan_control(struct pp_hwmgr *hwmgr); +- ++extern int vega10_start_thermal_controller(struct pp_hwmgr *hwmgr, ++ struct PP_TemperatureRange *range); + extern uint32_t smu7_get_xclk(struct pp_hwmgr *hwmgr); + + #endif +-- +2.7.4 + |