Skip to content

ASoC: SOF: ipc4/Intel: Support for firmware exception handling

Peter Ujfalusi alsa-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9ASoC: SOF: Xtensa: dump ar registers to restore call stacksound/soc/sof/xtensa/core.c+11 -00 replies
2/9ASoC: SOF: ipc4-mtrace: move debug slot related definitions to header.hinclude/sound/sof/ipc4/header.h sound/soc/sof/ipc4-mtrace.c+28 -230 replies
3/9ASoC: SOF: ipc4: add a helper function to search debug slotsound/soc/sof/ipc4-priv.h sound/soc/sof/ipc4.c+26 -00 replies
4/9ASoC: SOF: ipc4: add definition of telemetry slot for exception handlingsound/soc/sof/Makefile sound/soc/sof/ipc4-telemetry.c sound/soc/sof/ipc4-telemetry.h+169 -10 replies
5/9ASoC: SOF: ipc4: add exception node in sof debugfs directorysound/soc/sof/ipc4.c+3 -00 replies
6/9ASoC: SOF: Intel: add telemetry retrieval support on Intel platformssound/soc/sof/intel/Makefile sound/soc/sof/intel/telemetry.c sound/soc/sof/intel/telemetry.h+132 -10 replies
7/9ASoC: SOF: Intel: mtl: dump dsp stacksound/soc/sof/intel/mtl.c+3 -00 replies
8/9ASoC: SOF: Intel: hda: add ipc4 FW panic support on CAVS 2.5+ platformssound/soc/sof/intel/hda.c sound/soc/sof/intel/hda.h sound/soc/sof/intel/tgl.c+16 -00 replies
9/9ASoC: SOF: ipc4: handle EXCEPTION_CAUGHT notification from firmwaresound/soc/sof/ipc4.c+3 -00 replies

Reviews trailers per patch

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

PatchPéter UjfalusiKai VehmanenPierre-Louis BossartGuennadi Liakhovetski
1/9R-b R-b R-b R-b
2/9R-b R-b R-b R-b
3/9R-b R-b R-b R-b
4/9R-b R-b R-b R-b
5/9R-b R-b R-b R-b
6/9R-b R-b R-b R-b
7/9R-b R-b R-b R-b
8/9R-b R-b R-b R-b
9/9R-b R-b R-b R-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 v1 thread

Cover letter [PATCH 0/9] ASoC: SOF: ipc4/Intel: Support for firmware exception handling

Hi,

When a firmware crashes it creats a panic information into a telemetry slot. The panic format is defined by Zephyr, includes stack and additional information to help to identify the reason for the crash.
Part of the firmware exception handling the firmware also sends an EXCEPTION_CAUGHT notification.

This series implements the kernel side handling of the exception:
print information into the kernel log
export the whole telemetry slot to user space for tools extract additional information from the panic dump.

Regards,
Peter
---
Rander Wang (9):
ASoC: SOF: Xtensa: dump ar registers to restore call stack
ASoC: SOF: ipc4-mtrace: move debug slot related definitions to
header.h
ASoC: SOF: ipc4: add a helper function to search debug slot
ASoC: SOF: ipc4: add definition of telemetry slot for exception
handling
ASoC: SOF: ipc4: add exception node in sof debugfs directory
ASoC: SOF: Intel: add telemetry retrieval support on Intel platforms
ASoC: SOF: Intel: mtl: dump dsp stack
ASoC: SOF: Intel: hda: add ipc4 FW panic support on CAVS 2.5+
platforms
ASoC: SOF: ipc4: handle EXCEPTION_CAUGHT notification from firmware

 include/sound/sof/ipc4/header.h | 17 ++++++
 sound/soc/sof/Makefile          |  2 +-
 sound/soc/sof/intel/Makefile    |  3 +-
 sound/soc/sof/intel/hda.c       | 14 +++++
 sound/soc/sof/intel/hda.h       |  1 +
 sound/soc/sof/intel/mtl.c       |  3 ++
 sound/soc/sof/intel/telemetry.c | 95 +++++++++++++++++++++++++++++++++
 sound/soc/sof/intel/telemetry.h | 35 ++++++++++++
 sound/soc/sof/intel/tgl.c       |  1 +
 sound/soc/sof/ipc4-mtrace.c     | 34 ++++--------
 sound/soc/sof/ipc4-priv.h       |  3 ++
 sound/soc/sof/ipc4-telemetry.c  | 95 +++++++++++++++++++++++++++++++++
 sound/soc/sof/ipc4-telemetry.h  | 73 +++++++++++++++++++++++++
 sound/soc/sof/ipc4.c            | 29 ++++++++++
 sound/soc/sof/xtensa/core.c     | 11 ++++
 15 files changed, 391 insertions(+), 25 deletions(-)
 create mode 100644 sound/soc/sof/intel/telemetry.c
 create mode 100644 sound/soc/sof/intel/telemetry.h
 create mode 100644 sound/soc/sof/ipc4-telemetry.c
 create mode 100644 sound/soc/sof/ipc4-telemetry.h
Signature · 1 line
2.42.0