drm/amdgpu: move vram recover into sriov full access
authorHorace Chen <horace.chen@amd.com>
Tue, 23 Mar 2021 06:22:22 +0000 (14:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:42:54 +0000 (16:42 -0400)
commit437f3e0b6eb24cc777473ae55f4b98e720258779
tree180601373e89909f64fb61dbae0d7d3603c16179
parent181e772f7d1ac724ede20d37f5ea2dca9359d797
drm/amdgpu: move vram recover into sriov full access

[what]
currently driver recover vram after full access, which may hit
a corner case that meanwhile another whole gpu reset may be
triggered by another VF, which will cause vram recover fail
then fail the whole device reset.

[how]
move the recover vram into full access. So another bad VF will
not disturb the recover sequence for this vf.

Signed-off-by: Horace Chen <horace.chen@amd.com>
Reviewed by: Monk.Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c