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:
ae45577
)
drm/amdgpu: add zero timeout check in amdgpu_fence_wait_seq_timeout
author
Jack Xiao
<Jack.Xiao@amd.com>
Thu, 4 Jun 2015 04:18:27 +0000
(12:18 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 5 Jun 2015 14:59:25 +0000
(10:59 -0400)
Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
index 9ce6023a426103d1e035aeacd472be5268d43e82..48ca637c50296b7a1e4894dab9874ef6496296e4 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
@@
-522,6
+522,10
@@
long amdgpu_fence_wait_seq_timeout(struct amdgpu_device *adev, u64 *target_seq,
bool signaled;
int i, r;
+ if (timeout == 0) {
+ return amdgpu_fence_any_seq_signaled(adev, target_seq);
+ }
+
while (!amdgpu_fence_any_seq_signaled(adev, target_seq)) {
/* Save current sequence values, used to check for GPU lockups */