Skip to contentSkip to conversation

drm/amdgpu: add job->preamble_status back to status value

PATCH In review Xiao, Jack 2 participants 2 messages Jun 18, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Xiao, Jack

author
#0 lore raw

PATCH 1/1 drm/amdgpu: add job->preamble_status back to status value

job->preamble_status was accidently dropped from the combination value of status varaiable which is the parameter of some ring level function. The patch is to add it back.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +1 -0
index 90cc084..6882eeb 100644
@@ -208,6 +208,7 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
 
 	skip_preamble = ring->current_ctx == fence_ctx;
 	if (job && ring->funcs->emit_cntxcntl) {
+		status |= job->preamble_status;
 		status |= job->preemption_status;
 		amdgpu_ring_emit_cntxcntl(ring, status);
 	}
Signature · 6 lines
1.9.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1560853789-22977-1-git-send-email-Jack.Xiao-5C7GfCeVMHo@public.gmane.org

#2 lore raw

Am 18.06.19 um 12:31 schrieb Xiao, Jack:

Quoted 5 lines

job->preamble_status was accidently dropped from the combination value of status varaiable which is the parameter of some ring level function. The patch is to add it back.

For now Acked-by: Christian König <[email protected]>, cause we need to get this fixed ASAP.

But now the question is why do we actually have two fields in the job for the same status?

Christian.

Quoted 9 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +0 -0
index 90cc084..6882eeb 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs, · line 214

Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +1 -0
@@ -208,6 +208,7 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
 
  	skip_preamble = ring->current_ctx == fence_ctx;
  	if (job && ring->funcs->emit_cntxcntl) {
+		status |= job->preamble_status;
  		status |= job->preemption_status;
  		amdgpu_ring_emit_cntxcntl(ring, status);
  	}

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx