aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/1043-drm-amd-powerplay-fixed-wrong-return-vaule-on-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1043-drm-amd-powerplay-fixed-wrong-return-vaule-on-error.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/1043-drm-amd-powerplay-fixed-wrong-return-vaule-on-error.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1043-drm-amd-powerplay-fixed-wrong-return-vaule-on-error.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1043-drm-amd-powerplay-fixed-wrong-return-vaule-on-error.patch
new file mode 100644
index 00000000..e258af27
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1043-drm-amd-powerplay-fixed-wrong-return-vaule-on-error.patch
@@ -0,0 +1,42 @@
+From a2878c7ab8edb7b13c07b0a11c73110f3c6b0075 Mon Sep 17 00:00:00 2001
+From: Evan Quan <evan.quan@amd.com>
+Date: Tue, 26 Sep 2017 11:35:30 +0800
+Subject: [PATCH 1043/4131] drm/amd/powerplay: fixed wrong return vaule on
+ error
+
+Change-Id: Ib7d42e49e4b1d1743125fd7f443cf60e486c3af3
+Signed-off-by: Evan Quan <evan.quan@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c
+index 0090ff1b..4c75908 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c
+@@ -1243,8 +1243,8 @@ int vega10_enable_didt_config(struct pp_hwmgr *hwmgr)
+ }
+
+ if (0 == result) {
+- PP_ASSERT_WITH_CODE((!vega10_enable_smc_features(hwmgr->smumgr, true, data->smu_features[GNLD_DIDT].smu_feature_bitmap)),
+- "[EnableDiDtConfig] Attempt to Enable DiDt feature Failed!", return result);
++ result = vega10_enable_smc_features(hwmgr->smumgr, true, data->smu_features[GNLD_DIDT].smu_feature_bitmap);
++ PP_ASSERT_WITH_CODE((0 == result), "[EnableDiDtConfig] Attempt to Enable DiDt feature Failed!", return result);
+ data->smu_features[GNLD_DIDT].enabled = true;
+ }
+ }
+@@ -1290,8 +1290,8 @@ int vega10_disable_didt_config(struct pp_hwmgr *hwmgr)
+ }
+
+ if (0 == result) {
+- PP_ASSERT_WITH_CODE((0 != vega10_enable_smc_features(hwmgr->smumgr, false, data->smu_features[GNLD_DIDT].smu_feature_bitmap)),
+- "[DisableDiDtConfig] Attempt to Disable DiDt feature Failed!", return result);
++ result = vega10_enable_smc_features(hwmgr->smumgr, false, data->smu_features[GNLD_DIDT].smu_feature_bitmap);
++ PP_ASSERT_WITH_CODE((0 == result), "[DisableDiDtConfig] Attempt to Disable DiDt feature Failed!", return result);
+ data->smu_features[GNLD_DIDT].enabled = false;
+ }
+ }
+--
+2.7.4
+