amd/amdgpu/sriov tdr enablement with pp_onevf_mode
authorJack Zhang <Jack.Zhang1@amd.com>
Fri, 27 Dec 2019 06:44:03 +0000 (14:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jan 2020 16:58:19 +0000 (11:58 -0500)
commit895bd048fb0846c912cb896ff58f4341537d0ff1
tree9f0e9e08c9221f0d55c0641aa919c8b4afb73f5e
parentc2a801af318397bc5195a20c556a648b2476863d
amd/amdgpu/sriov tdr enablement with pp_onevf_mode

Under sriov and pp_onevf mode,
1.take resume instead of hw_init for smc recover to avoid
potential memory leak.

2.add return condition inside smc resume function for
sriov_pp_onevf_mode and pm_enabled param.

Signed-off-by: Jack Zhang <Jack.Zhang1@amd.com>
Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c