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 9CBFB606A320 for ; Mon, 30 Nov 2026 14:58:48 +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=ojHpjgoO Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0143E10F13C; Mon, 30 Nov 2026 14:58:43 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2B2AE10F14D; Mon, 30 Nov 2026 14:58:37 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id A41916060B; Mon, 30 Nov 2026 14:58:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 066111F0089F; Mon, 30 Nov 2026 14:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796050716; bh=MiXZg6a5SxXxlHVp3a/s8ZTz27luxvu/Yl4VCSp4eL4=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=ojHpjgoO+omPA6Nf1myVtEeIZ6PRSQDZPdipncbr5N+p/5xM5lGCFxPJcddUyHFE2 SP0JgBi4lW5LAnXfN4n/vg1Wamrt2LHFuxZNr3Eusb2UhJDDopF7xY3uRUdvsoyt8F 88U/POgByMVTte4CMD47mkz+DcGTaLPtI8zGlrYOdZTBHTWhidP3e1MNxrvpA6Ztrr AeXwxu5AS7m+bkfGg+Mlhe0jkLLbgb9o5OjQFq27kwV3XC+7yBgmkB2FouXejQ7MGD q41oMbGf5d2eiy3szq/WhsS6xxhnQmJwbD+BDGBEQ/rG+H7yVbw4K/GtgSTP5Qftlu bW4bvqW06RyIQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [RESEND 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 14:58:35 +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 b9e3288ae5fab2693604cd2fa96cf9a0518f82d8 Author: Lin Huiyi 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 *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] 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)? --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/tencent_676B6B48905= 7421A3AB8F3CC598DA5743607@qq.com?part=3D1