]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Print the dbg_dump and ipc_dump once to reduce kernel log noise
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 6 Oct 2021 11:06:30 +0000 (14:06 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 7 Oct 2021 14:45:25 +0000 (15:45 +0100)
commit89880415a7d8c91a6f2818561ff1464345c5f988
tree3358e4052d2a851e3331a02ada263b1c287afca4
parent0d0c99823fb9038e6e50349d638aaabb0a88c36d
ASoC: SOF: Print the dbg_dump and ipc_dump once to reduce kernel log noise

Do not print the dump more than once to keep the kernel log cleaner in case
of a firmware failure.

When the DSP is rebooted due to suspend or runtime_suspend reset the flags
to re-enable the dump prints.

Add also a debug flag to print all dumps to get more coverage if needed.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20211006110645.26679-5-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/debug.c
sound/soc/sof/loader.c
sound/soc/sof/ops.h
sound/soc/sof/sof-priv.h