pipeline/buffer: alloc them in the runtime shared zone

Make them shared between cores as they can be shared with
other pipelines, trace and possibly even DMA.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2021-06-26 10:14:08 -07:00 committed by Liam Girdwood
parent 29f0aeb913
commit 928dba0853
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ struct comp_buffer *buffer_alloc(uint32_t size, uint32_t caps, uint32_t align)
}
/* allocate new buffer */
buffer = rzalloc(SOF_MEM_ZONE_RUNTIME, 0, SOF_MEM_CAPS_RAM,
buffer = rzalloc(SOF_MEM_ZONE_RUNTIME_SHARED, 0, SOF_MEM_CAPS_RAM,
sizeof(*buffer));
if (!buffer) {
tr_err(&buffer_tr, "buffer_alloc(): could not alloc structure");

View File

@ -113,7 +113,7 @@ struct pipeline *pipeline_new(uint32_t pipeline_id, uint32_t priority, uint32_t
pipeline_id, priority);
/* allocate new pipeline */
p = rzalloc(SOF_MEM_ZONE_RUNTIME, 0, SOF_MEM_CAPS_RAM, sizeof(*p));
p = rzalloc(SOF_MEM_ZONE_RUNTIME_SHARED, 0, SOF_MEM_CAPS_RAM, sizeof(*p));
if (!p) {
pipe_cl_err("pipeline_new(): Out of Memory");
return NULL;