From: Danilo Krummrich <dakr@redhat.com>
To: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Lyude Paul <lyude@redhat.com>, David Airlie <airlied@gmail.com>,
Daniel Vetter <daniel@ffwll.ch>, Dave Airlie <airlied@redhat.com>,
dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org,
linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org,
Karol Herbst <kherbst@redhat.com>
Subject: Re: [PATCH] nouveau/gsp/r535: remove a stray unlock in r535_gsp_rpc_send()
Date: Wed, 29 Nov 2023 03:09:09 +0100 [thread overview]
Message-ID: <0dd7741c-b2f0-4593-b286-de918ffe8955@redhat.com> (raw)
In-Reply-To: <a0293812-c05d-45f0-a535-3f24fe582c02@moroto.mountain>
On 11/27/23 13:56, Dan Carpenter wrote:
> This unlock doesn't belong here and it leads to a double unlock in
> the caller, r535_gsp_rpc_push().
>
> Fixes: 176fdcbddfd2 ("drm/nouveau/gsp/r535: add support for booting GSP-RM")
> Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Good catch - applied to drm-misc-fixes.
- Danilo
> ---
> drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c b/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
> index dc44f5c7833f..818e5c73b7a6 100644
> --- a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
> +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c
> @@ -365,10 +365,8 @@ r535_gsp_rpc_send(struct nvkm_gsp *gsp, void *argv, bool wait, u32 repc)
> }
>
> ret = r535_gsp_cmdq_push(gsp, rpc);
> - if (ret) {
> - mutex_unlock(&gsp->cmdq.mutex);
> + if (ret)
> return ERR_PTR(ret);
> - }
>
> if (wait) {
> msg = r535_gsp_msg_recv(gsp, fn, repc);
prev parent reply other threads:[~2023-11-29 2:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-27 12:56 Dan Carpenter
2023-11-27 20:05 ` [Nouveau] " Timur Tabi
2023-11-29 2:09 ` Danilo Krummrich [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=0dd7741c-b2f0-4593-b286-de918ffe8955@redhat.com \
--to=dakr@redhat.com \
--cc=airlied@gmail.com \
--cc=airlied@redhat.com \
--cc=dan.carpenter@linaro.org \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=kherbst@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lyude@redhat.com \
--cc=nouveau@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
all inboxes | Powered by JetHome®