]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
drm/radeon: wake up all fences on manual reset
authorChristian König <christian.koenig@amd.com>
Wed, 27 Aug 2014 13:21:53 +0000 (15:21 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Aug 2014 17:11:43 +0000 (13:11 -0400)
Wake up all fences when we manually trigger a reset.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_fence.c

index 913787085dfadf56cfd21ed5b771c072c78cd072..5bd837afb93905d9ecbe9db5a6afce3d764facb4 100644 (file)
@@ -833,6 +833,7 @@ static int radeon_debugfs_gpu_reset(struct seq_file *m, void *data)
        down_read(&rdev->exclusive_lock);
        seq_printf(m, "%d\n", rdev->needs_reset);
        rdev->needs_reset = true;
+       wake_up_all(&rdev->fence_queue);
        up_read(&rdev->exclusive_lock);
 
        return 0;