Repository navigation
LL scheduler domain refinement #4089
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
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0851d45
schedule: add a core index for schedule_data
keyonjie a2188d8
cavs: timer: remove the wrong timer_disable
keyonjie 79e2923
ll_schedule_domain: add return value of domain_unregister()
keyonjie d17e28d
ll_schedule: rename num_clients to registered_cores
keyonjie 72310da
ll_schedule_domain: add flag to store the enabled cores
keyonjie d3d290c
ll_schedule: domain tasks/cores refinement
keyonjie 2efcb00
ll_schedule: add new_target_tick to ll_schedule_domain
keyonjie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
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 |
|---|---|---|
|
|
@@ -185,10 +185,11 @@ static void dma_multi_chan_domain_irq_unregister(struct dma_domain_data *data) | |
| * \param[in,out] domain Pointer to schedule domain. | ||
| * \param[in,out] task Task to be unregistered from the domain.. | ||
| * \param[in] num_tasks Number of currently scheduled tasks. | ||
| * \return Error code. | ||
| */ | ||
| static void dma_multi_chan_domain_unregister(struct ll_schedule_domain *domain, | ||
| struct task *task, | ||
| uint32_t num_tasks) | ||
| static int dma_multi_chan_domain_unregister(struct ll_schedule_domain *domain, | ||
| struct task *task, | ||
| uint32_t num_tasks) | ||
| { | ||
| struct dma_domain *dma_domain = ll_sch_domain_get_pdata(domain); | ||
| struct pipeline_task *pipe_task = pipeline_task_get(task); | ||
|
|
@@ -201,7 +202,7 @@ static void dma_multi_chan_domain_unregister(struct ll_schedule_domain *domain, | |
|
|
||
| /* check if task should be unregistered */ | ||
| if (!pipe_task->registrable) | ||
| return; | ||
| return 0; | ||
|
|
||
| for (i = 0; i < dma_domain->num_dma; ++i) { | ||
| for (j = 0; j < dmas[i].plat_data.channels; ++j) { | ||
|
|
@@ -236,9 +237,12 @@ static void dma_multi_chan_domain_unregister(struct ll_schedule_domain *domain, | |
| else if (!dma_domain->channel_mask[i][core]) | ||
| dma_multi_chan_domain_irq_unregister( | ||
| dma_domain->arg[i][core]); | ||
| return; | ||
| return 0; | ||
| } | ||
| } | ||
|
|
||
| /* task in running or unregistered at all, can't unregister it */ | ||
| return -EINVAL; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. presumably we'd end up here if the domain hadn't been registered or maybe is still busy?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, it could be either, so I use '-EINVAL' here. |
||
| } | ||
|
|
||
| /** | ||
|
|
||
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
Oops, something went wrong.
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.