projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43c27fb
)
drm/amdgpu: wait interruptible when semaphores are disabled v2
author
Christian König
<
[email protected]
>
Thu, 10 Sep 2015 13:03:50 +0000
(15:03 +0200)
committer
Alex Deucher
<
[email protected]
>
Mon, 16 Nov 2015 22:01:15 +0000
(17:01 -0500)
Otherwise debugging locked up processes isn't possible.
v2: rebased
Signed-off-by: Christian König <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
> (v1)
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
index a6697fd0521713cd9f60cbd7a2508b02e954b470..dd005c336c974ad708827c25edc4a4534772bb2c 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
@@
-302,8
+302,14
@@
int amdgpu_sync_rings(struct amdgpu_sync *sync,
return -EINVAL;
}
- if (amdgpu_enable_scheduler || !amdgpu_enable_semaphores ||
- (count >= AMDGPU_NUM_SYNCS)) {
+ if (amdgpu_enable_scheduler || !amdgpu_enable_semaphores) {
+ r = fence_wait(&fence->base, true);
+ if (r)
+ return r;
+ continue;
+ }
+
+ if (count >= AMDGPU_NUM_SYNCS) {
/* not enough room, wait manually */
r = fence_wait(&fence->base, false);
if (r)