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

Fix check-kmod-load-unload. Make it and verify-sof-firmware-load IPC4-compatible #860

Merged
merged 3 commits into from
Feb 16, 2022

Conversation

marc-hb
Copy link
Collaborator

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

See commit messages.

Fixes #842 and #845. Follows the direction discussed and agreed at the bottom of superseded #855

Thanks to the addition of KERNEL_CHECKPOINT logic, also fixes bug where a very old firmware load was enough to make check-kmod-load-unload.sh pass.

Extract new function grep_firmware_info_in_logs() from
verify-sof-firmware-load.sh for re-use in other tests.

Zero functional change.

Signed-off-by: Marc Herbert <[email protected]>
Stop relying on verify-sof-firmware-load.sh in
check-kmod-load-unload.sh. The former has some serious issues:

- It passes even after unloading the firmware
- It has a misleading name
- It looks for firmware versions instead of "firmware boot complete",
  which is not compatible with IPC4.

Add new sof_firmware_boot_complete() function that can be re-used to fix
verify-sof-firmware-load.sh later.

Fixes thesofproject#845

Signed-off-by: Marc Herbert <[email protected]>
For IPC4 compatibility, search for "firmware boot complete" instead of a
firmware version. Fixes thesofproject#842

Signed-off-by: Marc Herbert <[email protected]>
@marc-hb marc-hb marked this pull request as ready for review February 16, 2022 01:08
@marc-hb marc-hb requested a review from a team as a code owner February 16, 2022 01:08
@marc-hb marc-hb changed the title Fix check-kmod-load-unload. Make it and verify-sof-firmware-load and IPC4 compatible Fix check-kmod-load-unload. Make it and verify-sof-firmware-load IPC4-compatible Feb 16, 2022
@marc-hb
Copy link
Collaborator Author

marc-hb commented Feb 16, 2022

https://sof-ci.01.org/softestpr/PR860/build981/devicetest/?model=WHL_UPEXT_HDA_ZEPHYR&testcase=check-pause-resume-capture-10 is unrelated thesofproject/sof/issues/5352

One UP2 was not available. Everything else passed and the logs looks as expected.

@plbossart plbossart merged commit cd2d707 into thesofproject:main Feb 16, 2022
@marc-hb marc-hb deleted the ipc4-firmware-boot branch February 17, 2022 19:33
@marc-hb
Copy link
Collaborator Author

marc-hb commented Feb 17, 2022

Forgot to update the error message, fixed in #861

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] IPC4: verify-sof-firmware-load.sh fails
4 participants