Skip to content

drm/xe/sysctrl: Clean up error handling in

Mallesh Koujalagi intel-xe 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest10 patches 2 repliesIn review
  2. v810 patches 5 repliesSuperseded
  3. v79 patches 4 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v69 patches6 repliesSuperseded
v57 patches5 repliesSuperseded
v47 patches18 repliesSuperseded

Changes in v9 from the cover letter

- Update commit message. (Michal)
- Use fix tag. (Umesh)
- drop __packed.
- s/simplify/Fix/

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10drm/xe/sysctrl: Return error codes from sysctrl_wait_bit_clear()drivers/gpu/drm/xe/xe_sysctrl_mailbox.c+14 -140 replies
2/10drm/xe/sysctrl: Return error codes from sysctrl_wait_bit_set()drivers/gpu/drm/xe/xe_sysctrl_mailbox.c+8 -110 replies
3/10drm/xe/sysctrl: Make sysctrl_write_frame() voiddrivers/gpu/drm/xe/xe_sysctrl_mailbox.c+3 -80 replies
4/10drm/xe/sysctrl: Make sysctrl_read_frame() voiddrivers/gpu/drm/xe/xe_sysctrl_mailbox.c+3 -80 replies
5/10drm/xe/sysctrl: Use xe_assert() for payload size validationdrivers/gpu/drm/xe/xe_sysctrl_mailbox.c+1 -40 replies
6/10drm/xe/sysctrl: Fix mailbox header handlingdrivers/gpu/drm/xe/xe_sysctrl_mailbox.c+8 -82 replies
7/10drm/xe/sysctrl: Replace FIELD_GET() with REG_FIELD_GET()drivers/gpu/drm/xe/xe_sysctrl_mailbox.c drivers/gpu/drm/xe/xe_sysctrl_mailbox.h+13 -130 replies
8/10drm/xe/sysctrl: Improve firmware response error loggingdrivers/gpu/drm/xe/xe_sysctrl_mailbox.c+5 -30 replies
9/10drm/xe/sysctrl: Log group and command ID on mailbox failuredrivers/gpu/drm/xe/xe_sysctrl_mailbox.c+4 -20 replies
10/10drm/xe/sysctrl: Report 'System Controller event' error using SIGIDdrivers/gpu/drm/xe/xe_sysctrl_event.c+9 -50 replies

Reviews trailers per patch

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

PatchMichal WajdeczkoAnoop VijayUmesh Nerlige RamappaRodrigo Vivi
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10T-b R-b R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v9 thread

Cover letter [PATCH v9 00/10] drm/xe/sysctrl: Clean up error handling in

The patch series improves error handling in the System Controller mailbox driver by making error propagation more consistent and using xe_log_err() for structured error reporting.

It also removes a few redundant checks and simplifies helper interfaces where no error path exists.

v2:
- Use -EOVERFLOW.
- Drop sysctrl in xe_log_err. (Michal)
- Drop redundant %pe.
- Print response->count.

v3:
- Rebase.

v4:
- Replace xe_warn to xe_log_err_info for. (Michal)
- Use xe_assert().
- Change sysctrl_wait_bit_* to return errno.
- Make sysctrl_write_frame return type as void.
- Log mismatched header info.

v5:
- Fix align issue. (Michal)
- Use %#x after REG_FIELD_GET change.
- Use REG_FIELD_GET instead of FIELD_GET.
- Modify logging message.
- Change Error as EXFULL.
- Update logging message.

v6:
- Move REG_FIELD_GET to different patch. (Michal)
- Update response message.
- Move all REG_FIELD_GET to single patch.
- Update log message. (Michal)
- Change correct errno. (Michal)

v7:
- Update FIELD_PREP to REG_FIELD_PREP. (Michal/Sashiko)
- Update FIELD_GET to REG_FIELD_GET.
- Remove le32_to_cpu. (Michal)

v8:
- Rebase.
- Rephrase commit message. (Michal)

v9:
- Update commit message. (Michal)
- Use fix tag. (Umesh)
- drop __packed.
- s/simplify/Fix/

Mallesh Koujalagi (10):
drm/xe/sysctrl: Return error codes from sysctrl_wait_bit_clear() drm/xe/sysctrl: Return error codes from sysctrl_wait_bit_set() drm/xe/sysctrl: Make sysctrl_write_frame() void drm/xe/sysctrl: Make sysctrl_read_frame() void drm/xe/sysctrl: Use xe_assert() for payload size validation drm/xe/sysctrl: Fix mailbox header handling drm/xe/sysctrl: Replace FIELD_GET() with REG_FIELD_GET() drm/xe/sysctrl: Improve firmware response error logging drm/xe/sysctrl: Log group and command ID on mailbox failure drm/xe/sysctrl: Report 'System Controller event' error using SIGID

 drivers/gpu/drm/xe/xe_sysctrl_event.c   |  14 +--
 drivers/gpu/drm/xe/xe_sysctrl_mailbox.c | 112 +++++++++++-------------
 drivers/gpu/drm/xe/xe_sysctrl_mailbox.h |   6 +-
 3 files changed, 62 insertions(+), 70 deletions(-)
Signature · 1 line
2.48.1