summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/radeon_fence.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-08-27 17:21:53 +0400
committerAlex Deucher <alexander.deucher@amd.com>2014-08-27 21:11:43 +0400
commitf0d970b4fd05cb7af89307bb17689c18c835d739 (patch)
treee0535dbf621d3614251636f651c4d0901a786edd /drivers/gpu/drm/radeon/radeon_fence.c
parent14e935aeb0213e2ef522d0d8a14d2d29fb194956 (diff)
downloadlinux-f0d970b4fd05cb7af89307bb17689c18c835d739.tar.xz
drm/radeon: wake up all fences on manual reset
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_fence.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_fence.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_fence.c b/drivers/gpu/drm/radeon/radeon_fence.c
index 913787085dfa..5bd837afb939 100644
--- a/drivers/gpu/drm/radeon/radeon_fence.c
+++ b/drivers/gpu/drm/radeon/radeon_fence.c
@@ -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;