From: "Maíra Canal" <mcanal@igalia.com>
To: Christian Gmeiner <christian.gmeiner@gmail.com>,
Melissa Wen <mwen@igalia.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Cc: Christian Gmeiner <cgmeiner@igalia.com>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drm/v3d: Use v3d_perfmon_find(..)
Date: Tue, 24 Sep 2024 20:27:55 -0300 [thread overview]
Message-ID: <5fc3e586-cc8d-4ee5-ad1a-23740d1075a1@igalia.com> (raw)
In-Reply-To: <20240923152000.185980-1-christian.gmeiner@gmail.com>
Hi Christian,
On 9/23/24 12:19, Christian Gmeiner wrote:
> From: Christian Gmeiner <cgmeiner@igalia.com>
>
> Replace the open coded v3d_perfmon_find(..) with the real
> thing.
>
> Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Thanks for your patch!
Reviewed-by: Maíra Canal <mcanal@igalia.com>
Applied to misc/kernel.git (drm-misc-next).
Best Regards,
- Maíra
> ---
> drivers/gpu/drm/v3d/v3d_perfmon.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/v3d/v3d_perfmon.c b/drivers/gpu/drm/v3d/v3d_perfmon.c
> index cd7f1eedf17f..54a486a9b74c 100644
> --- a/drivers/gpu/drm/v3d/v3d_perfmon.c
> +++ b/drivers/gpu/drm/v3d/v3d_perfmon.c
> @@ -402,11 +402,7 @@ int v3d_perfmon_get_values_ioctl(struct drm_device *dev, void *data,
> if (req->pad != 0)
> return -EINVAL;
>
> - mutex_lock(&v3d_priv->perfmon.lock);
> - perfmon = idr_find(&v3d_priv->perfmon.idr, req->id);
> - v3d_perfmon_get(perfmon);
> - mutex_unlock(&v3d_priv->perfmon.lock);
> -
> + perfmon = v3d_perfmon_find(v3d_priv, req->id);
> if (!perfmon)
> return -EINVAL;
>
prev parent reply other threads:[~2024-09-24 23:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-23 15:19 Christian Gmeiner
2024-09-24 23:27 ` Maíra Canal [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=5fc3e586-cc8d-4ee5-ad1a-23740d1075a1@igalia.com \
--to=mcanal@igalia.com \
--cc=airlied@gmail.com \
--cc=cgmeiner@igalia.com \
--cc=christian.gmeiner@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=mwen@igalia.com \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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
all inboxes | Powered by JetHome®