From: sashiko-bot@kernel.org
To: "Thadeu Lima de Souza Cascardo" <cascardo@igalia.com>
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/amdgpu: pass job id as part of amdgpu_vm_update_params
Date: Thu, 03 Dec 2026 22:01:23 +0000 [thread overview]
Message-ID: <sashiko-outbox-248719@kernel.org> (raw)
In-Reply-To: <20261203-amdgpu_vm_update_funcs_cleanup-v1-2-bc9e80055e41@igalia.com>
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 <cascardo@igalia.com>
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.cascardo.eti.br/
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c b/drivers/gpu/drm/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_update_params *p,
> if (ndw < 32) {
> amdgpu_vm_sdma_commit(p, NULL);
>
> - r = amdgpu_vm_sdma_alloc_job(p, count,
> - AMDGPU_KERNEL_JOB_ID_VM_UPDATE);
> + r = 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.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-amdgpu_vm_update_funcs_cleanup-v1-0-bc9e80055e41@igalia.com?part=2
next prev parent reply other threads:[~2026-12-03 22:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 21:41 [PATCH 0/2] drm/amdgpu: Small cleanup for amdgpu_vm_update_funcs Thadeu Lima de Souza Cascardo
2026-12-03 21:41 ` [PATCH 1/2] drm/amdgpu: make amdgpu_vm_update_funcs commit return void Thadeu Lima de Souza Cascardo
2026-12-04 9:52 ` Christian König
2026-12-04 14:41 ` Alex Deucher
2026-12-03 21:41 ` [PATCH 2/2] drm/amdgpu: pass job id as part of amdgpu_vm_update_params Thadeu Lima de Souza Cascardo
2026-12-03 22:01 ` sashiko-bot [this message]
2026-12-04 9:53 ` Christian König
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-248719@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=amd-gfx@lists.freedesktop.org \
--cc=cascardo@igalia.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
/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