Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/xe: Skip OCODE late bind if already running
@ 2026-11-23 18:37 Sk Anirban
  2026-11-23 18:37 ` [PATCH 1/2] " Sk Anirban
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Sk Anirban @ 2026-11-23 18:37 UTC (permalink / raw)
  To: intel-xe
  Cc: anshuman.gupta, badal.nilawar, riana.tauro, karthik.poosa,
	raag.jadav, soham.purkait, mallesh.koujalagi, rodrigo.vivi,
	Sk Anirban

The late-bind worker currently uploads OCODE at probe and resume even
when it is already running. This series checks OCODE readiness
through SysCtrl and skips the upload when OCODE is already
initialized.

Patch 1 adds the readiness check to the late-bind worker, so the
SysCtrl mailbox query runs asynchronously rather than directly in
the probe or resume path. If the query fails or OCODE is not ready,
the payload is uploaded as before.

Skipping the upload whenever OCODE is ready prevents developers from
testing a replacement OCODE blob on reprobe if the old ocode is
still running, unless the board is power cycled. Patch 2 adds a
debug-only configfs attribute, ocode_force_load, that bypasses the
readiness check at probe.

Comparing the running OCODE version with the payload version is left
for later, when firmware provides a reliable mailbox command to read
the running version.

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Badal Nilawar <badal.nilawar@intel.com>

Sk Anirban (2):
  drm/xe: Skip OCODE late bind if already running
  drm/xe: Add debug configfs option to force OCODE load

 drivers/gpu/drm/xe/xe_configfs.c           | 57 ++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_configfs.h           |  1 +
 drivers/gpu/drm/xe/xe_late_bind_fw.c       | 19 ++++++--
 drivers/gpu/drm/xe/xe_late_bind_fw_types.h |  4 ++
 4 files changed, 78 insertions(+), 3 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-11-24 16:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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-24 11:57     ` Nilawar, Badal
2026-11-24 15:54       ` Rodrigo Vivi
2026-11-23 19:03 ` ✗ CI.KUnit: failure for drm/xe: Skip OCODE late bind if already running Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox