Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 367
Miscellaneous fixes for dynamic pipelines and multicore#4390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
41aa7f8
ipc: ipc3: handler: fix error handling for pm_core_enable
ranj063 577248a
schedule: edf/ll: remove list del/init during schedule free
ranj063 dadf8a5
pipeline_graph: no need to free pipeline components during pipeline_f…
ranj063 39b03e4
arch: extensa: cpu: reset stale trace point during power down
ranj063 e0ebb33
pipeline/buffer: alloc them in the runtime shared zone
ranj063 4bc8362
dai: only process DAI config for comps on cores that enabled
ranj063 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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; | ||
| @@ -184,60 +184,15 @@ void pipeline_disconnect(struct comp_dev *comp, struct comp_buffer *buffer, int | ||
| irq_local_enable(flags); | ||
| } | ||
| static int pipeline_comp_free(struct comp_dev *current, | ||
| struct comp_buffer *calling_buf, | ||
| struct pipeline_walk_context *ctx, int dir) | ||
| { | ||
| struct pipeline_data *ppl_data = ctx->comp_data; | ||
| uint32_t flags; | ||
| pipe_dbg(current->pipeline, "pipeline_comp_free(), current->comp.id = %u, dir = %u", | ||
| dev_comp_id(current), dir); | ||
| if (!comp_is_single_pipeline(current, ppl_data->start)) { | ||
| pipe_dbg(current->pipeline, "pipeline_comp_free(), current is from another pipeline"); | ||
| return 0; | ||
| } | ||
| /* complete component free */ | ||
| current->pipeline = NULL; | ||
lgirdwood marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| pipeline_for_each_comp(current, ctx, dir); | ||
| /* disconnect source from buffer */ | ||
| irq_local_disable(flags); | ||
| list_item_del(comp_buffer_list(current, dir)); | ||
lgirdwood marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| irq_local_enable(flags); | ||
| return 0; | ||
| } | ||
| /* pipelines must be inactive */ | ||
| int pipeline_free(struct pipeline *p) | ||
| { | ||
| struct pipeline_data data; | ||
| struct pipeline_walk_context walk_ctx = { | ||
| .comp_func = pipeline_comp_free, | ||
| .comp_data = &data, | ||
| }; | ||
| pipe_info(p, "pipeline_free()"); | ||
| /* make sure we are not in use */ | ||
| if (p->source_comp) { | ||
| if (p->source_comp->state > COMP_STATE_READY) { | ||
| pipe_err(p, "pipeline_free(): Pipeline in use, %u, %u", | ||
| dev_comp_id(p->source_comp), | ||
| p->source_comp->state); | ||
| return -EBUSY; | ||
| } | ||
| data.start = p->source_comp; | ||
| /* disconnect components */ | ||
| walk_ctx.comp_func(p->source_comp, NULL, &walk_ctx, | ||
| PPL_DIR_DOWNSTREAM); | ||
| } | ||
| /* | ||
| * pipeline_free should always be called only after all the widgets in the pipeline have | ||
| * been freed. | ||
| */ | ||
| /* remove from any scheduling */ | ||
| if (p->pipe_task) { | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -295,8 +295,6 @@ static void scheduler_free_edf(void *data) | ||
| /* free main task context */ | ||
| task_main_free(); | ||
| list_item_del(&edf_sch->list); | ||
ranj063 marked this conversation as resolved.
Outdated
Uh oh!There was an error while loading. Please reload this page. | ||
| irq_local_enable(flags); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.