drm/amdgpu/pm: add asic smu support check
authorStanley.Yang <Stanley.Yang@amd.com>
Mon, 21 Mar 2022 04:50:36 +0000 (12:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Mar 2022 16:40:24 +0000 (12:40 -0400)
commit93dde6ccd66d29502506e95f568fd0f49d575d27
treed12063548bea0c8f2325394104579f8ea8a52efc
parent0d8e4eb337644cab528ff3844675d58496ec22db
drm/amdgpu/pm: add asic smu support check

It must check asic whether support smu
before call smu powerplay function, otherwise
it may cause null point on no support smu asic.

Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_dpm.c