Repository navigation
[BUG] SKIP the DMA trace corruption might hide the failure #901
Copy link
Copy link
Closed
Labels
False Pass / green failureP1Blocker bugs or important featuresBlocker bugs or important featurestype:bugSomething doesn't work as expectedSomething doesn't work as expected
Description
Describe the bug
If there is an error that happened before, the error might be hidden by the ignorant of the Zephyr DMA trace corruption #895.
To Reproduce
TPLG=/lib/firmware/intel/sof-tplg/sof-adl-max98390-rt5682.tplg MODEL=ADLP_GMB_I2S_ZEPHYR ~/sof-test/test-case/multiple-pause-resume.sh -r 50Expected behavior
Report FAIL once the case failed even if the sof-logger was already dead.
Detail Info
- Branch name and commit hash of the 3 repositories: sof (firmware/topology), linux (kernel driver) and sof-test (test case)
- Kernel: thesofproject/linux@68b76766e8ba
- SOF: thesofproject/sof@b36db45a7da7
- SOF-TEST: 287a6b9
- Test report ID (if you find it from test report)
- ID: 12389
- Test DUT Model (or a brief discribtion about the device)
- MODEL: ADLP_GMB_I2S_ZEPHYR
- Test TPLG
- TPLG: sof-adl-max98390-rt5682.tplg
- Test case (what test script and how you run it)
- TESTCASE:
TPLG=/lib/firmware/intel/sof-tplg/sof-adl-max98390-rt5682.tplg MODEL=ADLP_GMB_I2S_ZEPHYR ~/sof-test/test-case/multiple-pause-resume.sh -r 50
- TESTCASE:
Screenshots or console output
[ 3689.304564] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx timed out for 0x60070000 (msg/reply size: 12/12)
[ 3689.304621] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ IPC dump start ]------------
[ 3689.304651] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: hda irq intsts 0x00000000 intlctl 0xc0000081 rirb 00
[ 3689.304669] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: dsp irq ppsts 0x00000000 adspis 0x00000000
[ 3689.304694] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00000000 mask 0x00000003
[ 3689.304707] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ IPC dump end ]------------
[ 3689.304719] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ DSP dump start ]------------
[ 3689.304730] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: IPC timeout
[ 3689.304742] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: fw_state: SOF_FW_BOOT_COMPLETE (6)
[ 3689.304767] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: status: fw entered - code 00000005
[ 3689.304908] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: unexpected fault 0x00000000 trace 0x00004000
[ 3689.304923] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ DSP dump end ]------------
[ 3689.304944] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at soc_component_trigger on 0000:00:1f.3: -110
[ 3689.304969] kernel: HDMI4: ASoC: trigger FE cmd: 4 failed: -110
<<===========================
2022-05-08 23:37:08 UTC [REMOTE_ERROR] pause resume PID 21532 had non-zero exit status
2022-05-08 23:37:08 UTC [REMOTE_ERROR] Starting func_exit_handler(), exit status=1, FUNCNAME stack:
2022-05-08 23:37:08 UTC [REMOTE_ERROR] die() @ /home/ubuntu/sof-test/test-case/../case-lib/lib.sh
2022-05-08 23:37:08 UTC [REMOTE_ERROR] main() @ /home/ubuntu/sof-test/test-case/multiple-pause-resume.sh:191
2022-05-08 23:37:08 UTC [REMOTE_INFO] Starting /usr/local/bin/sof-logger -l /etc/sof/sof-adl.ldc -o /home/ubuntu/sof-test/logs/multiple-pause-resume/2022-05-08-23:32:44-15563/etrace.txt
2022-05-08 23:37:11 UTC [REMOTE_INFO] pkill -TERM sof-logger
2022-05-08 23:37:11 UTC [REMOTE_ERROR] sof-logger was already dead
2022-05-08 23:37:12 UTC [REMOTE_ERROR] Downgrading test failure to SKIP because of known
2022-05-08 23:37:12 UTC [REMOTE_ERROR] issue https://github.com/thesofproject/sof/issues/5352
https://github.com/thesofproject/sof/issues/5352
2022-05-08 23:37:13 UTC [REMOTE_INFO] nlines=3 /home/ubuntu/sof-test/logs/multiple-pause-resume/2022-05-08-23:32:44-15563/etrace.txt
2022-05-08 23:37:13 UTC [REMOTE_INFO] Test Result: SKIP!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
False Pass / green failureP1Blocker bugs or important featuresBlocker bugs or important featurestype:bugSomething doesn't work as expectedSomething doesn't work as expected
Activity
marc-hb commentedon May 9, 2022
Maybe re-ordering the checks can fix this. Not sure.
marc-hb commentedon May 10, 2022
Thanks @miRoox for the bug report. Here's the simplest way to reproduce this issue:
hijack.sh: don't downgrade real fails together with sof-logger failures
hijack.sh: don't downgrade real fails together with sof-logger failures
keqiaozhang commentedon Jun 15, 2022
I just happened to observe this issue on TGLU_UP_HDA_ZEPHYR.
https://sof-ci.sh.intel.com/#/result/planresultdetail/13293?model=TGLU_UP_HDA_ZEPHYR&testcase=check-capture-all-formats
https://sof-ci.sh.intel.com/#/result/planresultdetail/13293?model=TGLU_UP_HDA_ZEPHYR&testcase=check-capture-100sec
These tests were run, but ended as
SKIP.If I disable the
sof-loggerby "export SOF_LOGGING=none", the tests will be passed.marc-hb commentedon Jun 15, 2022
I don't understand why this was re-opened sorry. DMA corruption happened in these runs, so the correct status is FAIL. We agreed to downgrade this FAIL to SKIP because it is a (surprisingly) known and WONTFIX issue but downgrading to PASS does not make sense to me.
This is hiding and ignoring DMA corruption. Decreasing test coverage increases PASS rate but it also decreases quality. If it's not tested then it does not work, see recent example with sof probes.
Also, the SKIP currently happens only when there is DMA corruption whereas SOF_LOGGING=none would lose all logs across all Zephyr testing. How do you find and fix bugs without logs?
miRoox commentedon Jun 16, 2022
So there is no real error hidden by downgrading the DMA corruption, I don't think it's about this issue.
keqiaozhang commentedon Jun 16, 2022
I just wondered that the test was actually running, but the result was
SKIPand displayed asN/Aon the test report page. This makes me confused, because I overlook allN/ASKIPcases. if the SKIP currently happens only when there is DMA corruption and it will returnFAILwhen real issue happens, then I'm OK with it.keqiaozhang commentedon Jun 16, 2022
I did the negative test and the test returned
FAILas expected. Closing this bug.