Skip to content

ASoC: SOF: Improvements for debugging

Peter Ujfalusi alsa-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19ASoC: SOF: core: debug: force all processing on primary coresound/soc/sof/sof-priv.h sound/soc/sof/topology.c+9 -00 replies
2/19ASoC: SOF: debug: Swap the dsp_dump and ipc_dump sequence for fw_exceptionsound/soc/sof/debug.c+1 -10 replies
3/19ASoC: SOF: ipc and dsp dump: Add markers for better visibilitysound/soc/sof/ops.h+8 -20 replies
4/19ASoC: SOF: Print the dbg_dump and ipc_dump once to reduce kernel log noisesound/soc/sof/debug.c sound/soc/sof/loader.c sound/soc/sof/ops.h +1 more+16 -30 replies
5/19ASoC: SOF: loader: Print the DSP dump if boot failssound/soc/sof/loader.c+3 -10 replies
6/19ASoC: SOF: intel: atom: No need to do a DSP dump in atom_run()sound/soc/sof/intel/atom.c+1 -40 replies
7/19ASoC: SOF: debug/ops: Move the IPC and DSP dump functions out from the headersound/soc/sof/debug.c sound/soc/sof/ops.h+24 -210 replies
8/19ASoC: SOF: debug: Add SOF_DBG_DUMP_OPTIONAL flag for DSP dumpingsound/soc/sof/debug.c sound/soc/sof/sof-priv.h+7 -20 replies
9/19ASoC: SOF: intel: hda-loader: Use snd_sof_dsp_dbg_dump() for DSP dumpsound/soc/sof/intel/hda-loader.c+12 -60 replies
10/19ASoC: SOF: Drop SOF_DBG_DUMP_FORCE_ERR_LEVEL and sof_dev_dbg_or_errsound/soc/sof/intel/hda-loader.c sound/soc/sof/intel/hda.c sound/soc/sof/loader.c +1 more+7 -230 replies
11/19ASoC: SOF: debug: Print out the fw_state along with the DSP dumpsound/soc/sof/debug.c+27 -00 replies
12/19ASoC: SOF: ipc: Re-enable dumps after successful IPC txsound/soc/sof/ipc.c+6 -00 replies
13/19ASoC: SOF: ops: Force DSP panic dumps to be printedsound/soc/sof/ops.c+3 -00 replies
14/19ASoC: SOF: Introduce macro to set the firmware statesound/soc/sof/core.c sound/soc/sof/ipc.c sound/soc/sof/loader.c +2 more+23 -100 replies
15/19ASoC: SOF: intel: hda: Drop 'error' prefix from error dump functionssound/soc/sof/intel/hda.c+4 -80 replies
16/19ASoC: SOF: core: Clean up snd_sof_get_status() printssound/soc/sof/core.c+8 -80 replies
17/19ASoC: SOF: loader: Drop SOF_DBG_DUMP_REGS flag when firmware start failssound/soc/sof/loader.c+1 -20 replies
18/19ASoC: SOF: Intel: hda-loader: Drop SOF_DBG_DUMP_REGS flag from dbg_dump callssound/soc/sof/intel/hda-loader.c+2 -40 replies
19/19ASoC: SOF: Intel: hda: Dump registers and stack when SOF_DBG_DUMP_REGS is setsound/soc/sof/intel/hda.c+1 -20 replies

Reviews trailers per patch

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

PatchBard LiaoKai VehmanenRanjani SridharanPierre-Louis Bossart
1/19R-b R-b
2/19R-b R-b
3/19R-b R-b
4/19R-b R-b
5/19R-b R-b
6/19R-b R-b
7/19R-b R-b
8/19R-b R-b
9/19R-b R-b
10/19R-b R-b
11/19R-b R-b
12/19R-b R-b
13/19R-b R-b
14/19R-b R-b
15/19R-b R-b
16/19R-b R-b
17/19R-b R-b R-b
18/19R-b R-b R-b
19/19R-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 00/19] ASoC: SOF: Improvements for debugging

Hi,

The aim of this series is to clean up, make it easier to interpret and less 'chatty' prints aimed for debugging errors.

For example currently the DSP/IPC dump is printed every time we have an IPC timeout and it is posible to lost the first and more indicative dump to find the rootcause.

Regards,
Peter
---
Peter Ujfalusi (18):
ASoC: SOF: debug: Swap the dsp_dump and ipc_dump sequence for
fw_exception
ASoC: SOF: ipc and dsp dump: Add markers for better visibility
ASoC: SOF: Print the dbg_dump and ipc_dump once to reduce kernel log
noise
ASoC: SOF: loader: Print the DSP dump if boot fails
ASoC: SOF: intel: atom: No need to do a DSP dump in atom_run()
ASoC: SOF: debug/ops: Move the IPC and DSP dump functions out from the
header
ASoC: SOF: debug: Add SOF_DBG_DUMP_OPTIONAL flag for DSP dumping
ASoC: SOF: intel: hda-loader: Use snd_sof_dsp_dbg_dump() for DSP dump
ASoC: SOF: Drop SOF_DBG_DUMP_FORCE_ERR_LEVEL and sof_dev_dbg_or_err
ASoC: SOF: debug: Print out the fw_state along with the DSP dump
ASoC: SOF: ipc: Re-enable dumps after successful IPC tx
ASoC: SOF: ops: Force DSP panic dumps to be printed
ASoC: SOF: Introduce macro to set the firmware state
ASoC: SOF: intel: hda: Drop 'error' prefix from error dump functions
ASoC: SOF: core: Clean up snd_sof_get_status() prints
ASoC: SOF: loader: Drop SOF_DBG_DUMP_REGS flag when firmware start
fails
ASoC: SOF: Intel: hda-loader: Drop SOF_DBG_DUMP_REGS flag from
dbg_dump calls
ASoC: SOF: Intel: hda: Dump registers and stack when SOF_DBG_DUMP_REGS
is set

Pierre-Louis Bossart (1):
ASoC: SOF: core: debug: force all processing on primary core

 sound/soc/sof/core.c             | 24 ++++++-------
 sound/soc/sof/debug.c            | 61 ++++++++++++++++++++++++++++++--
 sound/soc/sof/intel/atom.c       |  5 +--
 sound/soc/sof/intel/hda-loader.c | 11 +++---
 sound/soc/sof/intel/hda.c        | 16 +++------
 sound/soc/sof/ipc.c              | 10 ++++--
 sound/soc/sof/loader.c           | 11 ++++--
 sound/soc/sof/ops.c              |  3 ++
 sound/soc/sof/ops.h              | 12 +------
 sound/soc/sof/pm.c               |  6 ++--
 sound/soc/sof/sof-priv.h         | 31 ++++++++++------
 sound/soc/sof/topology.c         |  6 ++++
 12 files changed, 131 insertions(+), 65 deletions(-)
Signature · 1 line
2.33.0