Skip to content

Conversation

@ranj063
Copy link
Collaborator

@ranj063 ranj063 commented Nov 14, 2022

No description provided.

@marc-hb

This comment was marked as outdated.

@marc-hb
Copy link
Collaborator

marc-hb commented Nov 14, 2022

We already have too many "magic moves" in CI that confuse everyone except a couple people,

Unsurprisingly, no IPC4 test was run in https://sof-ci.01.org/sofpr/PR6592/build2346/devicetest/index.html

@ranj063
Copy link
Collaborator Author

ranj063 commented Nov 14, 2022

COMMAND cat confheader{input_name}.conf > ../${output_dir}/${output_name}.conf

I really don't like this new, per-topology ../${output_dir} sorry. I know moving files tends to "break git" but in this case I think moving then one by one at build time is much worse. We already have too many "magic moves" in CI that confuse everyone except a couple people, let's please have at least in the build system a simple directory structure where the source tree and build tree are very similar to each other and please, please no per-file output directory. I'm afraid this could confuse not just people but even surprise CMake itself.

I know moving files tends to "break git" but...

EDIT: Wait, this PR moves sources files anyway. So no need for ../${output_dir}

@marc-hb yes thats correct. I should have squahsed the first 2 patches and remove the output_dir. Fixed now.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please move these new targets to their corresponding subdirectories to keep them self-contained.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prefer each child to add itself to the parent but no big deal.

The CAVS topologies need to be in the avs-tplg folder and the MTL
topologies need to be in sof-ace-tplg folder. Also, change the output
file names to the names expected by the kernel and the NHLT binary files
to match the topology file names.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This folder contains definitions for both CAVS and ACE. So remove the
incorrect folder naming and move everything one level up.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
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.

The CMake changes look simple and good to me, thanks for doing this!

Someone else (@plbossart ?) must approve the new names and we also need someone to cleanup some of the CI moves.

I guess it's unlikely but if someone in the future ever wants to make or convert some IPC3 to topology2 they'll have to make some abi.h-related tweaks correct? As long as that code is in a single place we can wait if/when we cross that bridge.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prefer each child to add itself to the parent but no big deal.

This will be needed for MTL.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Rename it to sof-hda-generic.conf.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
@ranj063 ranj063 requested a review from plbossart November 15, 2022 23:58
@lgirdwood
Copy link
Member

SOFCI TEST

@lgirdwood
Copy link
Member

Rerun the CI as 3 DUTs were in use for development.

@ranj063
Copy link
Collaborator Author

ranj063 commented Nov 16, 2022

Rerun the CI as 3 DUTs were in use for development.

@lgirdwood this PR will need changes in CI to deploy the topology binaries as is for testing. @fredoh9 can you please let me know when the change is ready?

@lgirdwood
Copy link
Member

@fredoh9 @ranj063 what's the ETA for CI updates so this can be merged ?

@fredoh9
Copy link
Contributor

fredoh9 commented Nov 28, 2022

what's the ETA for CI updates so this can be merged ?

One PR is pending in review, I think, we can get reviewed in 1-2 days.

Copy link
Contributor

@aborisovich aborisovich left a comment

Choose a reason for hiding this comment

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

I've started to request changes on fixing those variables with
set(TPLGS ...) and then noticed they are multiline strings...
So ugly but yeah... Did not find any alternative to it.
A good piece of CMake code.

@marc-hb
Copy link
Collaborator

marc-hb commented Nov 30, 2022

So ugly but yeah... Did not find any alternative to it.

All my CMake dreams shattered in just one pen stroke....

Couldn't these lists be read from some (JSON?) configuration file? EDIT: I mean IN THE FUTURE, NOT IN THIS PR.

@miRoox
Copy link

miRoox commented Nov 30, 2022

SOFCI TEST

@lgirdwood
Copy link
Member

@fredoh9 any update on ETA ?

@fredoh9
Copy link
Contributor

fredoh9 commented Nov 30, 2022

@lgirdwood @ranj063 Now ready to merge!

@ranj063
Copy link
Collaborator Author

ranj063 commented Nov 30, 2022

So ugly but yeah... Did not find any alternative to it.

All my CMake dreams shattered in just one pen stroke....

Couldn't these lists be read from some (JSON?) configuration file? EDIT: I mean IN THE FUTURE, NOT IN THIS PR.

json would be fine but it will just be another file to maintain though

@ranj063 ranj063 merged commit 0bdf8e3 into thesofproject:main Dec 1, 2022
@ranj063 ranj063 deleted the fix/cavs_tplgs branch December 1, 2022 00:55
@miRoox

This comment was marked as resolved.

@marc-hb
Copy link
Collaborator

marc-hb commented Dec 1, 2022

Which topology file is corresponding to the cavs-mixin-mixout-hda-4ch-mtl.tplg:

What does "correspond" mean? Are we still renaming .tplg files in CI and not testing sof-bin releases? The purpose of this PR is to stop that.

json would be fine but it will just be another file to maintain though

The idea would be to separate data and code. Should not add any line. This would make filenames in git log --stat useful again.

@miRoox
Copy link

miRoox commented Dec 1, 2022

What does "correspond" mean?

corresponding to the cavs-mixin-mixout-hda-4ch-mtl.tplg before this PR. Just confused with the cavs-passthrough-hdmi before. Ranjani said passthrough topology files have been deleted, so no confusion.

Are we still renaming .tplg files in CI and not testing sof-bin releases? The purpose of this PR is to stop that.

It reduced a lot of renaming for IPC4 topology files, but we still need: mtl-sdw-dmic =>sof-mtl-rt711-4ch on MTLP_RVP_SDW

[  104.079178] kernel: snd_sof:snd_sof_load_topology: sof-audio-pci-intel-mtl 0000:00:1f.3: loading topology:intel/sof-ace-tplg/sof-mtl-rt711-4ch.tplg

and sof-tgl-nocodec =>sof-adl-nocodec just like what we done in topology2.

I'm not sure if they are a bug. But if these can be handled in CMake, I think it would be better.

@ranj063
Copy link
Collaborator Author

ranj063 commented Dec 1, 2022

I'm not sure if they are a bug. But if these can be handled in CMake, I think it would be better.

Thanks for pointing these out @miRoox. Let me submit a fix for these.

@ranj063
Copy link
Collaborator Author

ranj063 commented Dec 1, 2022

sof-mtl-rt711-4ch

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.

8 participants