Skip to content

Conversation

@ranj063
Copy link
Collaborator

@ranj063 ranj063 commented Jun 17, 2021

…emoval

When removing the topology components, do not power down
the primary core. Doing so will result in an IPC timeout
when the SOF PCI device runtime suspends.

Signed-off-by: Ranjani Sridharan ranjani.sridharan@linux.intel.com

plbossart
plbossart previously approved these changes Jun 17, 2021
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.

Thanks @ranj063

do we need a Fixes tag for this?

@ranj063
Copy link
Collaborator Author

ranj063 commented Jun 17, 2021

Thanks @ranj063

do we need a Fixes tag for this?

hmm that would be this one:
commit 311ce4f
Author: Liam Girdwood liam.r.girdwood@linux.intel.com
Date: Fri Apr 12 11:05:11 2019 -0500

ASoC: SOF: Add support for loading topologies

Should I add it?

@plbossart
Copy link
Member

It's more the commit below, before this we didn't have a notion of PRIMARY_CORE.

0dcdf84289fbf (Guennadi Liakhovetski 2020-09-02 17:07:54 +0300  62) #define SOF_DSP_PRIMARY_CORE 0

ASoC: SOF: add a "core" parameter to widget loading functions

@plbossart plbossart requested a review from keyonjie June 17, 2021 22:52
…emoval

When removing the topology components, do not power down
the primary core. Doing so will result in an IPC timeout
when the SOF PCI device runtime suspends.

Fixes: 0dcdf84 ("ASoC: SOF: add a "core" parameter to widget loading functions")

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
@ranj063
Copy link
Collaborator Author

ranj063 commented Jun 18, 2021

It's more the commit below, before this we didn't have a notion of PRIMARY_CORE.

0dcdf84289fbf (Guennadi Liakhovetski 2020-09-02 17:07:54 +0300  62) #define SOF_DSP_PRIMARY_CORE 0

ASoC: SOF: add a "core" parameter to widget loading functions

It's more the commit below, before this we didn't have a notion of PRIMARY_CORE.

0dcdf84289fbf (Guennadi Liakhovetski 2020-09-02 17:07:54 +0300  62) #define SOF_DSP_PRIMARY_CORE 0

ASoC: SOF: add a "core" parameter to widget loading functions

done. Thanks!

if (pipeline->core == SOF_DSP_PRIMARY_CORE)
break;

ret = snd_sof_dsp_core_power_down(sdev, 1 << pipeline->core);

Choose a reason for hiding this comment

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

how about the case that the same secondary core is used by another active pipeline? we should add ref_count to DSP cores, then we don't need to treat this Primary core explicitly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, but until then we need this change

* CTX_SAVE IPC can succeed during runtime suspend.
*/
if (pipeline->core == SOF_DSP_PRIMARY_CORE)
break;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This wil help in debugging as well.

@plbossart plbossart merged commit 7379cae into thesofproject:topic/sof-dev Jun 18, 2021
@ranj063 ranj063 deleted the fix/core_power_down branch February 13, 2022 05:10
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.

4 participants