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 <shikang.fan@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 1d4624c commit 47ea207

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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)