Skip to content

drm/xe/sysctrl: Add helper to query application status

Anoop, Vijay intel-xe 9 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest2 patches 5 repliesIn review
  2. v72 patches 7 repliesSuperseded
  3. v6 posting 2/22 patches 2 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v6 posting 1/22 patches0 repliesSuperseded
v51 patch2 repliesSuperseded
v41 patch1 replySuperseded
v31 patch1 replySuperseded
v21 patch2 repliesSuperseded
v11 patch1 replySuperseded

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/xe/sysctrl: Add helper to query application statusdrivers/gpu/drm/xe/xe_sysctrl.c drivers/gpu/drm/xe/xe_sysctrl.h drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h+119 -03 replies
2/2drm/xe/sysctrl: Add helper to check oCode firmware readinessdrivers/gpu/drm/xe/xe_sysctrl.c drivers/gpu/drm/xe/xe_sysctrl.h+20 -02 replies

Reviews trailers per patch

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

PatchMichael J. RuhlUmesh Nerlige Ramappa
1/2R-b R-b
2/2R-b R-b

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

Read the v8 thread

Cover letter [PATCH v8 0/2] drm/xe/sysctrl: Add helper to query application status

From: Anoop Vijay <[email protected]>

This series adds helpers to query the readiness state of individual System Controller (sysctrl) firmware applications via the get_app_status_by_id mailbox command.

xe_sysctrl_check_app_status() maps an xe_sysctrl_app_id to its firmware application identifier and returns the reported application state:
communication failure, booted, or fully initialized.

Convenience wrappers are added on top of this helper to check readiness of the Diagnostics (diag) and oCode firmware applications. Initial consumers of these wrappers are added in the following series.
[1] https://patchwork.freedesktop.org/series/171728/
[2] https://patchwork.freedesktop.org/series/161655/

---
v2: (Badal)
- Return SysCtrl firmware application states instead of errno for application lifecycle conditions

v3: (Riana, Badal)
- Replace string-based app identifiers with enum xe_sysctrl_app_id
- Use get_app_status_by_id (opcode 0x05)
- Move mailbox definitions to xe_sysctrl_mailbox_types.h
- Return enum xe_sysctrl_fw_status consistently
- Map communication failures to COMM_FAILURE
- Add INITIALIZED state and status helpers
- Fix Diagnostics typo

v4: (Anshuman)
- Make xe_sysctrl_check_app_status() internal
- Remove unused app identifier

v5: (Anshuman)
- Rename OOBMSM status helper to use xe_sysctrl_* prefix
- Remove xe_is_diag_fw_ready() helper

v6: (Riana)
- Use xe_sysctrl_create_command() helper instead of manual FIELD_PREP header packing
- Rename xe_sysctrl_get_app_status_by_id_{req,resp} to shorter names
- Use hex constant for application ID
- Split oCode application readiness helper into its own patch
- Add xe_sysctrl_is_diag_fw_ready() helper; consumer lands in the RAS error-injection series

v7: (Umesh)
- Clarify diag/oCode firmware readiness helper comments for platforms without System Controller support
- Move XE_SYSCTRL_APP_RESP_* flags and enum xe_sysctrl_app_id out of xe_sysctrl_mailbox_types.h into xe_sysctrl.c

v8: (Umesh, Rodrigo, Mike)
- Drop XE_SYSCTRL_FIRMWARE_APP_NOTSUPP handling
- Simplify diag/oCode readiness helpers to a single XE_SYSCTRL_FIRMWARE_APP_INITIALIZED check
---

Anoop Vijay (2):
drm/xe/sysctrl: Add helper to query application status drm/xe/sysctrl: Add helper to check oCode firmware readiness

 drivers/gpu/drm/xe/xe_sysctrl.c               | 92 +++++++++++++++++++
 drivers/gpu/drm/xe/xe_sysctrl.h               |  2 +
 drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 45 +++++++++
 3 files changed, 139 insertions(+)
Signature · 1 line
2.43.0