From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79AC3606A31A for ; Wed, 2 Dec 2026 16:22:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Kga5Ctdh Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1453B10E196; Wed, 2 Dec 2026 16:22:11 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1477C10E196 for ; Wed, 2 Dec 2026 16:22:05 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 1F86361F14; Wed, 2 Dec 2026 16:22:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA0761F000C1; Wed, 2 Dec 2026 16:22:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796228523; bh=a3kpd22OYLQdz3rbImFQoqg7MYkRjH0IcnjijcJz0Xw=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=Kga5CtdhwnjbWCTLbD1vSstAna5A5Yc7QXNbHmAWB4AVeIx236AUwD9Qj2Ilzj185 gmDFMNfyUN7iJpIKCXPbwee9A/BInoWzPM4pd2YQiTiE6J4wWCoCPEwo0zUaLonYJA k/l2S3km+En/PKiq93b5zopiU8vacZ/I86jLkOurtbkhrphsCn6VMksrIBXziMN4TN xCPyeynxBeTJ4e82CKFp2lz+YWfhxoEGSkJTGnhx7QgMKk/XKaLfwsKrFnUadL8DS+ P7HeI4n3sZpd20CYI0IJno3PVOO3VYDCuiM17qtZR6yCqCnWoNfgWVoRX87WRZ1iPW +eCJFsQlnpOtQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/3] drm/amdgpu/gfx11: no need to emit frame cntl on rs64 To: "Alex Deucher" , amd-gfx@lists.freedesktop.org In-Reply-To: <20261202160158.1103416-2-alexander.deucher@amd.com> References: <20261202160158.1103416-1-alexander.deucher@amd.com> <20261202160158.1103416-2-alexander.deucher@amd.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 16:22:03 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "amd-gfx" X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 X-Archived-By: 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 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 a= mdgpu_ring *ring, bool start, > { > uint32_t v =3D secure ? FRAME_TMZ : 0; > =20 > + 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 =3D 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 =3D false and this function now skips emitting FRAME_TMZ, those IBs run without TMZ protection. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202160158.1103= 416-1-alexander.deucher@amd.com?part=3D2