Repository navigation
[CML][HDA] Kernel panic when tried to play sound more than 3 times via HDMI #820
Copy link
Copy link
Closed
Labels
CMLApplies to Comet Lake platformApplies to Comet Lake platformHDAApplies to HD-Audio bus for codec connectionApplies to HD-Audio bus for codec connectionbugSomething isn't workingSomething isn't working
Description
Summary
Kernel panic when tried to play sound more than 3 times via HDMI (hw:0,3)
To Reproduce
- aplay -Dhw:0,3 -f dat
- ctrl + c
- repeat 1,2 more than 3 times
Actual behavior
Kernel panic occurred.
Environment
Kernel: rander/cml-validation-branch (topic/sof-dev 58d1b6b + issue 767 regression fix + DMIC patch)
Firmware: master ed6ac05 (revert the commit f5e7843)
Topology: rander/cml-validation-branch (master 742f83b + DMIC topology support patch )
dmesg log
[ 162.189860] sof-audio-pci 0000:00:1f.3: ipc rx: 0x600a001e: GLB_STREAM_MSG: POSITION
[ 162.189928] sof-audio-pci 0000:00:1f.3: posn : host 0x3d80 dai 0x673e0 wall 0x1932d0d
[ 162.189943] BUG: unable to handle kernel NULL pointer dereference at 00000000000000ac
[ 162.189951] #PF error: [normal kernel read fault]
[ 162.189956] PGD 0 P4D 0
[ 162.189965] Oops: 0000 [#1] SMP NOPTI
[ 162.189972] CPU: 5 PID: 1842 Comm: irq/133-AudioDS Not tainted 5.0.0-cml-validation-branch #2
[ 162.189975] Hardware name: Dell Inc. Unidentified System/, BIOS 86.1.4 04/08/2019
[ 162.189989] RIP: 0010:snd_sof_ipc_msgs_rx+0x236/0x660 [snd_sof]
[ 162.189994] Code: 24 44 49 89 84 24 08 04 00 00 48 8b 44 24 4c 49 89 84 24 10 04 00 00 8b 44 24 54 41 89 84 24 18 04 00 00 48 8b 87 10 01 00 00 <f6> 80 ac 00 00 00 01 0f 85 7c fe ff ff e8 d8 b7 f0 ff e9 72 fe ff
[ 162.189999] RSP: 0018:ffffa249c378fdf0 EFLAGS: 00010286
[ 162.190004] RAX: 0000000000000000 RBX: ffff9fa608cca028 RCX: 0000000000000006
[ 162.190007] RDX: 0000000000000000 RSI: 0000000000000096 RDI: ffff9fa6145eba00
[ 162.190010] RBP: 000000000000001e R08: 0000000000000080 R09: 0000000000000004
[ 162.190014] R10: ffffa249c3787e08 R11: 0000000000000001 R12: ffff9fa6111ea000
[ 162.190017] R13: 0000000000000003 R14: 00000000000a0000 R15: ffff9fa614bbaa00
[ 162.190021] FS: 0000000000000000(0000) GS:ffff9fa618340000(0000) knlGS:0000000000000000
[ 162.190025] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 162.190029] CR2: 00000000000000ac CR3: 00000001e540e004 CR4: 00000000003606e0
[ 162.190032] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 162.190035] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 162.190038] Call Trace:
[ 162.190052] cnl_ipc_irq_thread+0x1f3/0x9d0 [snd_sof_intel_hda_common]
[ 162.190065] ? irq_forced_thread_fn+0x70/0x70
[ 162.190072] irq_thread_fn+0x1c/0x60
[ 162.190081] irq_thread+0xe2/0x160
[ 162.190088] ? wake_threads_waitq+0x30/0x30
[ 162.190095] ? irq_thread_dtor+0x90/0x90
[ 162.190101] kthread+0x10e/0x130
[ 162.190107] ? kthread_park+0x80/0x80
[ 162.190115] ret_from_fork+0x1f/0x40
[ 162.190120] Modules linked in: snd_soc_skl_hda_dsp snd_soc_hdac_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_soc_dmic sof_pci_dev snd_sof_intel_hda_common snd_soc_hdac_hda snd_sof_intel_hda snd_sof_xtensa_dsp snd_sof snd_soc_acpi_intel_match snd_soc_acpi ax88179_178a iwlmvm snd_hda_ext_core snd_soc_core snd_hda_codec usbnet snd_hwdep snd_hda_core snd_pcm iwlwifi x86_pkg_temp_thermal intel_lpss_pci intel_lpss mfd_core efivarfs xhci_pci xhci_hcd
[ 162.190150] CR2: 00000000000000ac
[ 162.190156] ---[ end trace 78aacd5b28b4c5c3 ]---
[ 162.190165] RIP: 0010:snd_sof_ipc_msgs_rx+0x236/0x660 [snd_sof]
[ 162.190170] Code: 24 44 49 89 84 24 08 04 00 00 48 8b 44 24 4c 49 89 84 24 10 04 00 00 8b 44 24 54 41 89 84 24 18 04 00 00 48 8b 87 10 01 00 00 <f6> 80 ac 00 00 00 01 0f 85 7c fe ff ff e8 d8 b7 f0 ff e9 72 fe ff
[ 162.190173] RSP: 0018:ffffa249c378fdf0 EFLAGS: 00010286
[ 162.190177] RAX: 0000000000000000 RBX: ffff9fa608cca028 RCX: 0000000000000006
[ 162.190180] RDX: 0000000000000000 RSI: 0000000000000096 RDI: ffff9fa6145eba00
[ 162.190183] RBP: 000000000000001e R08: 0000000000000080 R09: 0000000000000004
[ 162.190187] R10: ffffa249c3787e08 R11: 0000000000000001 R12: ffff9fa6111ea000
[ 162.190190] R13: 0000000000000003 R14: 00000000000a0000 R15: ffff9fa614bbaa00
[ 162.190194] FS: 0000000000000000(0000) GS:ffff9fa618340000(0000) knlGS:0000000000000000
[ 162.190197] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 162.190200] CR2: 00000000000000ac CR3: 00000001e540e004 CR4: 00000000003606e0
[ 162.190203] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 162.190207] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 162.190223] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
[ 162.190226] #PF error: [INSTR]
[ 162.190228] PGD 0 P4D 0
[ 162.190234] Oops: 0010 [#2] SMP NOPTI
[ 162.190239] CPU: 5 PID: 1842 Comm: irq/133-AudioDS Tainted: G D 5.0.0-cml-validation-branch #2
[ 162.190242] Hardware name: Dell Inc. Unidentified System/, BIOS 86.1.4 04/08/2019
[ 162.190245] RIP: 0010: (null)
[ 162.190255] Code: Bad RIP value.
[ 162.190258] RSP: 0018:ffffa249c378fea8 EFLAGS: 00010282
[ 162.190262] RAX: 0000000000000000 RBX: ffff9fa614bbaa00 RCX: 0000000000000000
[ 162.190265] RDX: ffffa249c378fec8 RSI: 0000000000000000 RDI: ffffa249c378fec8
[ 162.190268] RBP: ffffffffa98d69c0 R08: 0000000000000000 R09: 0000000000000000
[ 162.190271] R10: 0000000000000246 R11: ffffa249c378fad0 R12: 0000000000000000
[ 162.190274] R13: ffff9fa614bbb104 R14: 0000000000000001 R15: ffff9fa614bbb0d0
[ 162.190278] FS: 0000000000000000(0000) GS:ffff9fa618340000(0000) knlGS:0000000000000000
[ 162.190281] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 162.190284] CR2: ffffffffffffffd6 CR3: 00000001e540e004 CR4: 00000000003606e0
[ 162.190287] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 162.190290] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 162.190293] Call Trace:
[ 162.190298] ? task_work_run+0x79/0xa0
[ 162.190306] ? do_exit+0x2ca/0xbc0
[ 162.190314] ? irq_thread_dtor+0x90/0x90
[ 162.190318] ? kthread+0x10e/0x130
[ 162.190326] ? rewind_stack_do_exit+0x17/0x20
[ 162.190330] Modules linked in: snd_soc_skl_hda_dsp snd_soc_hdac_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_soc_dmic sof_pci_dev snd_sof_intel_hda_common snd_soc_hdac_hda snd_sof_intel_hda snd_sof_xtensa_dsp snd_sof snd_soc_acpi_intel_match snd_soc_acpi ax88179_178a iwlmvm snd_hda_ext_core snd_soc_core snd_hda_codec usbnet snd_hwdep snd_hda_core snd_pcm iwlwifi x86_pkg_temp_thermal intel_lpss_pci intel_lpss mfd_core efivarfs xhci_pci xhci_hcd
[ 162.190352] CR2: 0000000000000000
[ 162.190355] ---[ end trace 78aacd5b28b4c5c4 ]---
[ 162.190362] RIP: 0010:snd_sof_ipc_msgs_rx+0x236/0x660 [snd_sof]
[ 162.190367] Code: 24 44 49 89 84 24 08 04 00 00 48 8b 44 24 4c 49 89 84 24 10 04 00 00 8b 44 24 54 41 89 84 24 18 04 00 00 48 8b 87 10 01 00 00 <f6> 80 ac 00 00 00 01 0f 85 7c fe ff ff e8 d8 b7 f0 ff e9 72 fe ff
[ 162.190370] RSP: 0018:ffffa249c378fdf0 EFLAGS: 00010286
[ 162.190374] RAX: 0000000000000000 RBX: ffff9fa608cca028 RCX: 0000000000000006
[ 162.190377] RDX: 0000000000000000 RSI: 0000000000000096 RDI: ffff9fa6145eba00
[ 162.190380] RBP: 000000000000001e R08: 0000000000000080 R09: 0000000000000004
[ 162.190383] R10: ffffa249c3787e08 R11: 0000000000000001 R12: ffff9fa6111ea000
[ 162.190387] R13: 0000000000000003 R14: 00000000000a0000 R15: ffff9fa614bbaa00
[ 162.190396] FS: 0000000000000000(0000) GS:ffff9fa618340000(0000) knlGS:0000000000000000
[ 162.190399] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 162.190403] CR2: ffffffffffffffd6 CR3: 00000001e540e004 CR4: 00000000003606e0
[ 162.190406] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 162.190409] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 162.190411] Fixing recursive fault but reboot is needed!
[ 164.575504] sof-audio-pci 0000:00:1f.3: ipc tx: 0x40010000: GLB_PM_MSG: CTX_SAVE
[ 164.876729] sof-audio-pci 0000:00:1f.3: error: ipc timed out for 0x40010000 size 76
[ 164.876749] sof-audio-pci 0000:00:1f.3: status: fw entered - code 00000005
[ 164.877022] sof-audio-pci 0000:00:1f.3: error: unexpected fault 0x00000000 trace 0x00004000
[ 164.877029] sof-audio-pci 0000:00:1f.3: error: ctx_save ipc error during suspend -110
[ 164.877046] sof-audio-pci 0000:00:1f.3: can't suspend (snd_sof_runtime_suspend [snd_sof] returned
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
CMLApplies to Comet Lake platformApplies to Comet Lake platformHDAApplies to HD-Audio bus for codec connectionApplies to HD-Audio bus for codec connectionbugSomething isn't workingSomething isn't working
Activity
[-][BUG][CML][HDA] Kernel panic when tried to play sound more than 3 times via HDMI[/-][+][CML][HDA] Kernel panic when tried to play sound more than 3 times via HDMI[/+]libinyang commentedon Apr 12, 2019
From the dmesg, the position update mode is wrong. This may cause many bugs. So we must fix the position update mode issue firstly.
libinyang commentedon Apr 12, 2019
We should use xPIB mode instead of IPC position update.
bardliao commentedon Apr 12, 2019
@libinyang @keyonjie It seems #826 also fix this issue
stevyan commentedon Apr 12, 2019
it can be fixed by #826.
keqiaozhang commentedon Apr 12, 2019
This issue can not be reproduced on GLK.