drm/amdgpu/display: properly guard the calls to swSMU functions
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Jun 2020 20:36:05 +0000 (16:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:23:39 +0000 (08:23 +0200)
commitbb4960cc236b57708c44d11e272a9eeff66e90d9
treea56d0a8c94ee851039ba84332d7bf459ae922672
parentc2013b737bbde32f302575e6a1b74eb21cd419ca
drm/amdgpu/display: properly guard the calls to swSMU functions

[ Upstream commit 4072327a2622af8688b88f5cd0a472136d3bf33d ]

It's only applicable on newer asics.  We could end up here when
using DC on older asics like SI or KV.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1170
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c