From: Peter Ujfalusi Date: Wed, 6 Oct 2021 11:06:39 +0000 (+0300) Subject: ASoC: SOF: ops: Force DSP panic dumps to be printed X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=705f4539c4c834de9a7885512585b3a27fedf216;p=linux.git ASoC: SOF: ops: Force DSP panic dumps to be printed If a DSP panic happens we want to see the dumps. Signed-off-by: Peter Ujfalusi Reviewed-by: Pierre-Louis Bossart Reviewed-by: Kai Vehmanen Link: https://lore.kernel.org/r/20211006110645.26679-14-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/ops.c b/sound/soc/sof/ops.c index 11ecebd079073..160b88a2d59f6 100644 --- a/sound/soc/sof/ops.c +++ b/sound/soc/sof/ops.c @@ -157,6 +157,9 @@ void snd_sof_dsp_panic(struct snd_sof_dev *sdev, u32 offset) dev_dbg(sdev->dev, "panic: dsp_oops_offset %zu offset %d\n", sdev->dsp_oops_offset, offset); + /* We want to see the DSP panic! */ + sdev->dbg_dump_printed = false; + snd_sof_dsp_dbg_dump(sdev, SOF_DBG_DUMP_REGS | SOF_DBG_DUMP_MBOX); snd_sof_trace_notify_for_error(sdev); }