|
@@ -165,7 +165,7 @@ int amdgpu_sync_rings(struct amdgpu_sync *sync,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
- if (count >= AMDGPU_NUM_SYNCS) {
|
|
|
|
|
|
+ if (amdgpu_enable_scheduler || (count >= AMDGPU_NUM_SYNCS)) {
|
|
/* not enough room, wait manually */
|
|
/* not enough room, wait manually */
|
|
r = amdgpu_fence_wait(fence, false);
|
|
r = amdgpu_fence_wait(fence, false);
|
|
if (r)
|
|
if (r)
|