Skip to content

Commit f1531b0

Browse files
committed
HACK: add tr_err() in primary_core_init() after trace_init()
This shows that #4636 did not fix any real-world issue. #4636 changed some sof->trace logic, however sof->trace does not exist before trace_init() and calling tr_err() immediately after trace_init() works. Note DSP panics were detected immediately after #4636 was merged, see reports in #4676 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent 878bd7f commit f1531b0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/init/init.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#include <sof/schedule/ll_schedule_domain.h>
2929
#include <ipc/trace.h>
3030

31+
extern struct tr_ctx buffer_tr;
32+
3133
/* main firmware context */
3234
static struct sof sof;
3335

@@ -134,11 +136,15 @@ static int primary_core_init(int argc, char *argv[], struct sof *sof)
134136
interrupt_init(sof);
135137
#endif /* __ZEPHYR__ */
136138

139+
/* tr_err(&buffer_tr, "CRASHES (and requires a Linux reboot!)"); */
140+
137141
#if CONFIG_TRACE
138142
trace_point(TRACE_BOOT_SYS_TRACES);
139143
trace_init(sof);
140144
#endif
141145

146+
tr_err(&buffer_tr, "SUPER EARLY trace does not crash");
147+
142148
trace_point(TRACE_BOOT_SYS_NOTIFIER);
143149
init_system_notify(sof);
144150

0 commit comments

Comments
 (0)