diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c index 95807b678b6a..e0eaa55bf636 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | |||
@@ -258,7 +258,7 @@ int amdgpu_ctx_put(struct amdgpu_ctx *ctx) | |||
258 | } | 258 | } |
259 | 259 | ||
260 | uint64_t amdgpu_ctx_add_fence(struct amdgpu_ctx *ctx, struct amdgpu_ring *ring, | 260 | uint64_t amdgpu_ctx_add_fence(struct amdgpu_ctx *ctx, struct amdgpu_ring *ring, |
261 | struct fence *fence) | 261 | struct fence *fence, uint64_t queued_seq) |
262 | { | 262 | { |
263 | struct amdgpu_ctx_ring *cring = & ctx->rings[ring->idx]; | 263 | struct amdgpu_ctx_ring *cring = & ctx->rings[ring->idx]; |
264 | uint64_t seq = 0; | 264 | uint64_t seq = 0; |
@@ -266,7 +266,7 @@ uint64_t amdgpu_ctx_add_fence(struct amdgpu_ctx *ctx, struct amdgpu_ring *ring, | |||
266 | struct fence *other = NULL; | 266 | struct fence *other = NULL; |
267 | 267 | ||
268 | if (amdgpu_enable_scheduler) | 268 | if (amdgpu_enable_scheduler) |
269 | seq = atomic64_read(&cring->c_entity.last_queued_v_seq); | 269 | seq = queued_seq; |
270 | else | 270 | else |
271 | seq = cring->sequence; | 271 | seq = cring->sequence; |
272 | idx = seq % AMDGPU_CTX_MAX_CS_PENDING; | 272 | idx = seq % AMDGPU_CTX_MAX_CS_PENDING; |