aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
diff options
context:
space:
mode:
authorKevin Wang <kevin1.wang@amd.com>2019-06-11 15:21:06 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-06-25 13:26:03 -0500
commitf3121d3dbb5278028d182a87d5396c0d005a213a (patch)
treec57e7d5dc9171905fb7af7dc37b027255b88747b /drivers/gpu/drm/amd/powerplay/smu_v11_0.c
parentdrm/amd/powerplay: fix fan speed show error (for hwmon pwm) (diff)
downloadlinux-dev-f3121d3dbb5278028d182a87d5396c0d005a213a.tar.xz
linux-dev-f3121d3dbb5278028d182a87d5396c0d005a213a.zip
drm/amd/powerplay: print smu versions only if version mismatch
only printf smu version when if version not matched. Signed-off-by: Kevin Wang <kevin1.wang@amd.com> Reviewed-by: Xiaojie Yuan <xiaojie.yuan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/amd/powerplay/smu_v11_0.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
index f63a2becb777..632a20587c8b 100644
--- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
+++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
@@ -260,12 +260,12 @@ static int smu_v11_0_check_fw_version(struct smu_context *smu)
smu_minor = (smu_version >> 8) & 0xff;
smu_debug = (smu_version >> 0) & 0xff;
- pr_info("SMU Driver IF Version = 0x%08x, SMU FW IF Version = 0x%08x,"
- " SMU FW Version = 0x%08x (%d.%d.%d)\n",
- if_version, smu->smc_if_version,
- smu_version, smu_major, smu_minor, smu_debug);
if (if_version != smu->smc_if_version) {
+ pr_info("smu driver if version = 0x%08x, smu fw if version = 0x%08x, "
+ "smu fw version = 0x%08x (%d.%d.%d)\n",
+ smu->smc_if_version, if_version,
+ smu_version, smu_major, smu_minor, smu_debug);
pr_err("SMU driver if version not matched\n");
ret = -EINVAL;
}