Skip to content

Commit 55054af

Browse files
authored
Merge pull request #464 from singalsu/fix_bug_in_new_1k_alloc_buffers
Memory: Fix bug in previous commit that introduced 1k buffers
2 parents 2bcafb7 + 796596d commit 55054af

4 files changed

Lines changed: 12 additions & 8 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
#define HEAP_RT_COUNT128 32
137137
#define HEAP_RT_COUNT256 64
138138
#define HEAP_RT_COUNT512 32
139-
#define HEAP_RT_COUNT1024 1
139+
#define HEAP_RT_COUNT1024 4
140140

141141
#define L2_VECTOR_SIZE 0x1000
142142

@@ -154,7 +154,8 @@
154154
#define HEAP_RUNTIME_BASE (HEAP_SYSTEM_1_BASE + HEAP_SYSTEM_1_SIZE)
155155
#define HEAP_RUNTIME_SIZE \
156156
(HEAP_RT_COUNT64 * 64 + HEAP_RT_COUNT128 * 128 + \
157-
HEAP_RT_COUNT256 * 256 + HEAP_RT_COUNT512 * 512)
157+
HEAP_RT_COUNT256 * 256 + HEAP_RT_COUNT512 * 512 + \
158+
HEAP_RT_COUNT1024 * 1024)
158159

159160
#define HEAP_BUFFER_BASE (HEAP_RUNTIME_BASE + HEAP_RUNTIME_SIZE)
160161
#define HEAP_BUFFER_SIZE (SOF_STACK_END - HEAP_BUFFER_BASE)

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
#define HEAP_RT_COUNT128 32
177177
#define HEAP_RT_COUNT256 64
178178
#define HEAP_RT_COUNT512 32
179-
#define HEAP_RT_COUNT1024 1
179+
#define HEAP_RT_COUNT1024 4
180180

181181
#define L2_VECTOR_SIZE 0x1000
182182

@@ -266,7 +266,8 @@
266266
#define HEAP_RUNTIME_BASE (HEAP_SYSTEM_3_BASE + HEAP_SYSTEM_3_SIZE)
267267
#define HEAP_RUNTIME_SIZE \
268268
(HEAP_RT_COUNT64 * 64 + HEAP_RT_COUNT128 * 128 + \
269-
HEAP_RT_COUNT256 * 256 + HEAP_RT_COUNT512 * 512)
269+
HEAP_RT_COUNT256 * 256 + HEAP_RT_COUNT512 * 512 + \
270+
HEAP_RT_COUNT1024 * 1024)
270271

271272
/* Stack configuration */
272273
#define SOF_STACK_SIZE 0x2000

src/platform/icelake/include/platform/memory.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
#define HEAP_RT_COUNT128 32
177177
#define HEAP_RT_COUNT256 64
178178
#define HEAP_RT_COUNT512 32
179-
#define HEAP_RT_COUNT1024 1
179+
#define HEAP_RT_COUNT1024 4
180180

181181
#define L2_VECTOR_SIZE 0x1000
182182

@@ -266,7 +266,8 @@
266266
#define HEAP_RUNTIME_BASE (HEAP_SYSTEM_3_BASE + HEAP_SYSTEM_3_SIZE)
267267
#define HEAP_RUNTIME_SIZE \
268268
(HEAP_RT_COUNT64 * 64 + HEAP_RT_COUNT128 * 128 + \
269-
HEAP_RT_COUNT256 * 256 + HEAP_RT_COUNT512 * 512)
269+
HEAP_RT_COUNT256 * 256 + HEAP_RT_COUNT512 * 512 + \
270+
HEAP_RT_COUNT1024 * 1024)
270271

271272
/* Stack configuration */
272273
#define SOF_STACK_SIZE 0x2000

src/platform/suecreek/include/platform/memory.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
#define HEAP_RT_COUNT128 32
165165
#define HEAP_RT_COUNT256 64
166166
#define HEAP_RT_COUNT512 32
167-
#define HEAP_RT_COUNT1024 1
167+
#define HEAP_RT_COUNT1024 4
168168

169169
#define L2_VECTOR_SIZE 0x2000
170170

@@ -221,7 +221,8 @@
221221
#define HEAP_RUNTIME_BASE (HEAP_SYSTEM_1_BASE + HEAP_SYSTEM_1_SIZE)
222222
#define HEAP_RUNTIME_SIZE \
223223
(HEAP_RT_COUNT64 * 64 + HEAP_RT_COUNT128 * 128 + \
224-
HEAP_RT_COUNT256 * 256 + HEAP_RT_COUNT512 * 512)
224+
HEAP_RT_COUNT256 * 256 + HEAP_RT_COUNT512 * 512 + \
225+
HEAP_RT_COUNT1024 * 1024)
225226

226227
/* Stack configuration */
227228
#define SOF_STACK_SIZE 0x2000

0 commit comments

Comments
 (0)