From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C66FE606A320 for ; Mon, 30 Nov 2026 15:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=G/NnpTnA Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 33DA410F09F; Mon, 30 Nov 2026 15:35:18 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1542D10E8F7; Mon, 30 Nov 2026 15:35:12 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 5724B61EDB; Mon, 30 Nov 2026 15:35:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB2161F000C1; Mon, 30 Nov 2026 15:35:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796052910; bh=tcOswaUPnocHVE83bZDCxiKvb3pKDePVeoSKJZSlwSg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=G/NnpTnAOBWqtkiE+/9XfJ4mKfd6OrAFUW2QtHvlzg7eSJD/fuhDFajbXMy1D6TWf VkuOHN1UTszm01pyzQKj/MAjP9baasdBQGX6CUTE+GDBGBG5SJWEQgnpQ8bDtLDJVV k6QQbc43zUvlsKThC1GO22dMLCwESywfm5V9+AdrjBRD5oT/AcFU4ch7ALcfueaVWZ 1EAMGq8C4D/3dkpKLpfPrSyvLZ/2y6twGviGLwXOVQUFlvyUjlNbi1st6RHyqMP9qF B3XLVjR+TvvLejAzRwc8LB1T+KnA3G6Dzo/PCnJFe0I6NwLZaQuAHhUubfj0QGI2sh eifTW1JFCzv4A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] drm/amdgpu: Unwind UALink peer GART mappings on sw_init failure To: "Lin Huiyi" Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 15:35:10 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "dri-devel" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: 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 90ff0905f06f0ca6521bbd25d88d5438f22effc9 Author: Lin Huiyi drm/amdgpu: Unwind UALink peer GART mappings on sw_init failure This commit initializes all peer mutexes before mapping peer GART ranges and calls amdgpu_ualink_peer_remote_fini() on failure in amdgpu_ualink_sw_init(). > 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 *a= dev) > =20 > r =3D amdgpu_ualink_peer_remote_init(adev); > if (r) > - goto out_sdma_entities_fini; > + goto out_peer_remote_fini; > =20 > dev_dbg(adev->dev, "ualink sw init succeed\n"); > return 0; > =20 > +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] Should the out_sdma_entities_fini label be removed now that its only caller jumps to out_peer_remote_fini? Leaving it in place triggers a -Wunused-label compiler warning and breaks builds with -Werror enabled. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/tencent_68AD21355F7= D6938E09033A5356ED3E9AC09@qq.com?part=3D1