From: Alyssa Rosenzweig <alyssa@collabora.com>
To: Ma??ra Canal <mcanal@igalia.com>
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>,
Sean Paul <sean@poorly.run>,
Abhinav Kumar <quic_abhinavk@quicinc.com>,
dri-devel@lists.freedesktop.org,
Christian K??nig <christian.koenig@amd.com>,
Melissa Wen <mwen@igalia.com>,
Luben Tuikov <luben.tuikov@amd.com>, Qiang Yu <yuq825@gmail.com>,
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
Steven Price <steven.price@arm.com>,
Sumit Semwal <sumit.semwal@linaro.org>,
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Subject: Re: [PATCH 4/5] drm/panfrost: Use drm_sched_job_add_syncobj_dependency()
Date: Wed, 8 Feb 2023 15:12:08 -0500 [thread overview]
Message-ID: <Y+QCGAFispvY4L8Z@maud> (raw)
In-Reply-To: <20230208194817.199932-5-mcanal@igalia.com>
R-b, thanks
On Wed, Feb 08, 2023 at 04:48:16PM -0300, Ma??ra Canal wrote:
> As panfrost_copy_in_sync() performs the same steps as
> drm_sched_job_add_syncobj_dependency(), replace the open-coded
> implementation in Panfrost in order to simply, using the DRM function.
>
> Signed-off-by: Ma??ra Canal <mcanal@igalia.com>
> ---
> drivers/gpu/drm/panfrost/panfrost_drv.c | 11 ++---------
> 1 file changed, 2 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c
> index abb0dadd8f63..f49096f53141 100644
> --- a/drivers/gpu/drm/panfrost/panfrost_drv.c
> +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c
> @@ -220,15 +220,8 @@ panfrost_copy_in_sync(struct drm_device *dev,
> }
>
> for (i = 0; i < in_fence_count; i++) {
> - struct dma_fence *fence;
> -
> - ret = drm_syncobj_find_fence(file_priv, handles[i], 0, 0,
> - &fence);
> - if (ret)
> - goto fail;
> -
> - ret = drm_sched_job_add_dependency(&job->base, fence);
> -
> + ret = drm_sched_job_add_syncobj_dependency(&job->base, file_priv,
> + handles[i], 0);
> if (ret)
> goto fail;
> }
> --
> 2.39.1
>
next prev parent reply other threads:[~2023-02-08 20:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-08 19:48 [PATCH 0/5] drm/sched: Create wrapper to add a syncobj dependency to job Maíra Canal
2023-02-08 19:48 ` [PATCH 1/5] " Maíra Canal
2023-02-08 19:54 ` Christian König
2023-02-08 22:20 ` Luben Tuikov
2023-02-09 6:54 ` Christian König
2023-02-08 22:36 ` Luben Tuikov
2023-02-08 19:48 ` [PATCH 2/5] drm/lima: Use drm_sched_job_add_syncobj_dependency() Maíra Canal
2023-02-08 19:48 ` [PATCH 3/5] drm/msm: " Maíra Canal
2023-02-08 19:48 ` [PATCH 4/5] drm/panfrost: " Maíra Canal
2023-02-08 20:12 ` Alyssa Rosenzweig [this message]
2023-02-08 19:48 ` [PATCH 5/5] drm/v3d: " Maíra Canal
2023-02-09 11:27 ` Melissa Wen
2023-02-09 12:08 ` Christian König
2023-02-09 12:36 ` Melissa Wen
2023-02-09 12:45 ` Christian König
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=Y+QCGAFispvY4L8Z@maud \
--to=alyssa@collabora.com \
--cc=alyssa.rosenzweig@collabora.com \
--cc=christian.koenig@amd.com \
--cc=dmitry.baryshkov@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=luben.tuikov@amd.com \
--cc=mcanal@igalia.com \
--cc=mwen@igalia.com \
--cc=quic_abhinavk@quicinc.com \
--cc=sean@poorly.run \
--cc=steven.price@arm.com \
--cc=sumit.semwal@linaro.org \
--cc=tomeu.vizoso@collabora.com \
--cc=yuq825@gmail.com \
/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 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.