]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: SOF: imx: Add debug support for imx platforms
authorIulian Olaru <iulianolaru249@yahoo.com>
Thu, 17 Sep 2020 10:56:26 +0000 (13:56 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 17 Sep 2020 14:53:15 +0000 (15:53 +0100)
commit18ebffe4d043bf5f3a9b669d8d91f855bde8f6b7
treef3a997d4ad181819419c20f3e894efdb1619394c
parentd70a4412e264cd8ff7a034505184c0b54876532a
ASoC: SOF: imx: Add debug support for imx platforms

This patch adds debug support for imx platforms. This is important in
order to gather information about the state of the DSP in case of an
oops and the reason for the oops.

This is done by checking if a message with a panic code has been placed
in the debug box, in the imx8_dsp_handle_request function from sof/imx.

If positive, the function imx8_dump, added in common, will be called.
The first step is to gather information about the registers, filename,
line number and stack by calling the imx8_get_registers, added in common.
Then the information will be printed to the console by calling the
get_status function.

Signed-off-by: Iulian Olaru <iulianolaru249@yahoo.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@gmail.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200917105633.2579047-2-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/imx/Kconfig
sound/soc/sof/imx/Makefile
sound/soc/sof/imx/imx-common.c [new file with mode: 0644]
sound/soc/sof/imx/imx-common.h [new file with mode: 0644]
sound/soc/sof/imx/imx8.c
sound/soc/sof/imx/imx8m.c