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] DSP panic when testing suspend/resume with audio on TGLU_RVP_NOCODEC #8641

Closed
keqiaozhang opened this issue Dec 18, 2023 · 7 comments
Closed
Labels
bug Something isn't working as expected DSP panic DSP panic observed IPC4 Issues observed with IPC4 (same IPC as Windows) multicore Issues observed when not only core#0 is used. P1 Blocker bugs or important features suspend-resume Issues observed when doing system suspend and resume TGL Applies to Tiger Lake

Comments

@keqiaozhang
Copy link
Collaborator

Describe the bug
Observed this issue on TGLU_RVP_NOCODEC only when testing suspend/resume case with audio, it seems like a regression and can be reproduced manually. I will do the further check.

dmesg

[  392.104470] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx      : 0x13000003|0x1: GLB_SET_PIPELINE_STATE [data size: 16]
[  392.105825] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx reply: 0x33000000|0x1: GLB_SET_PIPELINE_STATE
[  392.105905] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx done : 0x13000003|0x1: GLB_SET_PIPELINE_STATE [data size: 16]
[  392.105911] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx      : 0x13000004|0x1: GLB_SET_PIPELINE_STATE [data size: 16]
[  392.109341] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc rx      : 0x1b0a0000|0x0: GLB_NOTIFICATION|EXCEPTION_CAUGHT
[  392.109348] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ DSP dump start ]------------
[  392.109351] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: DSP panic!
[  392.109353] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: fw_state: SOF_FW_BOOT_COMPLETE (7)
[  392.109376] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: 0x00000005: module: ROM, state: FW_ENTERED, running
[  392.109576] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: FW is built with XCC toolchain
[  392.109579] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: error: DSP Firmware Oops
[  392.109580] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: error: Exception Cause: LoadStorePIFDataErrorCause, Synchronous PIF data error during LoadStore access
[  392.109582] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: EXCCAUSE 0x0000000d EXCVADDR 0x00000010 PS       0x00060120 SAR     0x00000019
[  392.109584] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: EPC1     0xbe04c00e EPC2     0x00000000 EPC3     0x00000000 EPC4    0x00000000
[  392.109586] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: EPC5     0x00000000 EPC6     0x00000000 EPC7     0x00000000 DEPC    0x00000000
[  392.109588] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: EPS2     0x00000000 EPS3     0x00000000 EPS4     0x00000000 EPS5    0x00000000
[  392.109589] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: EPS6     0x00000000 EPS7     0x00000000 INTENABL 0x00000000 INTERRU 0x00000000
[  392.109590] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: stack dump from 0x00000000
[  392.109592] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: AR registers:
[  392.109594] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: 0x0: be03f3f5 be0b0e40 be0bf240 be0bf304
[  392.109596] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: 0x10: 00000000 be0bf2e4 00000000 be04c008
[  392.109597] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: 0x20: be0576e9 00000000 00000000 00000000
[  392.109599] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: 0x30: be0576e9 00000000 00000000 00000000
[  392.109601] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ DSP dump end ]------------

To Reproduce
~/sof-test/test-case/check-suspend-resume-with-audio.sh -l 5 -m playback

Reproduction Rate
50%+

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
  2. Name of the topology file
    • Topology: {development/sof-tgl-nocodec.tplg}
  3. Name of the platform(s) on which the bug is observed.
    • Platform: {TGLU_RVP_NOCODEC-ipc4}

dmesg.txt

mtrace.txt

@keqiaozhang keqiaozhang added bug Something isn't working as expected P1 Blocker bugs or important features TGL Applies to Tiger Lake multicore Issues observed when not only core#0 is used. suspend-resume Issues observed when doing system suspend and resume DSP panic DSP panic observed IPC4 Issues observed with IPC4 (same IPC as Windows) labels Dec 18, 2023
@keqiaozhang
Copy link
Collaborator Author

keqiaozhang commented Dec 18, 2023

This issue is a FW regression and caused by #8580.

@RanderWang
Copy link
Collaborator

NO issue on MTL ?

@keqiaozhang
Copy link
Collaborator Author

NO issue on MTL ?

Yes, TGLU-NOCODEC only, not even on ADL-NOCODEC.

@lgirdwood
Copy link
Member

@ujfalusi nocodec has faster timing and probably guarantees at least 1 LL tick has occurred between a host IPC and host IPC programming. Could we enforce some delays in host between IPC responses and IP programming to ensure current LL tick is done in FW.

@RanderWang
Copy link
Collaborator

should be fixed by #8657

@RanderWang
Copy link
Collaborator

@keqiaozhang , please close it, thanks

@keqiaozhang
Copy link
Collaborator Author

Confirmed that this issue has been fixed by #8657. Closing this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected DSP panic DSP panic observed IPC4 Issues observed with IPC4 (same IPC as Windows) multicore Issues observed when not only core#0 is used. P1 Blocker bugs or important features suspend-resume Issues observed when doing system suspend and resume TGL Applies to Tiger Lake
Projects
None yet
Development

No branches or pull requests

3 participants