diff options
| author | Peter Ujfalusi <[email protected]> | 2021-10-06 14:06:31 +0300 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2021-10-07 15:45:26 +0100 |
| commit | 247ac640739dda167a127a2ecb158595695ffd7d (patch) | |
| tree | aaf7c646b05c14e3651786a6ca10d8db0366c887 | |
| parent | 9ff90859b95f6c85ce2d671ecd1e95e91dbe7f15 (diff) | |
ASoC: SOF: loader: Print the DSP dump if boot fails
It can be useful to print the DSP dump from the core in case the DSP boot
failed.
Signed-off-by: Peter Ujfalusi <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
| -rw-r--r-- | sound/soc/sof/loader.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/sof/loader.c b/sound/soc/sof/loader.c index c18b2b5c52ca..babb96d685ae 100644 --- a/sound/soc/sof/loader.c +++ b/sound/soc/sof/loader.c @@ -819,7 +819,9 @@ int snd_sof_run_firmware(struct snd_sof_dev *sdev) /* boot the firmware on the DSP */ ret = snd_sof_dsp_run(sdev); if (ret < 0) { - dev_err(sdev->dev, "error: failed to reset DSP\n"); + dev_err(sdev->dev, "error: failed to start DSP\n"); + snd_sof_dsp_dbg_dump(sdev, SOF_DBG_DUMP_REGS | SOF_DBG_DUMP_MBOX | + SOF_DBG_DUMP_PCI | SOF_DBG_DUMP_FORCE_ERR_LEVEL); return ret; } |