From: sashiko-bot@kernel.org
To: "Frank Min" <Frank.Min@amd.com>, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/9] drm/amdgpu: skip vm inv for kiq ring
Date: Fri, 04 Dec 2026 14:41:03 +0000 [thread overview]
Message-ID: <sashiko-outbox-249996@kernel.org> (raw)
In-Reply-To: <20261204142408.988734-1-Frank.Min@amd.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] drm/amdgpu: amdgpu_gmc_allocate_vm_inv_eng() only skips
kiq[0] ring
- [Low] drm/amdgpu: commit message repeats subject without rationale
--
commit b1355b6a846065fc7eb680a37bdb10989818e156
Author: Frank Min <Frank.Min@amd.com>
> drm/amdgpu: skip vm inv for kiq ring
>
> skip vm inv for kiq ring
>
> Signed-off-by: Frank Min <Frank.Min@amd.com>
> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
[Severity: Low]
The commit body repeats the subject line without explaining why this change
is needed or why it is safe. Could it briefly note that skipping KIQ
conserves limited per-GFXHUB VM invalidation engines and is safe because
KIQ rings do not implement emit_vm_flush or use ring->vm_inv_eng?
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> index c3732a61f1c90..12165f20a2c73 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> @@ -669,7 +669,8 @@ int amdgpu_gmc_allocate_vm_inv_eng(struct amdgpu_device *adev)
> if (ring == &adev->mes.ring[0] ||
> ring == &adev->mes.ring[1] ||
> ring == &adev->umsch_mm.ring ||
> - ring == &adev->cper.ring_buf)
> + ring == &adev->cper.ring_buf ||
> + ring == &adev->gfx.kiq[0].ring)
> continue;
>
> /* Skip if the ring is a shared ring */
[Severity: Medium]
Does checking &adev->gfx.kiq[0].ring miss KIQ rings on secondary XCCs?
On multi-XCC devices such as GC 9.4.3, gfx_v9_4_3_sw_init() registers a KIQ
ring for every xcc_id via amdgpu_gfx_kiq_init_ring(). Only skipping index 0
leaves kiq[1..num_xcc-1].ring consuming a VM invalidation engine on their
GFXHUB, risking -EINVAL during probe if per-GFXHUB engines run out.
Checking ring->funcs->type == AMDGPU_RING_TYPE_KIQ would skip KIQ rings
across all XCC instances.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204142408.988734-1-Frank.Min@amd.com?part=1
next prev parent reply other threads:[~2026-12-04 14:41 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 14:24 [PATCH 1/9] drm/amdgpu: skip vm inv for kiq ring Frank Min
2026-12-04 14:24 ` [PATCH 2/9] drm/amdgpu: disable gfx 13 pipe 1 ring Frank Min
2026-12-04 14:55 ` sashiko-bot
2026-12-04 16:05 ` Alex Deucher
2026-12-04 14:24 ` [PATCH 3/9] drm/amdgpu: update table info retrieval from discovery binary Frank Min
2026-12-04 15:14 ` sashiko-bot
2026-12-04 16:19 ` Alex Deucher
2026-12-04 14:24 ` [PATCH 4/9] drm/amdgpu: add lsdma v8 fw query interface Frank Min
2026-12-04 15:25 ` sashiko-bot
2026-12-04 16:21 ` Alex Deucher
2026-12-04 14:24 ` [PATCH 5/9] drm/amdgpu: add lsdma v8 fw loading support Frank Min
2026-12-04 15:47 ` sashiko-bot
2026-12-04 14:24 ` [PATCH 6/9] drm/amdgpu: Fix system aperture size for gfx13 Frank Min
2026-12-04 16:01 ` sashiko-bot
2026-12-04 14:24 ` [PATCH 7/9] drm/amdgpu: remove the unused ring parameter in update_spm_vmid() " Frank Min
2026-12-04 16:03 ` Alex Deucher
2026-12-04 16:11 ` sashiko-bot
2026-12-04 14:24 ` [PATCH 8/9] drm/amdgpu: enable uni-mes " Frank Min
2026-12-04 16:41 ` sashiko-bot
2026-12-04 17:24 ` Alex Deucher
2026-12-04 14:24 ` [PATCH 9/9] drm/amdgpu: fix mutex unlock position for ucode loading Frank Min
2026-12-04 16:12 ` Alex Deucher
2026-12-04 16:52 ` sashiko-bot
2026-12-04 14:41 ` sashiko-bot [this message]
2026-12-04 16:16 ` [PATCH 1/9] drm/amdgpu: skip vm inv for kiq ring Alex Deucher
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-249996@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Min@amd.com \
--cc=amd-gfx@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