[Sound-open-firmware] [PATCH] cnl: fix buffer caps

Liam Girdwood liam.r.girdwood at linux.intel.com
Thu Mar 15 22:09:46 CET 2018


From: Tomasz Lauda <tomasz.lauda at linux.intel.com>

DMA buffers should only reside in HEAP_HP_BUFFER.
This assures 128 byte address alignment.

Signed-off-by: Tomasz Lauda <tomasz.lauda at linux.intel.com>
---
 src/platform/cannonlake/memory.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/platform/cannonlake/memory.c b/src/platform/cannonlake/memory.c
index 16fa6008..69c445b1 100644
--- a/src/platform/cannonlake/memory.c
+++ b/src/platform/cannonlake/memory.c
@@ -75,8 +75,8 @@ struct mm memmap = {
 		.heap = HEAP_SYSTEM_BASE,
 		.size = HEAP_SYSTEM_SIZE,
 		.info = {.free = HEAP_SYSTEM_SIZE,},
-		.caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_CACHE |
-			SOF_MEM_CAPS_HP | SOF_MEM_CAPS_DMA,
+		.caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_EXT |
+			SOF_MEM_CAPS_CACHE,
 	},
 	.runtime[0] = {
 		.blocks = ARRAY_SIZE(rt_heap_map),
@@ -84,8 +84,8 @@ struct mm memmap = {
 		.heap = HEAP_RUNTIME_BASE,
 		.size = HEAP_RUNTIME_SIZE,
 		.info = {.free = HEAP_RUNTIME_SIZE,},
-		.caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_CACHE |
-			SOF_MEM_CAPS_HP | SOF_MEM_CAPS_DMA,
+		.caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_EXT |
+			SOF_MEM_CAPS_CACHE,
 	},
 	.buffer[0] = {
 		.blocks = ARRAY_SIZE(buf_heap_map),
@@ -93,8 +93,8 @@ struct mm memmap = {
 		.heap = HEAP_BUFFER_BASE,
 		.size = HEAP_BUFFER_SIZE,
 		.info = {.free = HEAP_BUFFER_SIZE,},
-		.caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_CACHE |
-			SOF_MEM_CAPS_HP | SOF_MEM_CAPS_DMA,
+		.caps = SOF_MEM_CAPS_RAM | SOF_MEM_CAPS_EXT |
+			SOF_MEM_CAPS_CACHE,
 	},
 	.buffer[1] = {
 		.blocks = ARRAY_SIZE(hp_buf_heap_map),
-- 
2.14.1



More information about the Sound-open-firmware mailing list