]> 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)
commitfca876fd4deefc2489ad9cc1f40b367e7c4725c4
tree3358e4052d2a851e3331a02ada263b1c287afca4
parent857278f0f6657d74b92f04a86453e0d25ff26c89
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