[Sound-open-firmware] [PATCH] dma-trace: fix DMA trace buffer must be DMA-able memory

Liam Girdwood liam.r.girdwood at linux.intel.com
Tue Mar 6 16:19:05 CET 2018


Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
 src/lib/dma-trace.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lib/dma-trace.c b/src/lib/dma-trace.c
index 211f34f..b08e7fb 100644
--- a/src/lib/dma-trace.c
+++ b/src/lib/dma-trace.c
@@ -132,8 +132,9 @@ int dma_trace_init_early(struct reef *reef)
 	buffer = &trace_data->dmatb;
 
 	/* allocate new buffer */
-	buffer->addr = rballoc(RZONE_RUNTIME, SOF_MEM_CAPS_RAM,
-		DMA_TRACE_LOCAL_SIZE);
+	buffer->addr = rballoc(RZONE_RUNTIME,
+			       SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_DMA,
+			       DMA_TRACE_LOCAL_SIZE);
 	if (buffer->addr == NULL) {
 		trace_buffer_error("ebm");
 		return -ENOMEM;
-- 
2.14.1



More information about the Sound-open-firmware mailing list