Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Sk Anirban <sk.anirban@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, <anshuman.gupta@intel.com>,
	<badal.nilawar@intel.com>, <riana.tauro@intel.com>,
	<karthik.poosa@intel.com>, <raag.jadav@intel.com>,
	<soham.purkait@intel.com>,  <mallesh.koujalagi@intel.com>
Subject: Re: [PATCH 1/2] drm/xe: Skip OCODE late bind if already running
Date: Mon, 23 Nov 2026 15:23:46 -0500	[thread overview]
Message-ID: <awSg0v1GI4tw7h7I@intel.com> (raw)
In-Reply-To: <20261123183740.4002390-5-sk.anirban@intel.com>

On Tue, Nov 24, 2026 at 12:07:42AM +0530, Sk Anirban wrote:
> Check OCODE readiness in the late bind worker and skip the upload
> at probe and resume when it is already initialized.

We are missing a why in this commit message. Perhaps something like:

OCODE stays running across driver reload and warm reset, but the
late-bind worker uploads it again at probe and resume regardless. The
firmware does not expect consecutive reloads, and the delay caused by
reloading a running OCODE leads to firmware issues.

Query OCODE readiness through SysCtrl in the late-bind worker and skip
the upload when it is already initialized. If the query fails or OCODE
is not ready, upload it as before.

A newer OCODE blob is not picked up until the next power cycle; this
will be addressed once firmware provides a reliable way to read the
running version.

then

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> 
> Signed-off-by: Sk Anirban <sk.anirban@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_late_bind_fw.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/gpu/drm/xe/xe_late_bind_fw.c b/drivers/gpu/drm/xe/xe_late_bind_fw.c
> index 355d7c841871..dfff1693bf1f 100644
> --- a/drivers/gpu/drm/xe/xe_late_bind_fw.c
> +++ b/drivers/gpu/drm/xe/xe_late_bind_fw.c
> @@ -258,6 +258,13 @@ static void xe_late_bind_work(struct work_struct *work)
>  
>  	xe_device_assert_mem_access(xe);
>  
> +	/* TODO: Compare the running OCODE version at probe when available. */
> +	if (lbfw->type == INTEL_LB_TYPE_OCODE && xe_sysctrl_is_oobmsm_fw_ready(xe)) {
> +		drm_dbg(&xe->drm, "%s firmware already loaded, skipping\n",
> +			fw_id_to_name[lbfw->id]);
> +		goto out;
> +	}
> +
>  	/* we can queue this before the component is bound */
>  	for (slept = 0; slept < LB_INIT_TIMEOUT_MS; slept += 100) {
>  		if (late_bind->component.ops)
> -- 
> 2.43.0
> 

  reply	other threads:[~2026-11-23 20:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 18:37 [PATCH 0/2] drm/xe: Skip OCODE late bind if already running Sk Anirban
2026-11-23 18:37 ` [PATCH 1/2] " Sk Anirban
2026-11-23 20:23   ` Rodrigo Vivi [this message]
2026-11-23 18:37 ` [PATCH 2/2] drm/xe: Add debug configfs option to force OCODE load Sk Anirban
2026-11-23 20:19   ` Rodrigo Vivi
2026-11-23 19:03 ` ✗ CI.KUnit: failure for drm/xe: Skip OCODE late bind if already running 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=awSg0v1GI4tw7h7I@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=anshuman.gupta@intel.com \
    --cc=badal.nilawar@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=karthik.poosa@intel.com \
    --cc=mallesh.koujalagi@intel.com \
    --cc=raag.jadav@intel.com \
    --cc=riana.tauro@intel.com \
    --cc=sk.anirban@intel.com \
    --cc=soham.purkait@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