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 DC20C606A322 for ; Fri, 4 Dec 2026 15:50:42 +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=D6HaEiwY Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A322C10EC16; Fri, 4 Dec 2026 15:50:37 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8FC2C10EC16 for ; Fri, 4 Dec 2026 15:50:31 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 8270E622AE; Fri, 4 Dec 2026 15:50:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24D3A1F00934; Fri, 4 Dec 2026 15:50:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796399430; bh=YjS5rB4QGT3m5LHpJSwvQTRkxBeBQBKlFGxBU+ETJmY=; h=From:Subject:Reply-To:To:In-Reply-To:References:Date; b=D6HaEiwYuoaqFN2zMH2PGR7vAOEPolssCdnu49L5J65/5tdpT4qRCh8CIr8BfjySz dzsbjdWs2YMb7VZbaoMbrVNbMpQmRhnXexEswqnEHWBr4H/dwHEu/obxXnN7ytlSl3 zIPyastEkXOgHpIGG3VKvoEZaE1KgFH0ypISur8pWmkEAAqdGvl66Wt8fUKalF9xDe wR+OJb31cGFPa3z3ytSUWURafrUMKoa0IyQw0cWSHcxi/41HKC2IluOKvTnK6hnz7b 8yaRYl1P1xrw/ZZI3249gQw8BCuu6cZYN+3TJKgwEH7QO4Sd9xzjSHecfDrdBnRWmm 12rarAmU57TRw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [RFC 04/11] drm/xe/pf: Enable VF debug logging only on supported GUC versions To: "Satyanarayana K V P" , intel-xe@lists.freedesktop.org In-Reply-To: <20261204144712.3520695-17-satyanarayana.k.v.p@intel.com> References: <20261204144712.3520695-13-satyanarayana.k.v.p@intel.com> <20261204144712.3520695-17-satyanarayana.k.v.p@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 15:50:29 +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: - [Low] drm/xe/pf: malformed kernel-doc on struct xe_gt_sriov_pf_debug_log_vf - [Low] drm/xe/pf: redundant check and xe_gt_notice() in pf_check_vf_debug_support() -- commit df13c16220858cfac4be0824fdff666584c2548c Author: Satyanarayana K V P drm/xe/pf: Enable VF debug logging only on supported GUC versions This commit checks the GuC firmware version during PF late initialization and disables VF debug logging when the version is older than 70.84.0. > diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf.c b/drivers/gpu/drm/xe/xe_= gt_sriov_pf.c > index 7868056841b3c..d3564f567be7f 100644 > --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf.c > +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf.c [ ... ] > @@ -64,6 +65,17 @@ static void pf_fini_workers(struct xe_gt *gt) > } > } > =20 > +static void pf_check_vf_debug_support(struct xe_gt *gt) > +{ > + struct xe_guc *guc =3D >->uc.guc; > + > + if (IS_SRIOV_PF(gt_to_xe(gt)) && > + !GUC_FIRMWARE_VER_AT_LEAST(guc, 70, 84, 0)) { > + xe_gt_notice(gt, "VF Log needs GuC version >=3D 70.84.0\n"); > + gt->sriov.pf.vf_debug_log.disabled =3D true; > + } > +} [Severity: Low] Is the runtime IS_SRIOV_PF() check needed here? The sole caller, pf_init_late(), already enforces xe_gt_assert(gt, IS_SRIOV_PF(xe)), and sibling helpers like pf_fini_workers() use xe_gt_assert() instead. Also, should this log with xe_gt_sriov_notice() rather than xe_gt_notice() so it carries the same SR-IOV prefix as the other messages in this file? [ ... ] > diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h b/drivers/gpu/drm/= xe/xe_gt_sriov_pf_types.h > index 6296483c44ec3..8d32da458f04a 100644 > --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h > +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_types.h > @@ -43,6 +43,15 @@ struct xe_gt_sriov_pf_workers { > struct work_struct restart; > }; > =20 > +/** @vf_debug_log: VF debug log capture support */ > +struct xe_gt_sriov_pf_debug_log_vf { > + /** > + * @vf_debug_log.disabled: flag indicating if debug logging support > + * was turned off due to missing prerequisites. > + */ > + bool disabled; > +}; [Severity: Low] Will scripts/kernel-doc silently skip struct xe_gt_sriov_pf_debug_log_vf? As a standalone struct it needs a multi-line "/**\n * struct ..." header like struct xe_gt_sriov_pf_workers above it rather than single-line member syntax. The member tag should also be @disabled instead of @vf_debug_log.disabled, otherwise scripts/kernel-doc -none -Werror (under CONFIG_DRM_XE_WERROR) will reject it once the struct header is parsed. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204144712.3520= 695-13-satyanarayana.k.v.p@intel.com?part=3D4