aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0269-drm-amd-powerplay-update-smu10_verify_smc-to-raven2-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0269-drm-amd-powerplay-update-smu10_verify_smc-to-raven2-.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0269-drm-amd-powerplay-update-smu10_verify_smc-to-raven2-.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0269-drm-amd-powerplay-update-smu10_verify_smc-to-raven2-.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0269-drm-amd-powerplay-update-smu10_verify_smc-to-raven2-.patch
new file mode 100644
index 00000000..c389a3f8
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0269-drm-amd-powerplay-update-smu10_verify_smc-to-raven2-.patch
@@ -0,0 +1,34 @@
+From b157c05df323c4a301c0c77788419d91a500dc3e Mon Sep 17 00:00:00 2001
+From: Evan Quan <evan.quan@amd.com>
+Date: Fri, 15 Jun 2018 17:22:38 -0500
+Subject: [PATCH 0269/2940] drm/amd/powerplay:update smu10_verify_smc* to
+ raven2 compatible
+
+Check the raven2 version number as well.
+
+Change-Id: Ic6a6439eb849c90b57a4df4e58fea372a3ac5bcc
+Signed-off-by: Evan Quan <evan.quan@amd.com>
+Reviewed-by: Huang Rui <ray.huang@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c
+index bb07d43f3874..6f961dec2088 100644
+--- a/drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c
++++ b/drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c
+@@ -177,7 +177,8 @@ static int smu10_verify_smc_interface(struct pp_hwmgr *hwmgr)
+ PPSMC_MSG_GetDriverIfVersion);
+ smc_driver_if_version = smu10_read_arg_from_smc(hwmgr);
+
+- if (smc_driver_if_version != SMU10_DRIVER_IF_VERSION) {
++ if ((smc_driver_if_version != SMU10_DRIVER_IF_VERSION) &&
++ (smc_driver_if_version != SMU10_DRIVER_IF_VERSION + 1)) {
+ pr_err("Attempt to read SMC IF Version Number Failed!\n");
+ return -EINVAL;
+ }
+--
+2.17.1
+