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 0564C606A322 for ; Thu, 3 Dec 2026 22:01:37 +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=CBAF/E33 Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 05DB710E7B1; Thu, 3 Dec 2026 22:01:31 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id BEFE4112A0C; Thu, 3 Dec 2026 22:01:24 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id E7F6E601F0; Thu, 3 Dec 2026 22:01:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80DBC1F00A12; Thu, 3 Dec 2026 22:01:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796335283; bh=8gW21/+YvNVGoGksclQxEObiEyECM/++U715hvyvs3g=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=CBAF/E33XYzXF8W8GnLuxDhDocS34MPWtsU6Gio8Cwxu6dZnz3YIMwVb1lWmvWKZU qGIfaiJddN3i1GVgqdDgTKtqZKYe2UUlqWglsIq8eK7hG04MiyGvODIUi7G2B4MRId igPkDeIoAVde5THlKJyqWRe9bqn5l4v6wp3tk7K8/8oUuDqToDX8l12+xLQi1B7q5S ODJwkTBOQnZ8mOIoPQaOcw7qOcIe2dtdD7Lto6+C3A9apERJzLUhS4UYZyrUAGOWgL vpEHo4fydTvmREfbAG5Sao3WA4jGFy+18octOM0gO+ICCp+yfkFz2x1lOT1wvc1t8L hFH+gvlwMlSvA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/2] drm/amdgpu: pass job id as part of amdgpu_vm_update_params To: "Thadeu Lima de Souza Cascardo" Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org In-Reply-To: <20261203-amdgpu_vm_update_funcs_cleanup-v1-2-bc9e80055e41@igalia.com> References: <20261203-amdgpu_vm_update_funcs_cleanup-v1-0-bc9e80055e41@igalia.com> <20261203-amdgpu_vm_update_funcs_cleanup-v1-2-bc9e80055e41@igalia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 22:01:23 +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: - [Low] drm/amdgpu: unused AMDGPU_KERNEL_JOB_ID_VM_UPDATE macro left in amdgpu_job.h -- commit b5d2f9766b7fbe22680f4acb68fcadef25a399a7 Author: Thadeu Lima de Souza Cascardo drm/amdgpu: pass job id as part of amdgpu_vm_update_params This commit stores k_job_id in struct amdgpu_vm_update_params and removes the separate job-ID parameter from the VM update prepare callbacks and amdgpu_vm_sdma_alloc_job() so rollover allocations reuse the original ID. Link: https://lore.kernel.org/amd-gfx/avRl4ajLaCSa8AeG@quatroqueijos.cascar= do.eti.br/ > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c b/drivers/gpu/dr= m/amd/amdgpu/amdgpu_vm_sdma.c > index 9b417bf3ea882..6b76349cf433e 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c [ ... ] > @@ -245,8 +244,7 @@ static int amdgpu_vm_sdma_update(struct amdgpu_vm_upd= ate_params *p, > if (ndw < 32) { > amdgpu_vm_sdma_commit(p, NULL); > =20 > - r =3D amdgpu_vm_sdma_alloc_job(p, count, > - AMDGPU_KERNEL_JOB_ID_VM_UPDATE); > + r =3D amdgpu_vm_sdma_alloc_job(p, count); > if (r) > return r; [Severity: Low] Can AMDGPU_KERNEL_JOB_ID_VM_UPDATE in drivers/gpu/drm/amd/amdgpu/amdgpu_job= .h be removed now? This rollover call in amdgpu_vm_sdma_update() was its only remaining user, and the AMDGPU_KERNEL_JOB_ID_* macros use explicit numeric values so dropping it won't renumber the others. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-amdgpu_vm_= update_funcs_cleanup-v1-0-bc9e80055e41@igalia.com?part=3D2