OSDN Git Service

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)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:23 +0000 (01:59 -0400)
commit4072327a2622af8688b88f5cd0a472136d3bf33d
tree0948670e34792d47750b565eb73b509898cb0f75
parent376814f5fcf1aadda501d1413d56e8af85d19a97
drm/amdgpu/display: properly guard the calls to swSMU functions

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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c