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

[BUG][CML-H] Warning "soc_dpcm_fe_runtime_update doesn't support Multi CPU yet" info shows in dmesg. #1970

Closed
sinahuang opened this issue Apr 1, 2020 · 17 comments
Assignees
Labels
bug Something isn't working CML Applies to Comet Lake platform P3 Low-impact bugs or features

Comments

@sinahuang
Copy link

sinahuang commented Apr 1, 2020

Describe the bug
Warning "soc_dpcm_fe_runtime_update doesn't support Multi CPU yet" info shows in dmesg. Function can't be effected when this info displayed.

To Reproduce
1.Boot up system successfully.
2.Check the dmesg.

Reproduce rate
5/5

Expected result
"soc_dpcm_fe_runtime_update doesn't support Multi CPU yet" info should not show in dmesg.

Actual result
Warning "soc_dpcm_fe_runtime_update doesn't support Multi CPU yet" info shows in dmesg.

[    4.374101] intel-master sdw-master-1: sdw_deprepare_stream: failed -22
[    4.374103] sdw_deprepare_stream: subdevice #0-Playback: inconsistent state state 1
[    4.374106] intel-master sdw-master-2: sdw_deprepare_stream: failed -22
[    4.374214] sof-audio-pci 0000:00:1f.3: pcm: close stream 2 dir 0
[    4.377065] sof-audio-pci 0000:00:1f.3: ipc tx: 0x50010000: GLB_COMP_MSG: SET_VALUE
[    4.377464] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x50010000: GLB_COMP_MSG: SET_VALUE
[    4.378557]  SDW1-Playback: soc_dpcm_fe_runtime_update doesn't support Multi CPU yet
[    4.382991]  SDW1-Playback: soc_dpcm_fe_runtime_update doesn't support Multi CPU yet
[    4.383024]  SDW1-Playback: soc_dpcm_fe_runtime_update doesn't support Multi CPU yet
[    4.384915] sof-audio-pci 0000:00:1f.3: ipc tx: 0x50010000: GLB_COMP_MSG: SET_VALUE
[    4.385211] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x50010000: GLB_COMP_MSG: SET_VALUE
[    4.385237] sof-audio-pci 0000:00:1f.3: ipc tx: 0x50010000: GLB_COMP_MSG: SET_VALUE
[    4.385526] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x50010000: GLB_COMP_MSG: SET_VALUE
[    4.386336] sof-audio-pci 0000:00:1f.3: pcm: open stream 0 dir 0
[    4.386339] sof-audio-pci 0000:00:1f.3: period min 192 max 16384 bytes
[    4.386341] sof-audio-pci 0000:00:1f.3: period count 2 max 16
[    4.386342] sof-audio-pci 0000:00:1f.3: buffer max 65536 bytes

Test recipe

Kernel:https://github.com/thesofproject/linux/commits/topic/sof-dev commit:3bdd89d
FW: https://github.com/thesofproject/sof/commits/master commit: thesofproject/sof@1e39cee
Tplg: Same with FW branch, sof-cml-rt711-rt1308-rt715.tplg
Platform:CML-H Laptop with codec ALC711, 2 x RT1308, RT715 in SDW mode.

dmesg04.log

@sinahuang sinahuang added bug Something isn't working CML Applies to Comet Lake platform labels Apr 1, 2020
@plbossart
Copy link
Member

@sinahuang you are looking at the wrong part of the dmesg, there is an earlier issue

[    4.374101] intel-master sdw-master-1: sdw_deprepare_stream: failed -22
[    4.374103] sdw_deprepare_stream: subdevice #0-Playback: inconsistent state state 1
[    4.374106] intel-master sdw-master-2: sdw_deprepare_stream: failed -22

@sinahuang
Copy link
Author

sinahuang commented Apr 2, 2020

Yes, tracked another earlier issue by thesofproject/sof#2690

@mengdonglin mengdonglin added P2 Critical bugs or normal features P3 Low-impact bugs or features and removed P2 Critical bugs or normal features labels Apr 2, 2020
@mengdonglin mengdonglin changed the title [BUG][CML-H]"soc_dpcm_fe_runtime_update doesn't support Multi CPU yet" info shows in dmesg. [BUG][CML-H] Warning "soc_dpcm_fe_runtime_update doesn't support Multi CPU yet" info shows in dmesg. Apr 2, 2020
@sinahuang
Copy link
Author

sinahuang commented May 27, 2020

Issue still can be reproduced on CML-H with latest sof-dev(866e4d5) +master (thesofproject/sof@90ddae9)

@plbossart
Copy link
Member

Can you try with PR #2070 ?

@sinahuang
Copy link
Author

Check with PR #2070, aplay -l display "no soundcard", dmesg shows "ASoC: can't create pcm iDisp1 :-22".

[    2.829406] rt715 sdw:3:25d:715:0: sdw_modify_slave_status: signaling completion for Slave 1
[    2.831969] snd_hda_codec_hdmi ehdaudio0D2: hdmi: pcm_num set to 3
[    2.831972] sof-audio-pci 0000:00:1f.3: display power disable
[    2.832024] sof_sdw sof_sdw: rt711-aif1 <-> SDW0 Pin2 mapping ok
[    2.832028] sof_sdw sof_sdw: rt711-aif1 <-> SDW0 Pin3 mapping ok
[    2.832040] sof_sdw sof_sdw: multicodec <-> multicpu mapping ok
[    2.832044] sof_sdw sof_sdw: rt715-aif2 <-> SDW3 Pin2 mapping ok
[    2.832047] sof_sdw sof_sdw: CPU DAI iDisp1 Pin for rtd iDisp1 does not support capture
[    2.832050] sof_sdw sof_sdw: ASoC: can't create pcm iDisp1 :-22
[    2.832155] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0x1010f0f successful
[    2.832165] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f successful
[    2.832178] sof-audio-pci 0000:00:1f.3: DSP core(s) enabled? 0 : core_mask 1
[    2.832195] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f successful
[    2.832201] sof-audio-pci 0000:00:1f.3: FW Poll Status: reg=0xf0f successful

dmesg1.log

@plbossart
Copy link
Member

@sinahuang can you please re-check, the error with HDMI was fixed, thank you.

@sinahuang
Copy link
Author

sinahuang commented Jun 10, 2020

Original issue still can be seen with latest sof-dev(commit:2839e03) +master (commit: b504367) on CML-H.
dmesg.log
sof_trace.log

[    2.138527] sof-audio-pci 0000:00:1f.3: display power disable
[    2.144974] rt711 sdw:0:25d:711:0: Slave impl defined interrupt
[    2.178050]  SDW1-Playback: soc_dpcm_fe_runtime_update doesn't support Multi CPU yet
[    2.178062]  SDW1-Playback: soc_dpcm_fe_runtime_update doesn't support Multi CPU yet
[    2.178077] sof-audio-pci 0000:00:1f.3: ipc tx: 0x50010000: GLB_COMP_MSG: SET_VALUE
[    2.178243] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x50010000: GLB_COMP_MSG: SET_VALUE
[    2.178256] sof-audio-pci 0000:00:1f.3: ipc tx: 0x50010000: GLB_COMP_MSG: SET_VALUE
[    2.178413] sof-audio-pci 0000:00:1f.3: ipc tx succeeded: 0x50010000: GLB_COMP_MSG: SET_VALUE

@plbossart
Copy link
Member

@bardliao @RanderWang can you please look into this?

@bardliao bardliao self-assigned this Jun 10, 2020
@bardliao
Copy link
Collaborator

@bardliao @RanderWang can you please look into this?

Yes, I will look into this.

@bardliao
Copy link
Collaborator

@sinahuang Can you try with #2183 ?

@bardliao
Copy link
Collaborator

@plbossart The fe argument in soc_dpcm_fe_runtime_update() is not only FE, but also BE. See for_each_card_rtds. And it seems that we only need to handle FE in soc_dpcm_fe_runtime_update(). So my idea is to skip BE in soc_dpcm_fe_runtime_update(). What do you think?

@sinahuang
Copy link
Author

Error can't be reproduced with PR #2183.

@plbossart
Copy link
Member

No, the fix is simpler:

	if (fe->num_cpus > 1) {
		dev_err(fe->dev,
			"%s doesn't support Multi CPU yet\n", __func__);
		return -EINVAL;
	}

	if (!fe->dai_link->dynamic)
		return 0;

we need to invert the two tests :-)
I'll send a PR later today.

plbossart added a commit to plbossart/sound that referenced this issue Jun 10, 2020
soc_dpcm_fe_runtime_update() is called for all dailinks, and we want
to first discard all back-ends, then deal with front-ends.

The existing code first reports an error with multi-cpu front-ends,
and that check needs to be moved after we know that we are dealing
with a front-end.

BugLink: thesofproject#1970
Fixes: 6e1276a ('ASoC: Return error if the function does not
support multi-cpu')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
@plbossart
Copy link
Member

@sinahuang can you try with PR #2185? Thanks!

@sinahuang
Copy link
Author

Error not seen on CML-H with PR #2185 +master (commit:700ca2a).

plbossart added a commit that referenced this issue Jun 11, 2020
soc_dpcm_fe_runtime_update() is called for all dailinks, and we want
to first discard all back-ends, then deal with front-ends.

The existing code first reports an error with multi-cpu front-ends,
and that check needs to be moved after we know that we are dealing
with a front-end.

BugLink: #1970
Fixes: 6e1276a ('ASoC: Return error if the function does not
support multi-cpu')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
@sinahuang
Copy link
Author

Issue can't be reproduced after PR #2185 merged, so closed it.

@plbossart
Copy link
Member

Thanks @sinahuang for checking!

plbossart added a commit that referenced this issue Jun 12, 2020
soc_dpcm_fe_runtime_update() is called for all dailinks, and we want
to first discard all back-ends, then deal with front-ends.

The existing code first reports an error with multi-cpu front-ends,
and that check needs to be moved after we know that we are dealing
with a front-end.

BugLink: #1970
Fixes: 6e1276a ('ASoC: Return error if the function does not
support multi-cpu')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
fengguang pushed a commit to 0day-ci/linux that referenced this issue Jun 13, 2020
soc_dpcm_fe_runtime_update() is called for all dailinks, and we want
to first discard all back-ends, then deal with front-ends.

The existing code first reports an error with multi-cpu front-ends,
and that check needs to be moved after we know that we are dealing
with a front-end.

BugLink: thesofproject#1970
Fixes: 6e1276a ('ASoC: Return error if the function does not
support multi-cpu')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
ruscur pushed a commit to ruscur/linux that referenced this issue Jun 16, 2020
soc_dpcm_fe_runtime_update() is called for all dailinks, and we want
to first discard all back-ends, then deal with front-ends.

The existing code first reports an error with multi-cpu front-ends,
and that check needs to be moved after we know that we are dealing
with a front-end.

Fixes: 6e1276a ('ASoC: Return error if the function does not support multi-cpu')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
BugLink: thesofproject#1970
Link: https://lore.kernel.org/r/20200612203507.25621-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
hohoxu pushed a commit to hohoxu/n5kernel that referenced this issue Jun 26, 2020
soc_dpcm_fe_runtime_update() is called for all dailinks, and we want
to first discard all back-ends, then deal with front-ends.

The existing code first reports an error with multi-cpu front-ends,
and that check needs to be moved after we know that we are dealing
with a front-end.

Fixes: 6e1276a ('ASoC: Return error if the function does not support multi-cpu')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
BugLink: thesofproject/linux#1970
Link: https://lore.kernel.org/r/20200612203507.25621-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Whissi pushed a commit to Whissi/linux-stable that referenced this issue Jul 1, 2020
[ Upstream commit 96bf62f ]

soc_dpcm_fe_runtime_update() is called for all dailinks, and we want
to first discard all back-ends, then deal with front-ends.

The existing code first reports an error with multi-cpu front-ends,
and that check needs to be moved after we know that we are dealing
with a front-end.

Fixes: 6e1276a ('ASoC: Return error if the function does not support multi-cpu')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
BugLink: thesofproject/linux#1970
Link: https://lore.kernel.org/r/20200612203507.25621-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
9034725985 pushed a commit to continuousimprovement/linux-rc that referenced this issue Jul 4, 2020
soc_dpcm_fe_runtime_update() is called for all dailinks, and we want
to first discard all back-ends, then deal with front-ends.

The existing code first reports an error with multi-cpu front-ends,
and that check needs to be moved after we know that we are dealing
with a front-end.

Fixes: 6e1276a ('ASoC: Return error if the function does not support multi-cpu')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
BugLink: thesofproject/linux#1970
Link: https://lore.kernel.org/r/20200612203507.25621-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
steev pushed a commit to steev/linux that referenced this issue Jul 4, 2020
[ Upstream commit 96bf62f ]

soc_dpcm_fe_runtime_update() is called for all dailinks, and we want
to first discard all back-ends, then deal with front-ends.

The existing code first reports an error with multi-cpu front-ends,
and that check needs to be moved after we know that we are dealing
with a front-end.

Fixes: 6e1276a ('ASoC: Return error if the function does not support multi-cpu')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
BugLink: thesofproject#1970
Link: https://lore.kernel.org/r/20200612203507.25621-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fifteenhex pushed a commit to fifteenhex/linux that referenced this issue Jul 25, 2020
soc_dpcm_fe_runtime_update() is called for all dailinks, and we want
to first discard all back-ends, then deal with front-ends.

The existing code first reports an error with multi-cpu front-ends,
and that check needs to be moved after we know that we are dealing
with a front-end.

Fixes: 6e1276a ('ASoC: Return error if the function does not support multi-cpu')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
BugLink: thesofproject#1970
Link: https://lore.kernel.org/r/20200612203507.25621-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
fifteenhex pushed a commit to fifteenhex/linux that referenced this issue Jul 28, 2020
soc_dpcm_fe_runtime_update() is called for all dailinks, and we want
to first discard all back-ends, then deal with front-ends.

The existing code first reports an error with multi-cpu front-ends,
and that check needs to be moved after we know that we are dealing
with a front-end.

Fixes: 6e1276a ('ASoC: Return error if the function does not support multi-cpu')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
BugLink: thesofproject#1970
Link: https://lore.kernel.org/r/20200612203507.25621-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
fifteenhex pushed a commit to fifteenhex/linux that referenced this issue Jul 28, 2020
soc_dpcm_fe_runtime_update() is called for all dailinks, and we want
to first discard all back-ends, then deal with front-ends.

The existing code first reports an error with multi-cpu front-ends,
and that check needs to be moved after we know that we are dealing
with a front-end.

Fixes: 6e1276a ('ASoC: Return error if the function does not support multi-cpu')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
BugLink: thesofproject#1970
Link: https://lore.kernel.org/r/20200612203507.25621-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
fifteenhex pushed a commit to fifteenhex/linux that referenced this issue Jul 29, 2020
soc_dpcm_fe_runtime_update() is called for all dailinks, and we want
to first discard all back-ends, then deal with front-ends.

The existing code first reports an error with multi-cpu front-ends,
and that check needs to be moved after we know that we are dealing
with a front-end.

Fixes: 6e1276a ('ASoC: Return error if the function does not support multi-cpu')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
BugLink: thesofproject#1970
Link: https://lore.kernel.org/r/20200612203507.25621-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
fifteenhex pushed a commit to fifteenhex/linux that referenced this issue Aug 1, 2020
soc_dpcm_fe_runtime_update() is called for all dailinks, and we want
to first discard all back-ends, then deal with front-ends.

The existing code first reports an error with multi-cpu front-ends,
and that check needs to be moved after we know that we are dealing
with a front-end.

Fixes: 6e1276a ('ASoC: Return error if the function does not support multi-cpu')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
BugLink: thesofproject#1970
Link: https://lore.kernel.org/r/20200612203507.25621-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CML Applies to Comet Lake platform P3 Low-impact bugs or features
Projects
None yet
Development

No branches or pull requests

4 participants