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

[stable-v2.2] sof-glk-nocodec: disable pipelines when disabling SSPs #8173

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Sep 7, 2023

[Pure, clean cherry-pick from main branch #8175]

When we added the flags to disable SSP0 and SSP1 on the UP2, we took the shortcut of just removing the PCMs in topology but left the pipelines and widgets in the topology in. While this works in practice to prevent us from testing those SSPs, the right way is to also remove those pipelines also when the SSPs are disabled.

This stops tplgtool2.py that complained constantly about this inconsistency since thesofproject/sof-test#1079 and made the sof-test verify-tplg-binary.sh fail every time:

tplgtool2.py sof-glk-nocodec.tplg

ERROR: No pcm id=0 for widget=PCM0C
ERROR: No pcm id=1 for widget=PCM1C
ERROR: No pcm id=0 for widget=PCM0P
ERROR: No pcm id=1 for widget=PCM1P
ERROR: tplgtool2.py returned 4

This change affects only sof-apl-nocodec and sof-glk-nocodec.

(cherry picked from commit 9ccfbc4)

@marc-hb
Copy link
Collaborator Author

marc-hb commented Sep 7, 2023

https://sof-ci.01.org/sofpr/PR8173/build12674/devicetest/index.html?model=APL_UP2_NOCODEC&testcase=verify-tplg-binary is now passing and the graph looks good! Thanks @ranj063 for the fix.

The kernel crash in https://sof-ci.01.org/sofpr/PR8173/build12674/devicetest/index.html?model=GLK_BOB_DA7219&testcase=check-sof-logger is known and unrelated (it's a different topology).

Quickbuild https://sof-ci.01.org/sof-pr-viewer/#/build/PR8173/build12741623 does not support stable-v2.2, will never pass.

I will submit to the main branch first (EDIT: #8175) to keep the usual flow and I will cherry-pick back here after merge.

@marc-hb
Copy link
Collaborator Author

marc-hb commented Sep 7, 2023

Here are the before/after topologies:

OLD-sof-glk-nocodec

NEW-sof-glk-nocodec

@ranj063
Copy link
Collaborator

ranj063 commented Sep 7, 2023

Here are the before/after topologies:

OLD-sof-glk-nocodec

NEW-sof-glk-nocodec

@marc-hb i've updated the patch to remove the DAI pipelines for SSP0/SSP1 for APL/GLK as well

@marc-hb marc-hb force-pushed the fix-nocodec-pipeline branch 2 times, most recently from 8c30faa to 6d1879f Compare September 8, 2023 21:57
@marc-hb
Copy link
Collaborator Author

marc-hb commented Sep 8, 2023

Thanks again, looks better!

NEW2-sof-glk-nocodec

When we added the flags to disable SSP0 and SSP1 on the UP2, we took the
shortcut of just removing the PCMs in topology but left the pipelines
and widgets in the topology in. While this works in practice to prevent
us from testing those SSPs, the right way is to also remove those
pipelines also when the SSPs are disabled.

This stops tplgtool2.py from complaining constantly about this
inconsistency since thesofproject/sof-test#1079
which made the sof-test verify-tplg-binary.sh fail every time:

```
tplgtool2.py sof-glk-nocodec.tplg

ERROR: No pcm id=0 for widget=PCM0C
ERROR: No pcm id=1 for widget=PCM1C
ERROR: No pcm id=0 for widget=PCM0P
ERROR: No pcm id=1 for widget=PCM1P
ERROR: tplgtool2.py returned 4
```

This change affects only sof-apl-nocodec and sof-glk-nocodec.

Signed-off-by: Marc Herbert <[email protected]>
Signed-off-by: Ranjani Sridharan <[email protected]>
(cherry picked from commit 9ccfbc4)
@marc-hb marc-hb force-pushed the fix-nocodec-pipeline branch from 6d1879f to 6ba2a59 Compare September 11, 2023 15:44
@marc-hb marc-hb changed the title [TEST IGNORE] sof-glk-nocodec: disable pipelines when disabling SSPs sof-glk-nocodec: disable pipelines when disabling SSPs Sep 11, 2023
@marc-hb marc-hb changed the title sof-glk-nocodec: disable pipelines when disabling SSPs [stable-v2.2] sof-glk-nocodec: disable pipelines when disabling SSPs Sep 11, 2023
@marc-hb marc-hb marked this pull request as ready for review September 11, 2023 16:19
@marc-hb
Copy link
Collaborator Author

marc-hb commented Sep 11, 2023

In https://sof-ci.01.org/sofpr/PR8173/build12777/devicetest, sh-jsl-rvp-nocodec-03 could not boot linux-image-6.5.0-rc6-daily-nocodec-20230910-0-g72c81dd02f0a_6.5.0-rc6-topic-sof-dev_amd64.deb. There is zero log on the system for that boot. The system was non-responsive, power-cycled and fell back on 5.15.0-25-generic. It has successfully booted 6.5.0-rc6-daily-nocodec-20230907-0-g9ec8e50c3834 and 6.5.0-rc6-pr4582-6558-nocodec-g1c1e689f1485 the days before. Probably just a glitch as there are only 6 unrelated kernel commits difference. This is all just for the record, totally unrelated to this PR.

Everything else is green.

@marc-hb
Copy link
Collaborator Author

marc-hb commented Sep 11, 2023

SOFCI TEST

Re-run and everything is all green (now with sh-jsl-rvp-nocodec-04)
https://sof-ci.01.org/sofpr/PR8173/build12785/devicetest

@marc-hb marc-hb merged commit 96b9a1a into thesofproject:stable-v2.2 Sep 11, 2023
19 checks passed
@marc-hb marc-hb deleted the fix-nocodec-pipeline branch September 11, 2023 18:36
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