[Sound-open-firmware] How to debug rare DSP crashes (moving discussion over from GH)

Paul Olaru paul.olaru at nxp.com
Mon Oct 28 14:33:07 CET 2019


Replying now, after I have added traces within platform_panic I *do not* see them (also
back on the default config I seem to have caused it to fail within first playthrough; it's also
luck based with the timing). Will try tomorrow to also add prints in the agent itself and
turn off other extra traces (so I don't get *too* much spam in the etrace buffer).

I had written trace_error in there, which should have added the error within the etrace
buffer I believe.

-----Original Message-----
From: Sound-open-firmware <sound-open-firmware-bounces at alsa-project.org> On Behalf Of Paul Olaru
Sent: Monday, October 28, 2019 2:22 PM
To: sound-open-firmware at alsa-project.org; Lauda, Tomasz <tomasz.lauda at intel.com>
Cc: Jerome Laclavere <jerome.laclavere at nxp.com>; Daniel Baluta <daniel.baluta at nxp.com>; Guido Roncarolo <guido.roncarolo at nxp.com>
Subject: [Sound-open-firmware] How to debug rare DSP crashes (moving discussion over from GH)

Moving the discussion from https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fthesofproject%2Fsof%2Fpull%2F1998&data=02%7C01%7Cpaul.olaru%40nxp.com%7Cfbea9736e4e24ee5358308d75ba173cc%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637078621304601851&sdata=PTVS4wsCATgneycjJvb9HEos0uC8WTL6v6m42fcHTqg%3D&reserved=0 over to this list.

In summary, whenever I have the system agent enabled and at default values, after two or
three continuous playthroughs (depending on which timer I use as the platform timer, for the
most part) of the same song (with duration 17:06) I get a complete freeze (with verbose traces
enabled I see no more activity in the trace mailbox, not even the WFX/WFE which are essentially
flooding the trace mailbox during normal function) and no signs of panic (I'm going to test now
with a trace added in platform_panic; currently this function is empty).

Disabling the system agent helps, changing CONFIG_SYSTICK_PERIOD to 2000 also helps. And I hear
no glitch at all during the playthroughs with either of these changes applied (although a 1ms or smaller
glitch once in 30 minutes is probably unnoticeable by any human ear is it?)

How should I continue with this?

I'll come back and mention if there is a panic or the freeze comes from something else.
_______________________________________________
Sound-open-firmware mailing list
Sound-open-firmware at alsa-project.org
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.alsa-project.org%2Fmailman%2Flistinfo%2Fsound-open-firmware&data=02%7C01%7Cpaul.olaru%40nxp.com%7Cfbea9736e4e24ee5358308d75ba173cc%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637078621304601851&sdata=Q8uQiU8RnTeJ%2BNQvBU8%2BkioMvAZqFHlKHIM7qrymY3c%3D&reserved=0


More information about the Sound-open-firmware mailing list