mirror of https://github.com/thesofproject/sof.git
trace: Move FW description log location
This log should be added just after buffer initialization, to make it the first one in the output file - for easy identyfication. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
This commit is contained in:
parent
40fd801c29
commit
61f9d3de34
|
@ -318,6 +318,10 @@ int dma_trace_enable(struct dma_trace_data *d)
|
|||
if (err < 0)
|
||||
goto out;
|
||||
|
||||
/* it should be the very first sent log for easily identification */
|
||||
tr_info(&dt_tr, "FW ABI 0x%x DBG ABI 0x%x tag " SOF_GIT_TAG " src hash 0x%x (ldc hash " META_QUOTE(SOF_SRC_HASH) ")",
|
||||
SOF_ABI_VERSION, SOF_ABI_DBG_VERSION, SOF_SRC_HASH);
|
||||
|
||||
#if CONFIG_DMA_GW
|
||||
/*
|
||||
* GW DMA need finish DMA config and start before
|
||||
|
@ -328,6 +332,9 @@ int dma_trace_enable(struct dma_trace_data *d)
|
|||
goto out;
|
||||
#endif
|
||||
|
||||
/* flush fw description message */
|
||||
trace_flush();
|
||||
|
||||
/* validate DMA context */
|
||||
if (!d->dc.dmac || !d->dc.chan) {
|
||||
tr_err_atomic(&dt_tr, "dma_trace_enable(): not valid");
|
||||
|
@ -338,11 +345,6 @@ int dma_trace_enable(struct dma_trace_data *d)
|
|||
d->enabled = 1;
|
||||
schedule_task(&d->dmat_work, DMA_TRACE_PERIOD, DMA_TRACE_PERIOD);
|
||||
|
||||
/* it should be the very first sent log for easily identification */
|
||||
tr_info(&dt_tr, "FW ABI 0x%x DBG ABI 0x%x tag " SOF_GIT_TAG " src hash 0x%x (ldc hash " META_QUOTE(SOF_SRC_HASH) ")",
|
||||
SOF_ABI_VERSION, SOF_ABI_DBG_VERSION, SOF_SRC_HASH);
|
||||
trace_flush();
|
||||
|
||||
out:
|
||||
platform_shared_commit(d, sizeof(*d));
|
||||
|
||||
|
|
Loading…
Reference in New Issue