aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0925-drm-amd-powerplay-Simplify-vega10_acg_disable.patch
diff options
context:
space:
mode:
authorArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 14:52:21 +0500
committerArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 15:24:40 +0500
commitcc5953c3a2f348543ed44492244627ee0de76239 (patch)
tree23430cd57f73086e7176e8be4375e5ad3b4079c0 /meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0925-drm-amd-powerplay-Simplify-vega10_acg_disable.patch
parent4149413febf799293758015e230e0ce865ed9cb5 (diff)
downloadmeta-amd-cc5953c3a2f348543ed44492244627ee0de76239.tar.gz
meta-amd-cc5953c3a2f348543ed44492244627ee0de76239.tar.bz2
meta-amd-cc5953c3a2f348543ed44492244627ee0de76239.zip
common: rename to meta-amd-bsp
This renames common layers to meta-amd-bsp as it is going to hold all the bsps in it in the following commits. This also changes the layer title in layer.conf from "amd" to "amd-bsp" Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0925-drm-amd-powerplay-Simplify-vega10_acg_disable.patch')
-rw-r--r--meta-amd-bsp/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/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0925-drm-amd-powerplay-Simplify-vega10_acg_disable.patch b/meta-amd-bsp/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/meta-amd-bsp/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
+