Skip to content

cpu: enabling and disabling slave cores#66

Merged
lgirdwood merged 1 commit intothesofproject:nextfrom
tlauda:topic/cpu_enable_core
Jul 10, 2018
Merged

cpu: enabling and disabling slave cores#66
lgirdwood merged 1 commit intothesofproject:nextfrom
tlauda:topic/cpu_enable_core

Conversation

@tlauda
Copy link
Copy Markdown
Contributor

@tlauda tlauda commented Jul 6, 2018

Implements full flow for enabling and disabling
slave cores. Core power operations availability
based on architecture.

Signed-off-by: Tomasz Lauda tomasz.lauda@linux.intel.com

Copy link
Copy Markdown
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

Just needs to be a little bit more xtensa generic

Comment thread src/arch/xtensa/smp/cpu.c Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not xtensa generic code but platform specific (the interrupts are probably better enabled by arch_cpu_enable_core() caller).

Comment thread src/arch/xtensa/smp/cpu.c Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This declaration need to be at top of function.

Implements full flow for enabling and disabling
slave cores. Core power operations availability
based on architecture.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
@tlauda tlauda force-pushed the topic/cpu_enable_core branch from d8cea45 to b4004e8 Compare July 10, 2018 08:11
@tlauda
Copy link
Copy Markdown
Contributor Author

tlauda commented Jul 10, 2018

Moved idc interrupt enabling to arch/idc.h, but I believe it's still better to call it from arch_cpu_enable_core(). Generally it's really hard to create the line between arch and platform, since platform forces us to use specific arch. In case of multicore and idc, calling hierarchy is from generic -> platform -> arch, so we can directly use methods from arch/idc.h in arch/cpu.c.

@lgirdwood lgirdwood merged commit d39d8ee into thesofproject:next Jul 10, 2018
@tlauda tlauda deleted the topic/cpu_enable_core branch November 22, 2019 11:25
ryans-lee pushed a commit to ryans-lee/sof that referenced this pull request Jul 6, 2020
Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com>
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.

2 participants