aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0967-drm-amd-powerplay-Fix-a-bug-for-enabling-ACDC-gpio-i.patch
diff options
context:
space:
mode:
authorAwais Belal <awais_belal@mentor.com>2016-10-13 14:39:46 +0500
committerAwais Belal <awais_belal@mentor.com>2016-10-14 15:22:00 +0500
commit912c1466ad973230fcdd08b07f766d291a6c13a4 (patch)
tree3e7a0bdfdf033d61c2212f66c19bf192d41e49b2 /common/recipes-kernel/linux/files/0967-drm-amd-powerplay-Fix-a-bug-for-enabling-ACDC-gpio-i.patch
parentb701f13977df4dd34e618e7d074220782b27dd34 (diff)
downloadmeta-amd-912c1466ad973230fcdd08b07f766d291a6c13a4.tar.gz
meta-amd-912c1466ad973230fcdd08b07f766d291a6c13a4.tar.bz2
meta-amd-912c1466ad973230fcdd08b07f766d291a6c13a4.zip
SE/BE: move to 4.4 kernel
This commit does a few things which cannot be separated easily so it cannot be split in to separate commits. * Drops all 4.1 kernel bits. * Moves all common patches from meta-amdfalconx86 to common. * Moves SE/BE builds to 4.4 kernel. Signed-off-by: Awais Belal <awais_belal@mentor.com>
Diffstat (limited to 'common/recipes-kernel/linux/files/0967-drm-amd-powerplay-Fix-a-bug-for-enabling-ACDC-gpio-i.patch')
-rw-r--r--common/recipes-kernel/linux/files/0967-drm-amd-powerplay-Fix-a-bug-for-enabling-ACDC-gpio-i.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0967-drm-amd-powerplay-Fix-a-bug-for-enabling-ACDC-gpio-i.patch b/common/recipes-kernel/linux/files/0967-drm-amd-powerplay-Fix-a-bug-for-enabling-ACDC-gpio-i.patch
new file mode 100644
index 00000000..6dcde134
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0967-drm-amd-powerplay-Fix-a-bug-for-enabling-ACDC-gpio-i.patch
@@ -0,0 +1,38 @@
+From 95fa0c598c1537adc77733c2723db3f55f68149a Mon Sep 17 00:00:00 2001
+From: Eric Huang <JinHuiEric.Huang@amd.com>
+Date: Thu, 24 Mar 2016 16:44:18 -0400
+Subject: [PATCH 0967/1110] drm/amd/powerplay: Fix a bug for enabling ACDC gpio
+ interrupt
+
+Signed-off-by: Eric Yang <eric.yang2@amd.com>
+Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | 11 +++++++----
+ 1 file changed, 7 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
+index fd29c56..045c7ef 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c
+@@ -2354,10 +2354,13 @@ static int polaris10_start_dpm(struct pp_hwmgr *hwmgr)
+ return -1);
+ }
+
+- PP_ASSERT_WITH_CODE((0 == smum_send_msg_to_smc(hwmgr->smumgr,
+- PPSMC_MSG_EnableACDCGPIOInterrupt)),
+- "Failed to enable AC DC GPIO Interrupt!",
+- );
++ if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
++ PHM_PlatformCaps_Falcon_QuickTransition)) {
++ PP_ASSERT_WITH_CODE((0 == smum_send_msg_to_smc(hwmgr->smumgr,
++ PPSMC_MSG_EnableACDCGPIOInterrupt)),
++ "Failed to enable AC DC GPIO Interrupt!",
++ );
++ }
+
+ return 0;
+ }
+--
+2.7.4
+