From: sashiko-bot@kernel.org
To: "Alex Deucher" <alexander.deucher@amd.com>,
amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/amdgpu/gfx13: remove frame cntl
Date: Wed, 02 Dec 2026 15:16:53 +0000 [thread overview]
Message-ID: <sashiko-outbox-246068@kernel.org> (raw)
In-Reply-To: <20261202145550.640607-1-alexander.deucher@amd.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/amdgpu/gfx13: secure_submission_supported left true on
kernel GFX ring
--
commit d79275487026a377aa3009f70031350fd94b48c2
Author: Alex Deucher <alexander.deucher@amd.com>
drm/amdgpu/gfx13: remove frame cntl
This commit removes gfx_v13_0_ring_emit_frame_cntl() and the
.emit_frame_cntl callback from gfx_v13_0_ring_funcs_gfx because TMZ on
GFX v13 is supported only via secure queues rather than frames.
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c
> index 7bba7c9247e61..b2f219ceb3d13 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v13_0.c
[ ... ]
> @@ -5530,7 +5519,6 @@ static const struct amdgpu_ring_funcs gfx_v13_0_ring_funcs_gfx = {
> .emit_cntxcntl = gfx_v13_0_ring_emit_cntxcntl,
> .init_cond_exec = gfx_v13_0_ring_emit_init_cond_exec,
> .preempt_ib = gfx_v13_0_ring_preempt_ib,
> - .emit_frame_cntl = gfx_v13_0_ring_emit_frame_cntl,
> .emit_wreg = gfx_v13_0_ring_emit_wreg,
> .emit_reg_wait = gfx_v13_0_ring_emit_reg_wait,
> .emit_reg_write_reg_wait = gfx_v13_0_ring_emit_reg_write_reg_wait,
[Severity: Medium]
Should gfx_v13_0_ring_funcs_gfx also drop .secure_submission_supported = true?
Kernel GFX rings initialize their MQD with prop->tmz_queue = false via
gfx_v13_0_kgq_init_queue() -> amdgpu_ring_init_mqd() ->
amdgpu_ring_to_mqd_prop(), and gfx_v13_0_ring_emit_ib_gfx() does not check
AMDGPU_IB_FLAGS_SECURE. With .emit_frame_cntl removed and
.secure_submission_supported still set to true, when kernel queues are
enabled (e.g. amdgpu.user_queue=0), amdgpu_ib_schedule() accepts IBs with
AMDGPU_IB_FLAGS_SECURE instead of returning -EINVAL and executes them on a
non-TMZ queue without frame protection.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202145550.640607-1-alexander.deucher@amd.com?part=1
prev parent reply other threads:[~2026-12-02 15:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 14:55 [PATCH 1/2] drm/amdgpu/gfx13: remove frame cntl Alex Deucher
2026-12-02 14:55 ` [PATCH 2/2] drm/amdgpu/gfx11: no need to emit frame cntl on rs64 Alex Deucher
2026-12-02 15:16 ` sashiko-bot [this message]
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-246068@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=alexander.deucher@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.