Skip OCODE late bind if already running
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 2 repliesIn review
- v12 patches 4 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | drm/xe: Skip OCODE late bind if already runningdrivers/ | +7 | 1 reply | |
| 2/2 | drm/xe: Add debug configfs option to force OCODE loaddrivers/ drivers/ drivers/ +1 more | +66 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Rodrigo Vivi |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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.
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