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
{{ message }}
Repository navigation
check-suspend-resume.sh should verify, that SOF is running #305
During a daily test one of kernel module loading and unloading scripts left SOF unloaded. After that check-suspend-resume.sh ran and reported success, because the system was able to suspend and resume with no errors, even though SOF wasn't even present. The script should check that SOF is active before beginning the process.
There is a dmesg trace 'probe complete' that can be used.
dev_dbg(dev, "Completing SOF PCI probe");
I just added the same for ACPI, that should help detect that the driver loaded ok. thesofproject/linux#2338
In addition the script can check for the presence of a card, there can be cases where SOF probes but the card is not registered, and the error is squelched by the driver core.
@plbossart I think there's a problem with that too. I've seen at least one test in CI where the test sequence was started when the system has already been running for some time, so, the kernel message buffer has already discarded SOF probing messages. You can see such cases when some of the first few tests fail. Can we not use some /proc or /sys or /dev or aplay -l test instead?
@plbossart I think there's a problem with that too. I've seen at least one test in CI where the test sequence was started when the system has already been running for some time, so, the kernel message buffer has already discarded SOF probing messages. You can see such cases when some of the first few tests fail. Can we not use some /proc or /sys or /dev or aplay -l test instead?
Goodness. I hope the test devices reboot and only do a modprobe snd-soc-pci when the tests are actually enabled? In other words we don't want to probe the drivers at boot, otherwise yes the logs might have been erased for an odd reason.
In other words we don't want to probe the drivers at boot, otherwise yes the logs might have been erased for an odd reason.
I'm not a fan of loading the drivers at boot either (I've been told it's closer to the "real-world") but journalctl typically keeps hundreds of megabytes of logs over many days and can be extended if needed so that should not be a problem anymore once the transition is finished.
After that check-suspend-resume.sh ran and reported success, because the system was able to suspend and resume with no errors, even though SOF wasn't even present. The script should check that SOF is active before beginning the process.
We have a check-suspend-resume-with-playback, @lyakh is that enough?
Activity
marc-hb commentedon Jul 31, 2020
P1 because any "green failure" (false negative without the double negation) should be P1
plbossart commentedon Jul 31, 2020
There is a dmesg trace 'probe complete' that can be used.
I just added the same for ACPI, that should help detect that the driver loaded ok. thesofproject/linux#2338
In addition the script can check for the presence of a card, there can be cases where SOF probes but the card is not registered, and the error is squelched by the driver core.
lyakh commentedon Aug 3, 2020
@plbossart I think there's a problem with that too. I've seen at least one test in CI where the test sequence was started when the system has already been running for some time, so, the kernel message buffer has already discarded SOF probing messages. You can see such cases when some of the first few tests fail. Can we not use some /proc or /sys or /dev or aplay -l test instead?
marc-hb commentedon Aug 3, 2020
We're working on replacing
dmesgwithjournalctl [ --boot ] [ --dmesg ] [ etc.]plbossart commentedon Aug 3, 2020
Goodness. I hope the test devices reboot and only do a modprobe snd-soc-pci when the tests are actually enabled? In other words we don't want to probe the drivers at boot, otherwise yes the logs might have been erased for an odd reason.
marc-hb commentedon Apr 14, 2021
I'm not a fan of loading the drivers at boot either (I've been told it's closer to the "real-world") but
journalctltypically keeps hundreds of megabytes of logs over many days and can be extended if needed so that should not be a problem anymore once the transition is finished.marc-hb commentedon Apr 14, 2021
We have a
check-suspend-resume-with-playback, @lyakh is that enough?mengdonglin commentedon Apr 21, 2021
Close this issue, because