AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Alex Deucher" <alexander.deucher@amd.com>,
	amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH 2/3] drm/amdgpu/gfx11: no need to emit frame cntl on rs64
Date: Wed, 02 Dec 2026 16:22:03 +0000	[thread overview]
Message-ID: <sashiko-outbox-246202@kernel.org> (raw)
In-Reply-To: <20261202160158.1103416-2-alexander.deucher@amd.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/amdgpu/gfx11: silent non-secure IBs via
  gfx_v11_0_ring_emit_frame_cntl()
--

commit ee944d0f3fffd1edd62ed6604c3a281717f44cdb
Author: Alex Deucher <alexander.deucher@amd.com>

drm/amdgpu/gfx11: no need to emit frame cntl on rs64

This commit skips emitting PACKET3_FRAME_CONTROL packets in
gfx_v11_0_ring_emit_frame_cntl() when RS64 CP firmware is enabled.

> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
> index 570f0f3a2ea5e..32dd329456d45 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
> @@ -6264,6 +6264,9 @@ static void gfx_v11_0_ring_emit_frame_cntl(struct amdgpu_ring *ring, bool start,
>  {
>  	uint32_t v = secure ? FRAME_TMZ : 0;
>  
> +	if (ring->adev->gfx.rs64_enable)
> +		return;
> +
>  	amdgpu_ring_write(ring, PACKET3(PACKET3_FRAME_CONTROL, 0));
>  	amdgpu_ring_write(ring, v | FRAME_CMD(start ? 0 : 1));
>  }

[Severity: Medium]
Does returning early here allow AMDGPU_IB_FLAGS_SECURE submissions to
execute silently in non-secure mode on the kernel GFX ring when
rs64_enable is true?

gfx_v11_0_ring_funcs_gfx still sets .secure_submission_supported = true,
so amdgpu_ib_schedule() accepts AMDGPU_IB_FLAGS_SECURE IBs instead of
rejecting them with -EINVAL.  Because the kernel GFX queue is initialized
with prop->tmz_queue = false and this function now skips emitting
FRAME_TMZ, those IBs run without TMZ protection.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202160158.1103416-1-alexander.deucher@amd.com?part=2

  reply	other threads:[~2026-12-02 16:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 16:01 [PATCH 1/3] drm/amdgpu/gfx13: remove frame cntl Alex Deucher
2026-12-02 16:01 ` [PATCH 2/3] drm/amdgpu/gfx11: no need to emit frame cntl on rs64 Alex Deucher
2026-12-02 16:22   ` sashiko-bot [this message]
2026-12-02 16:01 ` [PATCH 3/3] drm/amdgpu/gfx12: drop secure_submission_supported 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-246202@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox