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 F2E1C606A32C for ; Fri, 4 Dec 2026 15:22:14 +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=cjlIKJi8 Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B780010EBEC; Fri, 4 Dec 2026 15:22:09 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7302010EBEC for ; Fri, 4 Dec 2026 15:22:03 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 829A460087; Fri, 4 Dec 2026 15:22:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 253051F00897; Fri, 4 Dec 2026 15:22:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796397722; bh=yWZedLiewMaRDtckCu1AAZSr3uRldUcXA33v7LGkCWc=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=cjlIKJi88re0JVY3LV6jaMsq3YT4A3DZDDc9/t0tboX43uk65u5arj01OGI2ZnLc2 GNpoPbOSWKK15Qxif7USGVvI2ATfDIrwtdu3kes9RwYljZ7hB8O5iT30l7hSAUl//7 jdDIUcxKBh9sh4/pM3l2flCA6cyZjZXGkEhTfbMRUk9HFBYCZG6To+iVaNPvFnsQPK u+fyMcblXr1JLJ24pEeAvrEfGnQEn3sZuEP45uHo+G5OHgbXCDAgqKGr3ruhvu6L6D DMzyjLKp9y68VIYu0R3nhpFBApousAcXXiDU9TOh1YuLkZx+m8qYl8yRHMmq1uiZ9K W8Jmp/O+d1EPg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [RFC 02/11] drm/xe/vf: Enable VF debug logging only on supported GUC versions To: "Satyanarayana K V P" , intel-xe@lists.freedesktop.org In-Reply-To: <20261204144712.3520695-15-satyanarayana.k.v.p@intel.com> References: <20261204144712.3520695-13-satyanarayana.k.v.p@intel.com> <20261204144712.3520695-15-satyanarayana.k.v.p@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 15:22:01 +0000 X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sashiko-reviews@lists.linux.dev Sender: "Intel-xe" X-Spam-Status: No, score=-11.2 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 2 potential issues to consider: - [Medium] drm/xe/vf: per-GT xe_sriov_vf_debug_log_init_early() only checks root GT - [Low] drm/xe/vf: missing feature prefix and newline in xe_sriov_notice() -- commit 3558c9475bd8ba4a0b69aee25c2cd5a6869ae526 Author: Satyanarayana K V P drm/xe/vf: Enable VF debug logging only on supported GUC versions This commit adds an early GuC ABI version check (>=3D 1.47.0) during VF GuC initialization to disable SR-IOV VF debug logging on unsupported firmware versions, along with a helper to query whether it is supported. > diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c > index 00df83460022d..b8939f04ea24c 100644 > --- a/drivers/gpu/drm/xe/xe_guc.c > +++ b/drivers/gpu/drm/xe/xe_guc.c [ ... ] > @@ -830,6 +831,8 @@ int xe_guc_init(struct xe_guc *guc) > if (ret) > goto out; > =20 > + xe_sriov_vf_debug_log_init_early(xe); > + > ret =3D xe_guc_ct_init(&guc->ct); > if (ret) > goto out; [Severity: Medium] Should xe_sriov_vf_debug_log_init_early() check each GT rather than being called per GT while hardcoding xe_root_mmio_gt(xe)? xe_device_probe() invokes xe_gt_init() -> xe_uc_init() -> xe_guc_init() once per GT, so on multi-GT VFs this runs repeatedly and always inspects only the root GT. If the root GT runs GuC ABI >=3D 1.47.0 while a media or remote GT loads an older GuC binary, xe_sriov_vf_debug_log_supported() stays true and allows unsupported debug-log queries on that GT. When the root GT itself is below 1.47.0, probe also re-checks it on every subsequent GT and emits duplicate notices. Checking all GTs once at device level after VF bootstrap, or tracking support per GT, would avoid both issues. > diff --git a/drivers/gpu/drm/xe/xe_sriov_vf.c b/drivers/gpu/drm/xe/xe_sri= ov_vf.c > index 29894bd081c04..f2e519327f76d 100644 > --- a/drivers/gpu/drm/xe/xe_sriov_vf.c > +++ b/drivers/gpu/drm/xe/xe_sriov_vf.c [ ... ] > +void xe_sriov_vf_debug_log_init_early(struct xe_device *xe) > +{ > + struct xe_gt *gt =3D xe_root_mmio_gt(xe); > + struct xe_uc_fw_version guc_version; > + > + xe_gt_sriov_vf_guc_versions(gt, NULL, &guc_version); > + if (MAKE_GUC_VER_STRUCT(guc_version) < MAKE_GUC_VER(1, 47, 0)) { > + xe_sriov_notice(xe, "requires GuC ABI >=3D 1.47.0, but only %u.%u.%u f= ound", > + guc_version.major, guc_version.minor, guc_version.patch); [Severity: Low] Is this xe_sriov_notice() missing both a feature prefix (such as "debug logging disabled: ") and a trailing newline? xe_sriov_notice() only prepends the VF prefix and does not append a newline, unlike xe_sriov_vf_migration_disable() which wraps its message with "migration disabled: %pV\n". As written, dmesg gets an unterminated line that does not mention which feature was disabled. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204144712.3520= 695-13-satyanarayana.k.v.p@intel.com?part=3D2