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 6D68C606A31A for ; Wed, 2 Dec 2026 15:17:07 +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=FLAgNLLc Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0344B10E5BD; Wed, 2 Dec 2026 15:17:02 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5F40D1122E9 for ; Wed, 2 Dec 2026 15:16:55 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 6BBD6622D9; Wed, 2 Dec 2026 15:16:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEA3F1F000C1; Wed, 2 Dec 2026 15:16:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796224613; bh=Ug8iUlvVyTTVjkFo9KCRPC7xHSjYjVKjMqvcXaW7tck=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=FLAgNLLcAlf0jXoj54jWc6C+PMn6QRoyWWaLrlJhb1E7LZzjRAu4IWs+IrVW+b9Sj zX7gWTnYy8yORS0eN+zjnmnuri4om6vdEh4j1t69gV4kuZ4hwqXmfgK3dztsRODThs l0h3aJ2Sx/cCFLmpjyW/WZVZbkrup56XySzK3FnVDsBMDLZcgBIq7fBO3luNVGchJh HwvzO8JwQzIFxJe00h5Upv7rL+bxgr3SyaJ516uwI5Fggo5lYJ/BccRLpFKI0WU+L/ CYSpmZl0cYeyXlGG8l5qPB8wWS6z1Wej0vyo1m/Cgy4Ec1Ow09sF6PKwftQA9kzGrv aAcw3b9SiC1Kg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 1/2] drm/amdgpu/gfx13: remove frame cntl To: "Alex Deucher" , amd-gfx@lists.freedesktop.org In-Reply-To: <20261202145550.640607-1-alexander.deucher@amd.com> References: <20261202145550.640607-1-alexander.deucher@amd.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 15:16:53 +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/gfx13: secure_submission_supported left true on kernel GFX ring -- commit d79275487026a377aa3009f70031350fd94b48c2 Author: Alex Deucher 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_rin= g_funcs_gfx =3D { > .emit_cntxcntl =3D gfx_v13_0_ring_emit_cntxcntl, > .init_cond_exec =3D gfx_v13_0_ring_emit_init_cond_exec, > .preempt_ib =3D gfx_v13_0_ring_preempt_ib, > - .emit_frame_cntl =3D gfx_v13_0_ring_emit_frame_cntl, > .emit_wreg =3D gfx_v13_0_ring_emit_wreg, > .emit_reg_wait =3D gfx_v13_0_ring_emit_reg_wait, > .emit_reg_write_reg_wait =3D gfx_v13_0_ring_emit_reg_write_reg_wait, [Severity: Medium] Should gfx_v13_0_ring_funcs_gfx also drop .secure_submission_supported =3D = true? Kernel GFX rings initialize their MQD with prop->tmz_queue =3D 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=3D0), 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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202145550.6406= 07-1-alexander.deucher@amd.com?part=3D1