Skip to content

Commit 5fcaab6

Browse files
committed
dma-trace: tune the dma trace reschedule time
500us woulld cause dma trace buffer overflow at the boot up time. Now refine it to 100us to make both scheduler and dma trace happy Signed-off-by: Rander Wang <rander.wang@linux.intel.com>
1 parent 90b455e commit 5fcaab6

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 500
107+
#define DMA_TRACE_RESCHEDULE_TIME 100
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 500
97+
#define DMA_TRACE_RESCHEDULE_TIME 100
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 500
113+
#define DMA_TRACE_RESCHEDULE_TIME 100
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 500
96+
#define DMA_TRACE_RESCHEDULE_TIME 100
9797

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

0 commit comments

Comments
 (0)