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 backport] topology1: Use DYNAMIC for ADL and RPL topologies #8229

Merged
merged 10 commits into from
Sep 22, 2023

Conversation

Vamshigopal
Copy link
Contributor

use dynamic for all the adl and rpl topologies except 3p(waves,DTS), excluded Dell sdw topologies which are not tested.

@Vamshigopal
Copy link
Contributor Author

This PR is same as #8093(merged in main), direct cherry-pick had conflicts , so pushed the patch without cherry-pick.

Copy link
Collaborator

@marc-hb marc-hb left a comment

Choose a reason for hiding this comment

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

This PR is same as #8093 in main), direct cherry-pick had conflicts , so pushed the patch without cherry-pick.

We still want the line from the git cherry-pick -x command in the commit message even when there are conflicts. You must also explain how you resolved conflicts. These are especially important now because we're trying to get rid of some topology1 in the main branch and we must make sure everything has been backported.

The regular git process is:

  1. run git cherry-pick -x
  2. fix the conflicts using any editor, git tool or copy you like
  3. run git cherry-pick --continue
  4. explain the git conflicts.

This gives you a good commit message with everything required.

Speaking of backports, the easiest way to fix conflicts is often to git cherry-pick -x MORE commits = the missing ones. Have you tried that?

@marc-hb
Copy link
Collaborator

marc-hb commented Sep 19, 2023

@wszypelt https://sof-ci.01.org/sof-pr-viewer/#/build/PR8229/build12816675 has failed. It cannot be because of this pure topology commit.

@Vamshigopal
Copy link
Contributor Author

Vamshigopal commented Sep 19, 2023

Speaking of backports, the easiest way to fix conflicts is often to git cherry-pick -x MORE commits = the missing ones. Have you tried that?

yeah, we need to do backport of some other commits for cherry-pick to apply cleanly.

@marc-hb
Copy link
Collaborator

marc-hb commented Sep 19, 2023

@wszypelt https://sof-ci.01.org/sof-pr-viewer/#/build/PR8229/build12816675 has failed. It cannot be because of this pure topology commit.

Sorry I forgot quickbuild is only compatible with the main branch, ignore. It should be disabled elsewhere (PTS-45980), that would also make it much faster!

@marc-hb
Copy link
Collaborator

marc-hb commented Sep 19, 2023

BTW git cherry-pick -x is surprisingly powerful for backports:

git cherry-pick -x $rev_expr # see git help revisions

Or, even more powerful:

git log --oneline --format='%h' $rev_expr -- tools/topology* | tac |
   git cherry-pick -x --stdin
git cherry-pick --skip
# fix conflict
git cherry-pick --continue
# etc.

yeah, we need to do backport of some other commits for cherry-pick to apply cleanly.

Can you help?

@Vamshigopal
Copy link
Contributor Author

yeah, we need to do backport of some other commits for cherry-pick to apply cleanly.

Can you help?

It shows 450 patches we need to backport for stable-v2.2 branch from main, to apply the cherry-pick cleanly.

git log --oneline --format=%h origin/stable-v2.2..6f2475b -- tools/topology*

@marc-hb
Copy link
Collaborator

marc-hb commented Sep 20, 2023

git log --oneline --format=%h origin/stable-v2.2..6f2475b -- tools/topology*

This was just a "semi-random" example sorry. tools/topology* includes topology2, which we definitely do NOT want in stable-v2.2. The selection needs to be much narrower than this. It may require some manual selection too.

If you find that just a few commits are enough to avoid the current conflicts then maybe go with just that?

cujomalainey and others added 10 commits September 21, 2023 01:27
New target device, also move the path over to core 1 when running in
no_hotword mode

fixed conflict  in file tools/topology/topology1/sof-tgl-max98357a-rt5682.m4
by manually adding the change

Signed-off-by: Curtis Malainey <[email protected]>
Signed-off-by: Pin-chih Lin <[email protected]>
(cherry picked from commit 048ffd8)
Add topologies for RTNR and GOOGLE AEC integration

Signed-off-by: Curtis Malainey <[email protected]>
Signed-off-by: Pin-chih <[email protected]>
(cherry picked from commit efd3742)
Add WAVES+AEC topology

fixed conflict in tools/topology/topology1/CMakeLists.txt
by manually adding changes

Signed-off-by: Pin-chih Lin <[email protected]>
(cherry picked from commit 058dc69)
For nau8825 codec devices e.g. Kano/Volmar/Zavala, it had been observed
that when Hotword module is enabled, noticeable pop noises appear in the
playback audio. While disabled, the playback audio becomes clear.

Because Hotword module is optional, remove it for now as WA fix for noise
issue.

Signed-off-by: Pin-chih Lin <[email protected]>
(cherry picked from commit 864064d)
…e designs

with 10ms period size we have seen power improvements.
We are working to move all topologies of Chrome to 10 ms.
Starting with current RPL and ADL-N topologies.

With many topologies already using GOOGLE_RTC_PROCESSING
flag to set 10ms, making a simpler flag to be used across
to set required SPEAKER PERIOD. This helps to scale later
to all designs.

fixed conflict in tools/topology/topology1/CMakeLists.txt
by adding changes manually

Signed-off-by: Sathya Prakash M R <[email protected]>
Signed-off-by: Vamshi Krishna Gopal <[email protected]>
(cherry picked from commit a036799)
Adds cases {MAX09360A + RTNR + GOOGLE_RTC_AUDIO} and
{CS35L41 + WAVES}.

fixed conflict in tools/topology/topology1/CMakeLists.txt
by adding changes manually

Signed-off-by: Pin-chih Lin <[email protected]>
(cherry picked from commit f42d015)
Add topology case {WAVES + RT1019 CODEC}

fixed conflict in tools/topology/topology1/CMakeLists.txt
resolved by adding changes manually

Signed-off-by: Pin-chih Lin <[email protected]>
(cherry picked from commit b581aa5)
Adding support for Bluetooth offload.

sof-adl-rt1019-rt5682, and sof-adl-rt1019-rt5682-waves:
    rt5682 headphone connects SSP0 link.
    rt1019 Amp speakers connects SSP1 link.
    bluetooth offload uses SSP2 link.
Signed-off-by: Ajye Huang <[email protected]>

(cherry picked from commit 5aa1545)
Adds new topology build based on sof-adl-max98360a-rt5682-2way
with appending arg `-DDMIC_DAI_LINK_16k_PDM=STEREO_PDM1` for existing
ADL-P projects.

Signed-off-by: Pin-chih Lin <[email protected]>
(cherry picked from commit feeb51f)
use dynamic for all the adl and rpl topologies except 3p(waves,DTS),
excluded Dell sdw topologies which are not tested.

fixed conflict in tools/topology/topology1/CMakeLists.txt
resolved by adding changes manually

Signed-off-by: Vamshi Krishna Gopal <[email protected]>
(cherry picked from commit 6f2475b)
@Vamshigopal
Copy link
Contributor Author

If you find that just a few commits are enough to avoid the current conflicts then maybe go with just that?

Backported 10 commits from main branch which are important and necessary to have them in stable-v2.2 branch. let me know your thoughts.

@marc-hb
Copy link
Collaborator

marc-hb commented Sep 20, 2023

I don't have any valuable thoughts about topologies, only about git and backports :-)

From a pure git perspective this looks great!

@marc-hb marc-hb changed the title topology1: Use DYNAMIC for ADL and RPL topologies [stable-v2.2 backport] topology1: Use DYNAMIC for ADL and RPL topologies Sep 20, 2023
@kv2019i
Copy link
Collaborator

kv2019i commented Sep 21, 2023

Thanks @Vamshigopal , this looks good.

And yes, it seems we have a bit of a problem with TGL/RPL/ADL tplg1 files as the diff between mainline and stable-v2.2 has grown so big. We should have removed the tplg1 files earlier from mainline, to ensure patches are sent to the correct branch, but alas this was not done, so now backporting is more difficult than it should be.

@mengdonglin
Copy link
Collaborator

use dynamic for all the adl and rpl topologies except 3p(waves,DTS), excluded Dell sdw topologies which are not tested.

@Vamshigopal @kv2019i Dell SDW topologies are all cherry-picked to v2.2 branch. No worries.

@kv2019i kv2019i merged commit 8b48f45 into thesofproject:stable-v2.2 Sep 22, 2023
17 of 19 checks passed
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.

7 participants