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

[BUG] /proc/asound/sofprobes breaks "check-sof-logger" test #1243

Open
harajend opened this issue Dec 17, 2024 · 3 comments
Open

[BUG] /proc/asound/sofprobes breaks "check-sof-logger" test #1243

harajend opened this issue Dec 17, 2024 · 3 comments

Comments

@harajend
Copy link
Contributor

Describe the bug
"check-sof-logger" test failed with error message "[ERROR] SOF ALSA card not available, driver probe fail?"

Triage details
Test case passed upon modified line 74 in the "check-sof-logger.sh" file
Original code: "test -e /proc/asound/sof*/id"
Modified code: "test -e /proc/asound/sofs*/id"
Cause: Above command line is looking for "sofsoundwire" directory, but in this case 2 directories were located for "sof"* string match

To Reproduce

  1. Launch Terminal and Run "TPLG=/lib/firmware/intel/sof-ipc4-tplg/sof-ptl-rt722-4ch.tplg MODEL=PTLP_RVP_SDW SOF_TEST_INTERVAL=5 ~/sof-test/test-case/check-sof-logger.sh"

Expected behavior

  • Test should PASS

Detail Info

  1. Linux kernel and SOF Firmware details:

  2. Test report ID (if you find it from test report)

  3. Test DUT Model (or a brief discribtion about the device)

    • MODEL: {PTLP_RVP_SDW}
  4. Test TPLG

    • TPLG: {/lib/firmware/intel/sof-ipc4-tplg/sof-ptl-rt722-4ch.tplg}
  5. Test case (what test script and how you run it)

    • TESTCASE: check-sof-logger.sh

Screenshots or console output
image

Failed logs

@harajend harajend closed this as not planned Won't fix, can't repro, duplicate, stale Dec 17, 2024
@marc-hb
Copy link
Collaborator

marc-hb commented Dec 17, 2024

Avoid screenshots when not necessary, use copy/paste:
https://docs.zephyrproject.org/latest/develop/getting_started/index.html#use-copy-paste

but in this case 2 directories were located for "sof"*

This is a real bug in check-sof-logger.sh, line 74 should be modified. That line is not compatible with /proc/asound/sofprobes.

Why did you close it?

@harajend
Copy link
Contributor Author

harajend commented Dec 17, 2024

I re-file it privately, since this issue i found in PTL. So i thought to avoid it in Public git page.

@marc-hb
Copy link
Collaborator

marc-hb commented Dec 17, 2024

This bug is not specific to PTL, it's caused by SOF probes which are not specific to PTL.

If you are not sure, start with a private bug first, otherwise it's a bit too late :-)

The fix should be as simple as this below, could you try it and submit it?

--- a/test-case/check-sof-logger.sh
+++ b/test-case/check-sof-logger.sh
@@ -68,10 +68,8 @@ func_lib_check_sudo
 
 sof_alsa_card_found()
 {
-    # note: assumes SOF card names to start with "sof", e.g.
-    #   - /proc/asound/sofsoundwire/id
-    #   - /proc/asound/sofhdadsp/id
-    test -e /proc/asound/sof*/id
+    test -e /proc/asound/sofsoundwire/id ||
+        test -e /proc/asound/sofhdadsp/id
 }
 
 wait_for_sof_alsa_card()

@marc-hb marc-hb changed the title [BUG] "check-sof-logger" test failed [BUG] /proc/asound/sofprobes breaks "check-sof-logger" test Dec 17, 2024
@marc-hb marc-hb reopened this Dec 17, 2024
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

No branches or pull requests

2 participants