Skip to contentSkip to conversation

ASoC: SOF: Fix DSP oops stack dump output contents

PATCH In review Peter Ujfalusi 2 participants 2 messages Sep 15, 2021

Subsystems (3)
lore
Share & tools
lore

Peter Ujfalusi

author maintainer
#0 lore raw

PATCH 1/1 ASoC: SOF: Fix DSP oops stack dump output contents

From: Yong Zhi <[email protected]>

Fix @buf arg given to hex_dump_to_buffer() and stack address used in dump error output.

Fixes e657c18a01c8 ('ASoC: SOF: Add xtensa support')
---
 sound/soc/sof/xtensa/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/sof/xtensa/core.c +2 -2
index bbb9a2282ed9..f6e3411b33cf 100644
@@ -122,9 +122,9 @@ static void xtensa_stack(struct snd_sof_dev *sdev, void *oops, u32 *stack,
 	 * 0x0049fbb0: 8000f2d0 0049fc00 6f6c6c61 00632e63
 	 */
 	for (i = 0; i < stack_words; i += 4) {
-		hex_dump_to_buffer(stack + i * 4, 16, 16, 4,
+		hex_dump_to_buffer(stack + i, 16, 16, 4,
 				   buf, sizeof(buf), false);
-		dev_err(sdev->dev, "0x%08x: %s\n", stack_ptr + i, buf);
+		dev_err(sdev->dev, "0x%08x: %s\n", stack_ptr + i * 4, buf);
 	}
 }
 
Signature · 1 line
2.33.0
maintainer
#1 lore raw
Quoted 6 lines · Peter Ujfalusi

From: Yong Zhi <[email protected]>

Fix @buf arg given to hex_dump_to_buffer() and stack address used in dump error output.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: SOF: Fix DSP oops stack dump output contents

      commit: ac4dfccb96571ca03af7cac64b7a0b2952c97f3a

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark