You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if flood test will ever work with IPC4. This requires the addition of a new kind of IPC into IPC4 and I dont think there are any plans for it. Can we simply omit these from testing for IPC4?
We sure can if everyone agrees. Where can we bring that question up?
BEFORE we remove that test from the corresponding test plans we need to fix the misleading error message. We can probably just add something like if ipc4; then skip_test "only IPC3 is supported"
We sure can if everyone agrees. Where can we bring that question up?
BEFORE we remove that test from the corresponding test plans we need to fix the misleading error message. We can probably just add something like if ipc4; then skip_test "only IPC3 is supported"
So to decide whether it should test or SKIP, the short (and pretty poorly written) check-ipc-flood.sh currently looks for this in the kernel logs:
Aug 13 18:08:19 jf-cml-sku0983-sdw-1 kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware info: version 2:2:10-e05ca
Aug 13 18:08:19 jf-cml-sku0983-sdw-1 kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware: ABI 3:23:0 Kernel ABI 3:23:0
Aug 13 18:08:19 jf-cml-sku0983-sdw-1 kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: Firmware debug build 65535 on dtermin.-extman - options:
GDB: disabled
lock debug: disabled
lock vdebug: disabled
Instead of this:
Aug 13 11:17:35 up2 kernel: sof-audio-pci-intel-apl 0000:00:0e.0: Firmware info: version 2:2:0-57864
Aug 13 11:17:35 up2 kernel: sof-audio-pci-intel-apl 0000:00:0e.0: Firmware: ABI 3:22:1 Kernel ABI 3:23:0
In other words, if Firmware debug is found in the kernel log then it runs, otherwise it skips. (It does not even look for sof-audio... or... build, sigh...)
This is quite ugly.
Is there some more reliable and hopefully generic (IPC-independent) way to check whether this IPC is supported?
In other words, a "flood" of just 1 just to probe the feature. If that works, then flood "for real" with either the 10,000 default or the command line argument. Otherwise SKIP.
The risk is wrongly SKIPping because the entire flooding feature is broken (when it shouldn't be) and it fails even with 1.
so, the firmware have the IPC flood test disabled, because the firmware is not built with CONFIG_DEBUG, there is not much the kernel do here, it cannot know this...
Activity
ranj063 commentedon Jun 27, 2023
I'm not sure if flood test will ever work with IPC4. This requires the addition of a new kind of IPC into IPC4 and I dont think there are any plans for it. Can we simply omit these from testing for IPC4?
marc-hb commentedon Jun 27, 2023
We sure can if everyone agrees. Where can we bring that question up?
BEFORE we remove that test from the corresponding test plans we need to fix the misleading error message. We can probably just add something like
if ipc4; then skip_test "only IPC3 is supported"ranj063 commentedon Jun 28, 2023
yes, lets just do that for now
marc-hb commentedon Aug 1, 2024
wontfix
marc-hb commentedon Aug 13, 2024
I'll see if I can quickly fix the error message.
marc-hb commentedon Aug 13, 2024
So to decide whether it should test or SKIP, the short (and pretty poorly written)
check-ipc-flood.shcurrently looks for this in the kernel logs:Instead of this:
In other words, if
Firmware debugis found in the kernel log then it runs, otherwise it skips. (It does not even look forsof-audio...or... build, sigh...)This is quite ugly.
Is there some more reliable and hopefully generic (IPC-independent) way to check whether this IPC is supported?
sound/soc/sof/ipc3.cEDIT: this is based on this kernel code, so it's not as "ugly" as I thought it was:
marc-hb commentedon Aug 13, 2024
How about this:
In other words, a "flood" of just 1 just to probe the feature. If that works, then flood "for real" with either the 10,000 default or the command line argument. Otherwise SKIP.
The risk is wrongly SKIPping because the entire flooding feature is broken (when it shouldn't be) and it fails even with 1.
cc: @ujfalusi
check-ipc-flood.sh: stop asking Zephyr users to use CONFIG_DEBUG
marc-hb commentedon Aug 13, 2024
Here's a much smaller and simpler SKIP message fix, please review:
check-ipc-flood.sh: stop asking IPC4 users to use CONFIG_DEBUG
marc-hb commentedon Aug 14, 2024
Just noticed check-ipc-flood.sh does not care about firmware logs...
ujfalusi commentedon Aug 14, 2024
and in kernel:
so, the firmware have the IPC flood test disabled, because the firmware is not built with
CONFIG_DEBUG, there is not much the kernel do here, it cannot know this...check-ipc-flood.sh: stop asking IPC4 users to use CONFIG_DEBUG
marc-hb commentedon Aug 14, 2024
Thanks for the additional information @ujfalusi.
Better error message just merged with a reference to this issue. Closing as wontfix for now.