Skip to content

Commit bd84f96

Browse files
committed
trace: refine reschedule time for dma trace
It is a simple fix for trace buffer overflowing at the boot up time or debug mode FW. At boot up time, there are many trace events for topology loading in very short time, the trace buffer needs to be scheduled ASAP. 5us is the shortest time works on every platforms. Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
1 parent cedde4e commit bd84f96

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/platform/apollolake/include/platform/platform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ struct sof;
104104
* the interval of reschedule DMA trace copying in special case like half
105105
* fullness of local DMA trace buffer
106106
*/
107-
#define DMA_TRACE_RESCHEDULE_TIME 5000
107+
#define DMA_TRACE_RESCHEDULE_TIME 5
108108

109109
/* DSP should be idle in this time frame */
110110
#define PLATFORM_IDLE_TIME 750000

src/platform/baytrail/include/platform/platform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ struct sof;
9494
* the interval of reschedule DMA trace copying in special case like half
9595
* fullness of local DMA trace buffer
9696
*/
97-
#define DMA_TRACE_RESCHEDULE_TIME 5000
97+
#define DMA_TRACE_RESCHEDULE_TIME 5
9898

9999
/* DSP should be idle in this time frame */
100100
#define PLATFORM_IDLE_TIME 750000

src/platform/cannonlake/include/platform/platform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ struct sof;
110110
* the interval of reschedule DMA trace copying in special case like half
111111
* fullness of local DMA trace buffer
112112
*/
113-
#define DMA_TRACE_RESCHEDULE_TIME 5000
113+
#define DMA_TRACE_RESCHEDULE_TIME 5
114114

115115
/* DSP should be idle in this time frame */
116116
#define PLATFORM_IDLE_TIME 750000

src/platform/haswell/include/platform/platform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ struct sof;
9393
* the interval of reschedule DMA trace copying in special case like half
9494
* fullness of local DMA trace buffer
9595
*/
96-
#define DMA_TRACE_RESCHEDULE_TIME 5000
96+
#define DMA_TRACE_RESCHEDULE_TIME 5
9797

9898
/* DSP should be idle in this time frame */
9999
#define PLATFORM_IDLE_TIME 750000

0 commit comments

Comments
 (0)