All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/amd: fix init order of sched job
@ 2017-05-09  8:14 Chunming Zhou
       [not found] ` <1494317649-16751-1-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Chunming Zhou @ 2017-05-09  8:14 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Chunming Zhou

Change-Id: Iced391f5c24a79ad7aecae33e22ff089f68f1337
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
---
 drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
index 80bc4f7..3c258c3 100644
--- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
+++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
@@ -460,9 +460,9 @@ int amd_sched_job_init(struct amd_sched_job *job,
 	job->sched = sched;
 	job->s_entity = entity;
 	job->s_fence = amd_sched_fence_create(entity, owner);
-	job->id = atomic64_inc_return(&sched->job_id_count);
 	if (!job->s_fence)
 		return -ENOMEM;
+	job->id = atomic64_inc_return(&sched->job_id_count);
 
 	INIT_WORK(&job->finish_work, amd_sched_job_finish);
 	INIT_LIST_HEAD(&job->node);
-- 
1.9.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-05-10  1:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-09  8:14 [PATCH 1/3] drm/amd: fix init order of sched job Chunming Zhou
     [not found] ` <1494317649-16751-1-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org>
2017-05-09  8:14   ` [PATCH 2/3] drm/amdgpu: fix dependency issue Chunming Zhou
     [not found]     ` <1494317649-16751-2-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org>
2017-05-09  8:38       ` Zhang, Jerry (Junwei)
2017-05-09 11:14       ` Christian König
2017-05-09  8:14   ` [PATCH 3/3] drm/amdgpu: add sched sync for amdgpu job Chunming Zhou
     [not found]     ` <1494317649-16751-3-git-send-email-David1.Zhou-5C7GfCeVMHo@public.gmane.org>
2017-05-09 11:16       ` Christian König
     [not found]         ` <1ccd8f37-0297-315e-0355-f38b1b511924-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-05-10  1:58           ` zhoucm1
2017-05-09  8:33   ` [PATCH 1/3] drm/amd: fix init order of sched job Zhang, Jerry (Junwei)
     [not found]     ` <59117EE0.2040007-5C7GfCeVMHo@public.gmane.org>
2017-05-09 11:10       ` Christian König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.