drm/amdgpu: Add an extra evict_resource call during device_suspend.
authorShikang Fan <shikang.fan@amd.com>
Thu, 8 Dec 2022 11:53:14 +0000 (19:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Dec 2022 22:10:32 +0000 (17:10 -0500)
commit47ea20762bb7875a62e10433a3cd5d34e9133f47
tree8faa880f652b1852df3063e53e8e82a97a988fb7
parent1d4624cd72b912b2680c08d0be48338a1629a858
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c