From: "Lazar, Lijo" <lijo.lazar@amd.com>
To: Dan Carpenter <dan.carpenter@linaro.org>
Cc: "Alex Deucher" <alexander.deucher@amd.com>,
"Christian König" <christian.koenig@amd.com>,
"Xinhui Pan" <Xinhui.Pan@amd.com>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>,
"Hawking Zhang" <Hawking.Zhang@amd.com>,
"Yang Wang" <kevinyang.wang@amd.com>,
"Tao Zhou" <tao.zhou1@amd.com>,
"Vignesh Chander" <Vignesh.Chander@amd.com>,
"Shiwu Zhang" <shiwu.zhang@amd.com>,
"Feifei Xu" <Feifei.Xu@amd.com>,
"Rajneesh Bhardwaj" <rajneesh.bhardwaj@amd.com>,
amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH next] drm/amdgpu: Fix a double lock bug
Date: Fri, 18 Oct 2024 11:58:37 +0530 [thread overview]
Message-ID: <51a348b3-8b37-4546-9514-97d94b782d28@amd.com> (raw)
In-Reply-To: <2e19e095-c022-45a3-8bb3-9a9321bc1905@stanley.mountain>
On 10/18/2024 1:10 AM, Dan Carpenter wrote:
> This was supposed to be an unlock instead of a lock. The original
> code will lead to a deadlock.
>
> Fixes: ee52489d1210 ("drm/amdgpu: Place NPS mode request on unload")
> Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Thanks, this is being taken care with a follow-up patch -
https://patchwork.freedesktop.org/patch/620162/
Thanks,
Lijo
> ---
> From static analysis, not testing.
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
> index fcdbcff57632..3be07bcfd117 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
> @@ -1605,7 +1605,7 @@ int amdgpu_xgmi_request_nps_change(struct amdgpu_device *adev,
> gmc.xgmi.head)
> adev->gmc.gmc_funcs->request_mem_partition_mode(tmp_adev,
> cur_nps_mode);
> - mutex_lock(&hive->hive_lock);
> + mutex_unlock(&hive->hive_lock);
>
> return r;
> }
prev parent reply other threads:[~2024-10-18 6:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-17 19:40 Dan Carpenter
2024-10-18 6:28 ` Lazar, Lijo [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=51a348b3-8b37-4546-9514-97d94b782d28@amd.com \
--to=lijo.lazar@amd.com \
--cc=Feifei.Xu@amd.com \
--cc=Hawking.Zhang@amd.com \
--cc=Vignesh.Chander@amd.com \
--cc=Xinhui.Pan@amd.com \
--cc=airlied@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=dan.carpenter@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=kevinyang.wang@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rajneesh.bhardwaj@amd.com \
--cc=shiwu.zhang@amd.com \
--cc=simona@ffwll.ch \
--cc=tao.zhou1@amd.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 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®