summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2017-04-20 10:25:39 +0300
committerAlex Deucher <alexander.deucher@amd.com>2017-04-29 00:32:48 +0300
commit42f72d0b3754a7ecf1208f90cef45ba89a89f2e7 (patch)
tree44e51504106558a7470b7c2f8f70ed1df3f8b5f9 /drivers/gpu
parent7ad87b96962a01830b0751d11a389b4039eb4460 (diff)
downloadlinux-42f72d0b3754a7ecf1208f90cef45ba89a89f2e7.tar.xz
drm/amd/powerplay: add error message to remind user updating firmware
Signed-off-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c
index 7a36a7404f73..21b61315fc40 100644
--- a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c
+++ b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c
@@ -369,8 +369,11 @@ static int vega10_verify_smc_interface(struct pp_smumgr *smumgr)
"Attempt to read SMC IF Version Number Failed!",
return -1);
- if (smc_driver_if_version != SMU9_DRIVER_IF_VERSION)
- return -1;
+ if (smc_driver_if_version != SMU9_DRIVER_IF_VERSION) {
+ pr_err("Your firmware(0x%x) doesn't match SMU9_DRIVER_IF_VERSION(0x%x). Please update your firmware!\n",
+ smc_driver_if_version, SMU9_DRIVER_IF_VERSION);
+ return -EINVAL;
+ }
return 0;
}