Skip to content

Commit 47ea207

Browse files
Shikang Fanalexdeucher
authored andcommitted
drm/amdgpu: Add an extra evict_resource call during device_suspend.
- evict_resource is taking too long causing sriov full access mode timeout. So, add an extra evict_resource in the beginning as an early evict. Signed-off-by: Shikang Fan <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 1d4624c commit 47ea207

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4112,6 +4112,11 @@ int amdgpu_device_suspend(struct drm_device *dev, bool fbcon)
41124112

41134113
adev->in_suspend = true;
41144114

4115+
/* Evict the majority of BOs before grabbing the full access */
4116+
r = amdgpu_device_evict_resources(adev);
4117+
if (r)
4118+
return r;
4119+
41154120
if (amdgpu_sriov_vf(adev)) {
41164121
amdgpu_virt_fini_data_exchange(adev);
41174122
r = amdgpu_virt_request_full_gpu(adev, false);

0 commit comments

Comments
 (0)