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

Auxiliary devices in SOF break check-ipc-flood.sh (IPC3) #467

Closed
xiulipan opened this issue Oct 23, 2020 · 10 comments
Closed

Auxiliary devices in SOF break check-ipc-flood.sh (IPC3) #467

xiulipan opened this issue Oct 23, 2020 · 10 comments
Assignees
Labels
P3 Low-impact bugs or features state:ping-for-close Will be closed if submitter is not responsive type:enhancement New framework feature or request

Comments

@xiulipan
Copy link
Contributor

xiulipan commented Oct 23, 2020

Auxiliary devices in SOF thesofproject/linux#2501 break check-ipc-flood.sh https://sof-ci.01.org/sofpr/PR3545/build7503/devicetest/

quick check find big change in debugfs

/sys/kernel/debug/sof# ls
cc_version  debug  dsp  etrace  exception  filter  fw_version  hda  inbox  outbox  pp  probes  regs  snd_sof_client.ipc_test.0  snd_sof_client.ipc_test.1  stream  trace
/sys/kernel/debug/sof# ls snd_sof_client.ipc_test.*
snd_sof_client.ipc_test.0:
ipc_flood_count  ipc_flood_duration_ms

snd_sof_client.ipc_test.1:
ipc_flood_count  ipc_flood_duration_ms
@xiulipan
Copy link
Contributor Author

@ranj063 could you give more info about the change here.

@fredoh9
Copy link
Collaborator

fredoh9 commented Oct 23, 2020

The IPC debugfs will be moved to IPC client. And by default we have two IPC test clients.
Easy solution is chaging path to first client, snd_sof_client.ipc_test.0

/sys/kernel/debug/sof/snd_sof_client.ipc_test.0/ipc_flood_count
echo "10000" > /sys/kernel/debug/sof/snd_sof_client.ipc_test.0/ipc_flood_count

And we need to update the test case with multiple IPC clients. Or we can add new IPC test case for this also.

# write to two ipc test client simultaneously
echo "10000" > /sys/kernel/debug/sof/snd_sof_client.ipc_test.0/ipc_flood_count &
echo "10000" > /sys/kernel/debug/sof/snd_sof_client.ipc_test.1/ipc_flood_count

@xiulipan
Copy link
Contributor Author

@fredoh9 Will the path always be look like this? eg: snd_sof_client.ipc_test.*/ipc_flood_count
PS: if we have only one client, what will those debugfs be look like?

@ranj063
Copy link
Contributor

ranj063 commented Oct 26, 2020

@fredoh9 Will the path always be look like this? eg: snd_sof_client.ipc_test.*/ipc_flood_count
PS: if we have only one client, what will those debugfs be look like?

Yes. if there's only one then, you'd only see snd_sof_client.ipc_test.0

@xiulipan xiulipan added type:enhancement New framework feature or request P3 Low-impact bugs or features labels Jan 26, 2021
@marc-hb
Copy link
Collaborator

marc-hb commented Aug 13, 2024

I think we will never test flood with IPC4, correct?

If correct please close as wontfix

@marc-hb marc-hb added the state:ping-for-close Will be closed if submitter is not responsive label Aug 13, 2024
@plbossart
Copy link
Member

I don't know what prevents us from flooding the firmware with IPCs, regardless of the IPC type.

@ujfalusi would you agree?

@ujfalusi
Copy link
Contributor

Nothing prevents us from flooding the firmware, but the flood test uses a special test IPC3 message (SOF_IPC_GLB_TEST_MSG | SOF_IPC_TEST_IPC_FLOOD), this is not present for IPC4.
I don't think this is going to be supported.

Is this really broken today for IPC3? The PR that this issue is blaming had never been merged, the sof-client infra ended up with different implementation...
Yes, you need to build the client module and make sure that it is loaded, but it should be working (for IPC3, it is not going to probe with IPC4).

@marc-hb marc-hb changed the title Auxiliary devices in SOF break check-ipc-flood.sh Auxiliary devices in SOF break check-ipc-flood.sh (IPC3) Aug 13, 2024
@marc-hb
Copy link
Collaborator

marc-hb commented Aug 13, 2024

Thank you for the clarifications!

IPC3 flooding has been working just fine https://sof-ci.ostc.intel.com/#/result/planresultdetail/44673

IPC4 flooding is currently skipped with the somewhat misleading "need debug firmware".
https://sof-ci.ostc.intel.com/#/result/planresultdetail/44691
There is another ticket about IPC4+flood specifically, I mixed it up with this one a bit, sorry about that: #1066
I'll see if can quickly make this message better.

The PR that this issue is blaming had never been merged, the sof-client infra ended up with different implementation...

Great, so we can definitely close this ticket, these will never be resurrected somehow? Also, #191 looks like a duplicate? Close that too? It points at thesofproject/linux#1841 instead of 2501. All part of the same, dead thing?

@fredoh9
Copy link
Collaborator

fredoh9 commented Aug 14, 2024

IPC flood test is not applicable to IPC4 at this moment, this is not breaking any test case any more.
How to support IPC flood test is different story/topic.

@fredoh9 fredoh9 closed this as completed Aug 14, 2024
@fredoh9
Copy link
Collaborator

fredoh9 commented Aug 14, 2024

Oh, this is about IPC3. Anyway we can still close this as this is not the case any more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 Low-impact bugs or features state:ping-for-close Will be closed if submitter is not responsive type:enhancement New framework feature or request
Projects
None yet
Development

No branches or pull requests

6 participants