Skip to content

sof_insert: load snd-sof-pci/acpi _before_ they're loaded automatically - #852

Merged
plbossart merged 1 commit into
thesofproject:mainfrom
marc-hb:insert-sof-first
Feb 12, 2022
Merged

plbossart merged 1 commit into
thesofproject:mainfrom
marc-hb:insert-sof-first

Conversation

@marc-hb

@marc-hb marc-hb commented Feb 9, 2022

Copy link
Copy Markdown
Collaborator

Loading modules that are already loaded is pointless.

Now it is possible to pass module parameters.

Signed-off-by: Marc Herbert marc.herbert@intel.com

Comment thread tools/kmod/sof_insert.sh Outdated
insert_module snd_sof_acpi_intel_byt
insert_module snd_sof_acpi_intel_bdw

insert_module snd_sof_pci # ipc_type=1 sof_pci_debug=1 ...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we already pass parameters with options snd_sof_pci ipc_type=1 in a /etc/modprobe.d/something.conf

That could conflict or become inconsistent. I am not sure we want to add module parameters here, we only wanted to manage the dependencies.

To your point though it makes no sense to add them last, I think this is a left-over from earlier versions before we flipped the dependencies.

@marc-hb marc-hb Feb 9, 2022 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The ipc_type comment is only a quick hack useful locally, it's never meant to be committed and used in production. I will add a comment to clarify this (DONE)

It's useful locally because it shows up in "git diff" whereas changes in /etc/ are usually forgotten. Version control everything.

We already had this discussion in #734 :-)

@marc-hb

marc-hb commented Feb 9, 2022

Copy link
Copy Markdown
Collaborator Author

https://sof-ci.01.org/softestpr/PR852/build972/devicetest/?model=APL_UP2_NOCODEC_ZEPHYR&testcase=multiple-pipeline-playback looks very much like crash thesofproject/sof/issues/4414 and the failures happening right after it seem to be the fallout.

Loading modules that are already loaded is pointless.

Now it is possible to pass module parameters.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb marc-hb added the IPC4 label Feb 10, 2022
@marc-hb
marc-hb marked this pull request as ready for review February 11, 2022 17:40
@marc-hb
marc-hb requested a review from a team as a code owner February 11, 2022 17:40
@plbossart
plbossart merged commit d4c8312 into thesofproject:main Feb 12, 2022
@marc-hb
marc-hb deleted the insert-sof-first branch July 6, 2023 00: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