-
Notifications
You must be signed in to change notification settings - Fork 319
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
Conversation
Requires #66. |
src/include/uapi/ipc.h
Outdated
@@ -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) |
There was a problem hiding this comment.
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
src/include/uapi/ipc.h
Outdated
/* enable or disable cores - SOF_IPC_PM_ACTIVE_CORES */ | ||
struct sof_ipc_pm_active_cores { | ||
struct sof_ipc_hdr hdr; | ||
uint32_t cores_mask; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enable_mask
src/include/uapi/ipc.h
Outdated
@@ -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 { |
There was a problem hiding this comment.
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]>
45e9344
to
40575d2
Compare
Changed according to review suggestions. |
There was a problem hiding this 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?
Kernel should boot slave cores, when they are needed. Probably just before creating pipeline for specific core. |
Probably worthy of more discussions with @lgirdwood @lbetlej and @mmaka1 before merging in -next then? |
@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. |
Signed-off-by: Ryan Lee <[email protected]>
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]