aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0925-drm-amd-powerplay-Simplify-vega10_acg_disable.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0925-drm-amd-powerplay-Simplify-vega10_acg_disable.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0925-drm-amd-powerplay-Simplify-vega10_acg_disable.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0925-drm-amd-powerplay-Simplify-vega10_acg_disable.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0925-drm-amd-powerplay-Simplify-vega10_acg_disable.patch
new file mode 100644
index 00000000..31b1de9d
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0925-drm-amd-powerplay-Simplify-vega10_acg_disable.patch
@@ -0,0 +1,36 @@
+From 0a9faf1e7fdcc0c26f55ea10591eabc8b1f84f27 Mon Sep 17 00:00:00 2001
+From: Tom St Denis <tom.stdenis@amd.com>
+Date: Tue, 5 Sep 2017 12:33:58 -0400
+Subject: [PATCH 0925/4131] drm/amd/powerplay: Simplify vega10_acg_disable()
+
+Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
+Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 10 ++++------
+ 1 file changed, 4 insertions(+), 6 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+index d1d0ec2..5762d6d 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+@@ -2313,13 +2313,11 @@ static int vega10_acg_disable(struct pp_hwmgr *hwmgr)
+ struct vega10_hwmgr *data =
+ (struct vega10_hwmgr *)(hwmgr->backend);
+
+- if (data->smu_features[GNLD_ACG].supported) {
+- if (data->smu_features[GNLD_ACG].enabled) {
+- if (0 == vega10_enable_smc_features(hwmgr->smumgr, false,
+- data->smu_features[GNLD_ACG].smu_feature_bitmap))
++ if (data->smu_features[GNLD_ACG].supported &&
++ data->smu_features[GNLD_ACG].enabled)
++ if (!vega10_enable_smc_features(hwmgr->smumgr, false,
++ data->smu_features[GNLD_ACG].smu_feature_bitmap))
+ data->smu_features[GNLD_ACG].enabled = false;
+- }
+- }
+
+ return 0;
+ }
+--
+2.7.4
+