From: sashiko-bot@kernel.org
To: "Frank Min" <Frank.Min@amd.com>, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH 4/9] drm/amdgpu: add lsdma v8 fw query interface
Date: Fri, 04 Dec 2026 15:25:49 +0000 [thread overview]
Message-ID: <sashiko-outbox-250093@kernel.org> (raw)
In-Reply-To: <20261204142408.988734-4-Frank.Min@amd.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] drm/amdgpu: build failure in amdgpu_kms.c from missing
amdgpu_lsdma fields
--
commit a926f15d698b8e97f1a0c23946c2b960f6427223
Author: Frank Min <Frank.Min@amd.com>
drm/amdgpu: add lsdma v8 fw query interface
This commit adds the AMDGPU_INFO_FW_LSDMA firmware query subquery and
exposes LSDMA firmware and feature versions through amdgpu_firmware_info()
and debugfs.
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> index 21ca29ff9eb78..a8d2acfabbd0e 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> @@ -335,6 +335,10 @@ static int amdgpu_firmware_info(struct drm_amdgpu_info_firmware *fw_info,
> fw_info->ver = adev->sdma.instance[query_fw->index].fw_version;
> fw_info->feature = adev->sdma.instance[query_fw->index].feature_version;
> break;
> + case AMDGPU_INFO_FW_LSDMA:
> + fw_info->ver = adev->lsdma.fw_version;
> + fw_info->feature = adev->lsdma.feature_version;
> + break;
> case AMDGPU_INFO_FW_SOS:
> fw_info->ver = adev->psp.sos.fw_version;
> fw_info->feature = adev->psp.sos.feature_version;
> @@ -2022,6 +2026,16 @@ static int amdgpu_debugfs_firmware_info_show(struct seq_file *m, void *unused)
> i, fw_info.feature, fw_info.ver);
> }
>
> + /* LSDMA */
> + if (adev->lsdma.fw) {
> + query_fw.fw_type = AMDGPU_INFO_FW_LSDMA;
> + ret = amdgpu_firmware_info(&fw_info, &query_fw, adev);
> + if (ret)
> + return ret;
> + seq_printf(m, "LSDMA feature version: %u, firmware version: 0x%08x\n",
> + fw_info.feature, fw_info.ver);
> + }
> +
> /* VCN */
> query_fw.fw_type = AMDGPU_INFO_FW_VCN;
> ret = amdgpu_firmware_info(&fw_info, &query_fw, adev);
[Severity: High]
Does this fail to build because struct amdgpu_lsdma does not yet define
fw_version, feature_version, or fw?
In drivers/gpu/drm/amd/amdgpu/amdgpu_lsdma.h, struct amdgpu_lsdma only
has lock, funcs, and inst_mask here, so building amdgpu_kms.c fails and
breaks git bisect.
Those fields are added in the next commit "drm/amdgpu: add lsdma v8 fw
loading support", so moving that patch before this one would keep the
series bisectable.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204142408.988734-1-Frank.Min@amd.com?part=4
next prev parent reply other threads:[~2026-12-04 15:26 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 [this message]
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 ` [PATCH 1/9] drm/amdgpu: skip vm inv for kiq ring sashiko-bot
2026-12-04 16:16 ` 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-250093@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.