Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Satyanarayana K V P" <satyanarayana.k.v.p@intel.com>,
	intel-xe@lists.freedesktop.org
Subject: Re: [RFC 04/11] drm/xe/pf: Enable VF debug logging only on supported GUC versions
Date: Fri, 04 Dec 2026 15:50:29 +0000	[thread overview]
Message-ID: <sashiko-outbox-250134@kernel.org> (raw)
In-Reply-To: <20261204144712.3520695-17-satyanarayana.k.v.p@intel.com>

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 <satyanarayana.k.v.p@intel.com>

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)
>  	}
>  }
>  
> +static void pf_check_vf_debug_support(struct xe_gt *gt)
> +{
> +	struct xe_guc *guc = &gt->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 >= 70.84.0\n");
> +		gt->sriov.pf.vf_debug_log.disabled = 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;
>  };
>  
> +/** @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.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204144712.3520695-13-satyanarayana.k.v.p@intel.com?part=4

  reply	other threads:[~2026-12-04 15:50 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 14:47 [RFC 00/11] Enable GuC log and debug error state capture for VF Satyanarayana K V P
2026-12-04 14:47 ` [RFC 01/11] drm/xe/pf: Allow VF access to GuC timestamp registers Satyanarayana K V P
2026-12-04 15:09   ` sashiko-bot
2026-12-04 14:47 ` [RFC 02/11] drm/xe/vf: Enable VF debug logging only on supported GUC versions Satyanarayana K V P
2026-12-04 15:22   ` sashiko-bot
2026-12-04 14:47 ` [RFC 03/11] drm/xe/guc: Add KLV definitions for GuC log and debug state capture Satyanarayana K V P
2026-12-04 15:34   ` sashiko-bot
2026-12-04 14:47 ` [RFC 04/11] drm/xe/pf: Enable VF debug logging only on supported GUC versions Satyanarayana K V P
2026-12-04 15:50   ` sashiko-bot [this message]
2026-12-04 14:47 ` [RFC 05/11] drm/xe/pf: Enable VF Guc log and debug state capture Satyanarayana K V P
2026-12-04 16:04   ` sashiko-bot
2026-12-04 14:47 ` [RFC 06/11] drm/xe/vf: Query and allocate VF GuC log and debug capture buffers Satyanarayana K V P
2026-12-04 16:31   ` sashiko-bot
2026-12-04 14:47 ` [RFC 07/11] drm/xe/vf: Register VF GuC log and debug state " Satyanarayana K V P
2026-12-04 17:04   ` sashiko-bot
2026-12-04 14:47 ` [RFC 08/11] drm/xe/vf: Initialize GuC logging buffers during GuC setup Satyanarayana K V P
2026-12-04 17:30   ` sashiko-bot
2026-12-04 14:47 ` [RFC 09/11] drm/xe/guc: Register VF-accessible registers for error capture Satyanarayana K V P
2026-12-04 17:52   ` sashiko-bot
2026-12-04 14:47 ` [RFC 10/11] drm/xe/guc: Handle GuC debug state capture notifications for VF Satyanarayana K V P
2026-12-04 18:13   ` sashiko-bot
2026-12-04 14:47 ` [RFC 11/11] drm/xe/guc: Process VF GuC error state captures Satyanarayana K V P
2026-12-04 18:41   ` sashiko-bot
2026-12-04 14:56 ` ✗ CI.checkpatch: warning for Enable GuC log and debug error state capture for VF Patchwork
2026-12-04 14:58 ` ✓ CI.KUnit: success " Patchwork
2026-12-04 15:34 ` ✗ Xe.CI.BAT: failure " Patchwork

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-250134@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=satyanarayana.k.v.p@intel.com \
    /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