All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Lin Huiyi" <xinghui79@qq.com>
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [RESEND PATCH] drm/amdgpu: Unwind UALink peer GART mappings on sw_init failure
Date: Mon, 30 Nov 2026 14:58:35 +0000	[thread overview]
Message-ID: <sashiko-outbox-241451@kernel.org> (raw)
In-Reply-To: <tencent_676B6B489057421A3AB8F3CC598DA5743607@qq.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/amdgpu: unused label out_sdma_entities_fini in
  amdgpu_ualink_sw_init()
--

commit b9e3288ae5fab2693604cd2fa96cf9a0518f82d8
Author: Lin Huiyi <xinghui79@qq.com>

drm/amdgpu: Unwind UALink peer GART mappings on sw_init failure

This commit initializes all peer mutexes before mapping GART ranges and
calls amdgpu_ualink_peer_remote_fini() on the amdgpu_ualink_sw_init()
failure path so partially created peer GART mappings are unwound.

> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c
> index fa4c3d27d2720..cf794c0feb3df 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c

[ ... ]

> @@ -6345,11 +6350,13 @@ int amdgpu_ualink_sw_init(struct amdgpu_device *adev)
>  
>  	r = amdgpu_ualink_peer_remote_init(adev);
>  	if (r)
> -		goto out_sdma_entities_fini;
> +		goto out_peer_remote_fini;
>  
>  	dev_dbg(adev->dev, "ualink sw init succeed\n");
>  	return 0;
>  
> +out_peer_remote_fini:
> +	amdgpu_ualink_peer_remote_fini(adev);
>  out_sdma_entities_fini:
>  	amdgpu_ualink_sdma_entities_fini(adev);
>  out_npa_unmap:

[Severity: Medium]
Does replacing the only jump to out_sdma_entities_fini leave that label
unused, triggering a -Wunused-label warning (and a build failure with
WERROR enabled)?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/tencent_676B6B489057421A3AB8F3CC598DA5743607@qq.com?part=1

  reply	other threads:[~2026-11-30 14:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 14:50 [RESEND PATCH] drm/amdgpu: Unwind UALink peer GART mappings on sw_init failure Lin Huiyi
2026-11-30 14:58 ` sashiko-bot [this message]
2026-11-30 15:11 ` Philip Yang
2026-11-30 15:15   ` [PATCH v3] " Lin Huiyi
2026-12-01 17:22     ` Philip Yang

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=sashiko-outbox-241451@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=xinghui79@qq.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.