Skip to content

Conversation

@plbossart
Copy link
Member

We already have a parameter for boot timeouts, let's use it. This enables kmod tests on MTL RVP.

Closes: #1037

We already have a parameter for boot timeouts, let's use it.
This enables kmod tests on MTL RVP.

Closes: thesofproject#1037
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
@plbossart plbossart requested a review from a team as a code owner May 26, 2023 19:53
@marc-hb
Copy link
Collaborator

marc-hb commented May 27, 2023

I think this is OK but looking in the test logs in https://sof-ci.01.org/softestpr/PR1044/build381/devicetest/index.html?model=CML_HEL_RT5682&testcase=check-kmod-load-unload and many others I think I found a bug in @fred09's fceeee0 : that commit has no --since=@"$KERNEL_CHECKPOINT" argument so now every test wrongly believes that the firmware is loaded even when it was loaded in ANY, earlier test! That does not seem right.

Polling 'sof_firmware_boot_complete' every 1s for 70s
[    5.285584] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  225.079485] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  230.264974] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  259.046015] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  277.266181] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  349.263466] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  389.817414] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  460.147209] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  497.674680] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  567.703355] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  610.874023] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  648.055801] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  673.713333] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  768.127469] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  837.557824] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  842.712161] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  847.912811] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  853.082570] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  858.227063] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  863.389061] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  868.544170] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  873.707029] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  878.870004] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  884.022905] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  889.241161] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  894.481102] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  899.620230] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  904.784985] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  909.953325] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  915.123916] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  920.302431] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  925.458734] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  930.627342] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  935.582061] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  940.516324] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  945.531889] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  967.049571] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[  995.923293] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[ 1022.946893] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[ 1047.816223] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[ 1074.672675] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[ 1099.306801] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[ 1165.974060] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
[ 1195.982768] kernel: snd_sof:snd_sof_run_firmware: sof-audio-pci-intel-cnl 0000:00:1f.3: firmware boot complete
Completed 'sof_firmware_boot_complete' after 0s and 1 attempts
2023-05-26 20:26:02 UTC [REMOTE_INFO] Good to start the test, FW is loaded!

@plbossart
Copy link
Member Author

I think I found a bug in @fred09's fceeee0 : that commit has no --since=@"$KERNEL_CHECKPOINT" argument so now every test wrong believes that the firmware is loaded even when it was loaded in ANY, earlier test! That does not seem right.

@fredoh9 any comments?

@fredoh9
Copy link
Contributor

fredoh9 commented May 30, 2023

ah, that's right, this is critical bug in deed.
there was no easy way to set --since=@"$KERNEL_CHECKPOINT" but I have an idea. Not only searching for 'firmware boot complete' but also checking SOF sound card is listed.

@plbossart
Copy link
Member Author

Not sure if it's related but there's a weird result in https://sof-ci.01.org/linuxpr/PR4385/build5199/devicetest/index.html?model=CML_RVP_SDW&testcase=check-kmod-load-unload-after-playback. Somehow we already use the 70s even though this PR has not been merged.

I can't figure this one out.

@marc-hb
Copy link
Collaborator

marc-hb commented May 31, 2023

Somehow we already use the 70s even though this PR has not been merged. I can't figure this one out.

This is simply because commit fceeee0 runs ONCE, BEFORE EVERY test - including once before check-kmod-load-unload. The test had not really started yet in the logs you pointed at.

@plbossart
Copy link
Member Author

I can't follow why this PR is still not merged. It fixes a real problem and I have not seen actionable feedback on what needs to be fixed

In the mean time, we still don't test kmod load/reload on MTL.

What am I missing @marc-hb @fredoh9 ?

@marc-hb
Copy link
Collaborator

marc-hb commented Jun 9, 2023

It's not merged because no one approved it.

I didn't approve it because it's based on previous fceeee0 commit which has been found not to work. @fredoh9 any ETA for a fix?

@fredoh9
Copy link
Contributor

fredoh9 commented Jun 12, 2023

I will work on this, will provide a fix or ETA in this afternoon

@marc-hb
Copy link
Collaborator

marc-hb commented Jun 14, 2023

Copy link
Contributor

@fredoh9 fredoh9 left a comment

Choose a reason for hiding this comment

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

Looks good.
I was able to test kmod on MTL with #1057

@marc-hb
Copy link
Collaborator

marc-hb commented Jun 24, 2023

This can be merged after

@marc-hb
Copy link
Collaborator

marc-hb commented Jun 27, 2023

SOFCI TEST

@marc-hb
Copy link
Collaborator

marc-hb commented Jun 27, 2023

Unrelated suspend/resume failures in https://sof-ci.01.org/softestpr/PR1044/build505/devicetest/index.html, everything else green.

@marc-hb marc-hb merged commit 9ee2720 into thesofproject:main Jun 27, 2023
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.

[BUG] check-kmod-load-unload fails on MTL

4 participants