Skip to content

Conversation

@XiaoyunWu6666
Copy link
Contributor

Currently, sof-logger is not supported when running IPC4 mode.

Thus, disable SOF logs collection globally when DUT runs IPC4 mode (this can be telled by system file /sys/module/snd_sof_pci/parameters/ipc_type).

This should be removed after sof-logger support for IPC4 has been provided.

Signed-off-by: Xiaoyun Wu(Iris) xiaoyun.wu@intel.com

@XiaoyunWu6666 XiaoyunWu6666 requested a review from a team as a code owner March 23, 2022 05:37
@XiaoyunWu6666 XiaoyunWu6666 changed the base branch from sof-logger-IPC4 to main March 23, 2022 05:38
@XiaoyunWu6666
Copy link
Contributor Author

this can replace PR https://github.com/intel-innersource/drivers.audio.ci.sof-sh/pull/53 and https://github.com/intel-innersource/drivers.audio.ci.sof-framework/pull/202.
We make sof-test disable sof-logger directly when it detects ipc4 setting in system file , instead of passing the SOF_LOGGING variable to test framework or setting it as the environment variable

case-lib/lib.sh Outdated
{
local ipc_type

ipcFile=/sys/module/snd_sof_pci/parameters/ipc_type

Choose a reason for hiding this comment

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

snake case: ipc_file

@XiaoyunWu6666 XiaoyunWu6666 force-pushed the sof-logger-IPC4 branch 2 times, most recently from 6694d86 to a38a81d Compare March 23, 2022 08:29
Currently, sof-logger is not supported when running IPC4 mode.

Thus, disable SOF logs collection globally when DUT runs IPC4 mode.

This should be removed after sof-logger support for IPC4 has been
provided.

Signed-off-by: Xiaoyun Wu(Iris) <xiaoyun.wu@intel.com>
@XiaoyunWu6666
Copy link
Contributor Author

test result on DUT is as expected

@XiaoyunWu6666 XiaoyunWu6666 merged commit dab6da8 into thesofproject:main Mar 23, 2022
@marc-hb
Copy link
Collaborator

marc-hb commented Mar 24, 2022

Currently, sof-logger is not supported when running IPC4 mode.

@plbossart please correct me: I think this is wrong. sof-logger is not supported when running cAVS firmware. It should be supported when running open-source IPC4.

If a test fails with IPC4, how is the bug going to be identified without logs?

@aiChaoSONG
Copy link

@marc-hb I think the kernel doesn't setup debugfs for SOF under IPC4, so sof-logger can not work.

# TODO:
# Need to remove disabling sof-logger
# after sof-logger support for IPC4 has been provided in the future
dlogi 'Currenly sof-logger is not supported when running IPC4 mode'
Copy link
Contributor

Choose a reason for hiding this comment

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

Currenly should be Currently.

Sorry I didn't respond before the PR was merged.

marc-hb added a commit to marc-hb/sof-test that referenced this pull request May 13, 2022
Fixes commit dab6da8 ("lib.sh: disable sof-logger when running IPC4
mode (thesofproject#884)")

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
marc-hb added a commit that referenced this pull request May 16, 2022
Fixes commit dab6da8 ("lib.sh: disable sof-logger when running IPC4
mode (#884)")

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
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.

4 participants