Skip to content

Skip OCODE late bind if already running

Sk Anirban intel-xe 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/xe: Skip OCODE late bind if already runningdrivers/gpu/drm/xe/xe_late_bind_fw.c+7 -01 reply
2/2drm/xe: Add debug configfs option to force OCODE loaddrivers/gpu/drm/xe/xe_configfs.c drivers/gpu/drm/xe/xe_configfs.h drivers/gpu/drm/xe/xe_late_bind_fw.c +1 more+66 -11 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchRodrigo Vivi
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Skip OCODE late bind if already running

OCODE keeps running across driver reloads and warm resets. Despite this, the late-bind worker re-uploads it on every probe and resume. The firmware is not expected to handle back-to-back reloads, and the extra delay of reloading an active OCODE can lead to firmware issues.

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 <[email protected]>
Cc Badal Nilawar <[email protected]>

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           | 58 ++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_configfs.h           |  1 +
 drivers/gpu/drm/xe/xe_late_bind_fw.c       | 11 ++++
 drivers/gpu/drm/xe/xe_late_bind_fw_types.h |  2 +
 4 files changed, 72 insertions(+)
Signature · 1 line
2.43.0