Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Michael J. Ruhl" <michael.j.ruhl@intel.com>,
	intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v23 15/19] drm/xe/vsec: Support late bind fw information
Date: Tue, 24 Nov 2026 02:31:15 +0000	[thread overview]
Message-ID: <sashiko-outbox-230408@kernel.org> (raw)
In-Reply-To: <20261124020752.30551-36-michael.j.ruhl@intel.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/xe/vsec: missing wait_for_fw() in xe_pmt_discovery_read()
--

commit 2d33713440046c92de32fdf5a3aae46ed10a57ca
Author: Michael J. Ruhl <michael.j.ruhl@intel.com>

drm/xe/vsec: Support late bind fw information

This commit defers Crescent Island VSEC registration to a delayed work
item until OOBMSM firmware is ready and adds firmware readiness waits to
PMT access callbacks.

> diff --git a/drivers/gpu/drm/xe/xe_vsec.c b/drivers/gpu/drm/xe/xe_vsec.c
> index 77fbb1257e09f..56aab437777ab 100644
> --- a/drivers/gpu/drm/xe/xe_vsec.c
> +++ b/drivers/gpu/drm/xe/xe_vsec.c

[ ... ]

> @@ -474,6 +537,10 @@ static int xe_pmt_read_reg(struct device *dev, u32 guid, u32 *reg, u32 offset)
>  	disc_addr += inst + offset;
>  
>  	xe_pm_runtime_get(xe);
> +	if (!wait_for_fw(xe)) {
> +		ret = -ENODATA;
> +		goto runtime_exit;
> +	}
>  
>  	scoped_guard(mutex, &xe->pmt.lock) {
>  		xe->soc_remapper.set_telem_region(xe, CRI_IDX_TELEM_DISCOVERY);
> @@ -481,6 +548,7 @@ static int xe_pmt_read_reg(struct device *dev, u32 guid, u32 *reg, u32 offset)
>  		*reg = readl(disc_addr);
>  	}
>  
> +runtime_exit:
>  	xe_pm_runtime_put(xe);
>  
>  	drm_dev_exit(idx);

[Severity: Medium]
Should xe_pmt_discovery_read() also call wait_for_fw(xe) before reading
from CRI_IDX_TELEM_DISCOVERY?

Although cri_late_bind_probe_work() waits for OOBMSM firmware before
registering the VSEC auxiliary devices initially, those devices remain
registered across D3cold and system suspend/resume.  When the GPU resumes
from D3cold, xe_pm_runtime_resume() -> xe_late_bind_pm_resume() queues
the late-binding firmware reload asynchronously on late_bind.wq, so the
device becomes runtime-active before the firmware finishes loading.  If
pmt_telemetry or pmt_crashlog probes or rebinds during that window,
pmt_get_headers() -> xe_pmt_discovery_read() passes
xe_pm_runtime_get_if_active(xe) and reads discovery headers from
CRI_IDX_TELEM_DISCOVERY before the firmware is running.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261124020752.30551-21-michael.j.ruhl@intel.com?part=15

  reply	other threads:[~2026-11-24  2:31 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  2:07 [PATCH v23 00/19] Crescent Island PMT support Michael J. Ruhl
2026-11-24  2:07 ` [PATCH v23 01/19] platform/x86/intel/pmt: Introduce a callback for discovery data Michael J. Ruhl
2026-11-24  2:07 ` [PATCH v23 02/19] platform/x86/intel/pmt: Use the pre-populated header info for crashlog Michael J. Ruhl
2026-11-24  2:07 ` [PATCH v23 03/19] drm/xe/vsec: VSEC requires soc-remapper Michael J. Ruhl
2026-11-24  2:07 ` [PATCH v23 04/19] drm/xe/vsec: Do not register BMG PMT for VF Michael J. Ruhl
2026-11-24  2:07 ` [PATCH v23 05/19] drm/xe/vsec: Correct locking order Michael J. Ruhl
2026-11-24  2:07 ` [PATCH v23 06/19] drm/xe/vsec: Use correct pm state get Michael J. Ruhl
2026-11-24  2:07 ` [PATCH v23 07/19] drm/xe/vsec: Add DOC text for VSEC Michael J. Ruhl
2026-11-24  2:08 ` [PATCH v23 08/19] drm/xe/vsec: Support possible hotplug exit Michael J. Ruhl
2026-11-24  2:08 ` [PATCH v23 09/19] drm/xe/vsec: Refactor BattleMage PMT defines Michael J. Ruhl
2026-11-24  2:08 ` [PATCH v23 10/19] drm/xe/vsec: Update VSEC probe order Michael J. Ruhl
2026-11-24  2:08 ` [PATCH v23 11/19] drm/xe/vsec: Add base_offset to allow for more flexibilty Michael J. Ruhl
2026-11-24  2:08 ` [PATCH v23 12/19] drm/xe/vsec: Support Crescent Island PMT Michael J. Ruhl
2026-11-24  2:08 ` [PATCH v23 13/19] drm/xe/vsec: Crescent Island PMT decode Michael J. Ruhl
2026-11-24  2:08 ` [PATCH v23 14/19] drm/xe/vsec: Crescent Island PMT callbacks Michael J. Ruhl
2026-11-24  2:08 ` [PATCH v23 15/19] drm/xe/vsec: Support late bind fw information Michael J. Ruhl
2026-11-24  2:31   ` sashiko-bot [this message]
2026-11-24  2:08 ` [PATCH v23 16/19] drm/xe/vsec: Add PMT GUID internal access Michael J. Ruhl
2026-11-24  2:08 ` [PATCH v23 17/19] drm/xe/vsec: Update PMT " Michael J. Ruhl
2026-11-24  2:08 ` [PATCH v23 18/19] drm/xe/vsec: Refactor platform check Michael J. Ruhl
2026-11-24  2:08 ` [PATCH v23 19/19] drm/xe/vsec: Support survivability mode for CRI Michael J. Ruhl
2026-11-24  2:17 ` ✗ CI.checkpatch: warning for Crescent Island PMT support (rev24) Patchwork
2026-11-24  2:19 ` ✗ CI.KUnit: 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-230408@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=michael.j.ruhl@intel.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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