ASoC: SOF: loader: Add debug box region
authorIulian Olaru <iulianolaru249@yahoo.com>
Tue, 25 Aug 2020 23:58:54 +0000 (16:58 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 26 Aug 2020 11:44:09 +0000 (12:44 +0100)
commite17b7389dcc4239b806cd8789a812ee1b8b7b134
tree297c9d920d9ba2e52ad8b6e74bfebc9a31644f13
parent60b7c1ba289b8ebe4f275b0b381f711e5b60184b
ASoC: SOF: loader: Add debug box region

This patch adds an IPC initiated debug box region in the snd_sof_dev
structure, defined in soc/sof/sof-priv.h. It is initialized at loading,
in the sof_get_windows function from soc/sof/loader.c, in a similar manner
with the stream box and host box.

This region is useful because the firmware will put an error message
here so the kernel can read it in case of a dsp oops.

Signed-off-by: Iulian Olaru <iulianolaru249@yahoo.com>
Reviewed-by: Daniel Baluta <daniel.baluta@gmail.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20200825235854.1588034-5-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/loader.c
sound/soc/sof/sof-priv.h