From: "Christian König" <ckoenig.leichtzumerken-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Monk Liu <Monk.Liu-5C7GfCeVMHo@public.gmane.org>,
amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH] drm/amd/scheduler:fix duplicate operation in entity fini
Date: Mon, 23 Oct 2017 09:12:27 +0200 [thread overview]
Message-ID: <f11286ce-66aa-55d4-e29b-4c751e192212@gmail.com> (raw)
In-Reply-To: <1508738432-27426-1-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
Am 23.10.2017 um 08:00 schrieb Monk Liu:
> no need to manually cleanup job and fence after sched_fence_finish(),
> they are auto handled by the callback
>
> Change-Id: I9da26064c9e73c178949663bed1e490539e95e41
> Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
> ---
> drivers/gpu/drm/amd/scheduler/gpu_scheduler.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
> index 39b6205..f9f3daa 100644
> --- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
> +++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
> @@ -230,11 +230,10 @@ void amd_sched_entity_fini(struct amd_gpu_scheduler *sched,
> kthread_unpark(sched->thread);
> while (kfifo_out(&entity->job_queue, &job, sizeof(job))) {
> struct amd_sched_fence *s_fence = job->s_fence;
> +
> amd_sched_fence_scheduled(s_fence);
> dma_fence_set_error(&s_fence->finished, -ESRCH);
> amd_sched_fence_finished(s_fence);
> - dma_fence_put(&s_fence->finished);
> - sched->ops->free_job(job);
> }
>
> }
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
prev parent reply other threads:[~2017-10-23 7:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-23 6:00 [PATCH] drm/amd/scheduler:fix duplicate operation in entity fini Monk Liu
[not found] ` <1508738432-27426-1-git-send-email-Monk.Liu-5C7GfCeVMHo@public.gmane.org>
2017-10-23 7:12 ` Christian König [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f11286ce-66aa-55d4-e29b-4c751e192212@gmail.com \
--to=ckoenig.leichtzumerken-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=Monk.Liu-5C7GfCeVMHo@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=christian.koenig-5C7GfCeVMHo@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox