drm/xe/sysctrl: Add helper to query application status
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v8 Latest2 patches 5 repliesIn review
- v72 patches 7 repliesSuperseded
- v6 posting 2/22 patches 2 repliesSuperseded
Earlier versions · 6
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v6 posting 1/2 | 2 patches | 0 replies | Superseded | |
| v5 | 1 patch | 2 replies | Superseded | |
| v4 | 1 patch | 1 reply | Superseded | |
| v3 | 1 patch | 1 reply | Superseded | |
| v2 | 1 patch | 2 replies | Superseded | |
| v1 | 1 patch | 1 reply | Superseded |
Patches in v8 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | drm/xe/sysctrl: Add helper to query application statusdrivers/ drivers/ drivers/ | +119 | 3 replies | |
| 2/2 | drm/xe/sysctrl: Add helper to check oCode firmware readinessdrivers/ drivers/ | +20 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Michael J. Ruhl | Umesh Nerlige Ramappa |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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