Skip to content
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

ipc: add SOF_IPC_PM_CORE_ENABLE message #68

Merged
merged 1 commit into from
Jul 14, 2018

Conversation

tlauda
Copy link
Contributor

@tlauda tlauda commented Jul 6, 2018

Adds definition and implementation of new IPC
message, which allows to enable and disable cores
based on passed enable_mask.

Signed-off-by: Tomasz Lauda [email protected]

@tlauda
Copy link
Contributor Author

tlauda commented Jul 6, 2018

Requires #66.

@@ -101,6 +101,7 @@
#define SOF_IPC_PM_CLK_SET SOF_CMD_TYPE(0x004)
#define SOF_IPC_PM_CLK_GET SOF_CMD_TYPE(0x005)
#define SOF_IPC_PM_CLK_REQ SOF_CMD_TYPE(0x006)
#define SOF_IPC_PM_ACTIVE_CORES SOF_CMD_TYPE(0x007)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SOF_IPC_PM_CORE_ENA

/* enable or disable cores - SOF_IPC_PM_ACTIVE_CORES */
struct sof_ipc_pm_active_cores {
struct sof_ipc_hdr hdr;
uint32_t cores_mask;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enable_mask

@@ -817,6 +818,12 @@ struct sof_ipc_pm_ctx {
struct sof_ipc_pm_ctx_elem elems[];
};

/* enable or disable cores - SOF_IPC_PM_ACTIVE_CORES */
struct sof_ipc_pm_active_cores {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best to call this sof_ipc_pm_core_config as we could eventually add other core PM data in here too.

Adds definition and implementation of new IPC
message, which allows to enable and disable cores
based on passed enable_mask.

Signed-off-by: Tomasz Lauda <[email protected]>
@tlauda tlauda changed the title ipc: add SOF_IPC_PM_ACTIVE_CORES message ipc: add SOF_IPC_PM_CORE_ENABLE message Jul 10, 2018
@tlauda
Copy link
Contributor Author

tlauda commented Jul 11, 2018

Changed according to review suggestions.

Copy link
Member

@plbossart plbossart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objection but what is the expectation from the kernel side? are all the cores assumed to be on on startup when the firmware boots, or is the kernel supposed to turn cores on? If yes, based on what information?

@tlauda
Copy link
Contributor Author

tlauda commented Jul 13, 2018

Kernel should boot slave cores, when they are needed. Probably just before creating pipeline for specific core.

@plbossart
Copy link
Member

Probably worthy of more discussions with @lgirdwood @lbetlej and @mmaka1 before merging in -next then?

@tlauda
Copy link
Contributor Author

tlauda commented Jul 14, 2018

@mmaka1 is working on some proposal regarding multicore tasking and scheduling, but I think that this change is agnostic. It only exposes interface for enabling cores. How the kernel will use it can be decided later on.

@lgirdwood lgirdwood merged commit ca6b403 into thesofproject:next Jul 14, 2018
@tlauda tlauda deleted the topic/ipc_active_cores branch November 22, 2019 11:25
ryans-lee pushed a commit to ryans-lee/sof that referenced this pull request Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants