diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3238-drm-amd-powerplay-Allow-changing-of-fan_control-in-s.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3238-drm-amd-powerplay-Allow-changing-of-fan_control-in-s.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3238-drm-amd-powerplay-Allow-changing-of-fan_control-in-s.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3238-drm-amd-powerplay-Allow-changing-of-fan_control-in-s.patch new file mode 100644 index 00000000..26e6e56a --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3238-drm-amd-powerplay-Allow-changing-of-fan_control-in-s.patch @@ -0,0 +1,39 @@ +From e4599062f7af7528f596bda1ae84adc8d1f04d2e Mon Sep 17 00:00:00 2001 +From: Matt Coffin <mcoffin13@gmail.com> +Date: Wed, 31 Jul 2019 14:14:35 -0600 +Subject: [PATCH 3238/4256] drm/amd/powerplay: Allow changing of fan_control in + smu_v11_0 + +[Why] +Before this change, the fan control state on smu_v11 was not able to be +changed because the capability check for checking if the fan control +capability existed was inverted. + +[How] +The capability check for fan control in smu_v11_0_auto_fan_control was +inverted, to correctly check for the absence, instead of presence of fan +control capabilities. + +Reviewed-by: Evan Quan <evan.quan@amd.com> +Signed-off-by: Matt Coffin <mcoffin13@gmail.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c +index 0588dd8cd1ba..43fcbdbba630 100644 +--- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c ++++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c +@@ -1361,7 +1361,7 @@ smu_v11_0_auto_fan_control(struct smu_context *smu, bool auto_fan_control) + { + int ret = 0; + +- if (smu_feature_is_supported(smu, SMU_FEATURE_FAN_CONTROL_BIT)) ++ if (!smu_feature_is_supported(smu, SMU_FEATURE_FAN_CONTROL_BIT)) + return 0; + + ret = smu_feature_set_enabled(smu, SMU_FEATURE_FAN_CONTROL_BIT, auto_fan_control); +-- +2.17.1 + |