drm/amdgpu: no need to evict VRAM in device_fini
authorMonk Liu <Monk.Liu@amd.com>
Wed, 22 Nov 2017 11:21:43 +0000 (19:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Dec 2017 19:49:56 +0000 (14:49 -0500)
this VRAM evict is not needed and also cost 2seconds
to finish because the IRQ is software side disabled
before it.

Signed-off-by: Monk Liu <Monk.Liu@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

index b10aecc7d146a6ddd7591b66b970f8b91103b837..98d62a991b67b42ff5a8c83867b3628b3facc127 100644 (file)
@@ -2461,8 +2461,7 @@ void amdgpu_device_fini(struct amdgpu_device *adev)
        adev->shutdown = true;
        if (adev->mode_info.mode_config_initialized)
                drm_crtc_force_disable_all(adev->ddev);
-       /* evict vram memory */
-       amdgpu_bo_evict_vram(adev);
+
        amdgpu_ib_pool_fini(adev);
        amdgpu_fence_driver_fini(adev);
        amdgpu_fbdev_fini(adev);