From: "Christian König" <ckoenig.leichtzumerken@gmail.com>
To: Chunming Zhou <david1.zhou@amd.com>, dri-devel@lists.freedesktop.org
Cc: amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/6] drm: add flags to drm_syncobj_find_fence
Date: Thu, 20 Sep 2018 13:05:03 +0200 [thread overview]
Message-ID: <d6215d18-4657-66b5-395f-b5787ab244fe@gmail.com> (raw)
In-Reply-To: <20180920110353.16114-1-david1.zhou@amd.com>
Am 20.09.2018 um 13:03 schrieb Chunming Zhou:
> flags can be used by driver to decide whether need to block wait submission.
>
> Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +-
> drivers/gpu/drm/drm_syncobj.c | 4 ++--
> drivers/gpu/drm/v3d/v3d_gem.c | 4 ++--
> drivers/gpu/drm/vc4/vc4_gem.c | 2 +-
> include/drm/drm_syncobj.h | 2 +-
> 5 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> index d9d2ede96490..412fac238575 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
> @@ -1102,7 +1102,7 @@ static int amdgpu_syncobj_lookup_and_add_to_sync(struct amdgpu_cs_parser *p,
> {
> int r;
> struct dma_fence *fence;
> - r = drm_syncobj_find_fence(p->filp, handle, 0, &fence);
> + r = drm_syncobj_find_fence(p->filp, handle, 0, 0, &fence);
> if (r)
> return r;
>
> diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c
> index e9ce623d049e..f796c9fc3858 100644
> --- a/drivers/gpu/drm/drm_syncobj.c
> +++ b/drivers/gpu/drm/drm_syncobj.c
> @@ -235,7 +235,7 @@ static int drm_syncobj_assign_null_handle(struct drm_syncobj *syncobj)
> * dma_fence_put().
> */
> int drm_syncobj_find_fence(struct drm_file *file_private,
> - u32 handle, u64 point,
> + u32 handle, u64 point, u64 flags,
> struct dma_fence **fence)
> {
> struct drm_syncobj *syncobj = drm_syncobj_find(file_private, handle);
> @@ -506,7 +506,7 @@ static int drm_syncobj_export_sync_file(struct drm_file *file_private,
> if (fd < 0)
> return fd;
>
> - ret = drm_syncobj_find_fence(file_private, handle, 0, &fence);
> + ret = drm_syncobj_find_fence(file_private, handle, 0, 0, &fence);
> if (ret)
> goto err_put_fd;
>
> diff --git a/drivers/gpu/drm/v3d/v3d_gem.c b/drivers/gpu/drm/v3d/v3d_gem.c
> index 70c54774400b..97477879d3d4 100644
> --- a/drivers/gpu/drm/v3d/v3d_gem.c
> +++ b/drivers/gpu/drm/v3d/v3d_gem.c
> @@ -521,12 +521,12 @@ v3d_submit_cl_ioctl(struct drm_device *dev, void *data,
> kref_init(&exec->refcount);
>
> ret = drm_syncobj_find_fence(file_priv, args->in_sync_bcl,
> - 0, &exec->bin.in_fence);
> + 0, 0, &exec->bin.in_fence);
> if (ret == -EINVAL)
> goto fail;
>
> ret = drm_syncobj_find_fence(file_priv, args->in_sync_rcl,
> - 0, &exec->render.in_fence);
> + 0, 0, &exec->render.in_fence);
> if (ret == -EINVAL)
> goto fail;
>
> diff --git a/drivers/gpu/drm/vc4/vc4_gem.c b/drivers/gpu/drm/vc4/vc4_gem.c
> index 5b22e996af6c..251198194c38 100644
> --- a/drivers/gpu/drm/vc4/vc4_gem.c
> +++ b/drivers/gpu/drm/vc4/vc4_gem.c
> @@ -1173,7 +1173,7 @@ vc4_submit_cl_ioctl(struct drm_device *dev, void *data,
>
> if (args->in_sync) {
> ret = drm_syncobj_find_fence(file_priv, args->in_sync,
> - 0, &in_fence);
> + 0, 0, &in_fence);
> if (ret)
> goto fail;
>
> diff --git a/include/drm/drm_syncobj.h b/include/drm/drm_syncobj.h
> index 425432b85a87..2eda44def639 100644
> --- a/include/drm/drm_syncobj.h
> +++ b/include/drm/drm_syncobj.h
> @@ -134,7 +134,7 @@ struct drm_syncobj *drm_syncobj_find(struct drm_file *file_private,
> void drm_syncobj_replace_fence(struct drm_syncobj *syncobj, u64 point,
> struct dma_fence *fence);
> int drm_syncobj_find_fence(struct drm_file *file_private,
> - u32 handle, u64 point,
> + u32 handle, u64 point, u64 flags,
> struct dma_fence **fence);
> void drm_syncobj_free(struct kref *kref);
> int drm_syncobj_create(struct drm_syncobj **out_syncobj, uint32_t flags,
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2018-09-20 11:05 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-20 11:03 [PATCH 1/6] drm: add flags to drm_syncobj_find_fence Chunming Zhou
[not found] ` <20180920110353.16114-1-david1.zhou-5C7GfCeVMHo@public.gmane.org>
2018-09-20 11:03 ` [PATCH 2/6] drm: add syncobj timeline support v8 Chunming Zhou
[not found] ` <20180920110353.16114-2-david1.zhou-5C7GfCeVMHo@public.gmane.org>
2018-09-20 11:08 ` Christian König
2018-09-20 11:03 ` [PATCH 3/6] drm: add support of syncobj timeline point wait v2 Chunming Zhou
2018-09-20 11:11 ` Christian König
2018-09-21 7:15 ` Zhou, David(ChunMing)
2018-09-21 7:21 ` Christian König
[not found] ` <20180920110353.16114-3-david1.zhou-5C7GfCeVMHo@public.gmane.org>
2018-09-25 9:22 ` Jason Ekstrand
[not found] ` <CAOFGe96fXDQ8Q1piYCWhn2Z8ToOmf1JXyu+2YgUWYbMLCX7nzg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-09-25 9:49 ` Christian König
2018-10-08 5:53 ` Zhou, David(ChunMing)
2018-10-08 17:53 ` Jason Ekstrand
2018-09-20 11:03 ` [PATCH 4/6] drm: add timeline syncobj payload query ioctl Chunming Zhou
[not found] ` <20180920110353.16114-4-david1.zhou-5C7GfCeVMHo@public.gmane.org>
2018-09-24 10:14 ` Christian König
2018-09-20 11:03 ` [PATCH 5/6] drm/amdgpu: add timeline support in amdgpu CS Chunming Zhou
2018-09-24 10:25 ` Christian König
[not found] ` <20180920110353.16114-5-david1.zhou-5C7GfCeVMHo@public.gmane.org>
2018-09-26 8:44 ` Nicolai Hähnle
[not found] ` <c5c3e0c6-1f6d-e3a3-f9bb-0c7cef10b0f5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-10-08 3:45 ` Zhou, David(ChunMing)
2018-09-26 9:06 ` Nicolai Hähnle
[not found] ` <3577a9cb-dd33-6014-eb01-248af91df97f-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-10-08 3:38 ` Zhou, David(ChunMing)
2018-09-20 11:03 ` [PATCH 6/6] drm/amdgpu: update version for timeline syncobj support in amdgpu Chunming Zhou
2018-09-20 11:05 ` Christian König [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-10-09 8:45 [PATCH 1/6] drm: add flags to drm_syncobj_find_fence Chunming Zhou
2018-09-19 9:04 Chunming Zhou
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=d6215d18-4657-66b5-395f-b5787ab244fe@gmail.com \
--to=ckoenig.leichtzumerken@gmail.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=david1.zhou@amd.com \
--cc=dri-devel@lists.freedesktop.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