Bug 240464 - pcm: chn_write(): pcm2:virtual:dsp2.vp*: play interrupt timeout, channel dead
Summary: pcm: chn_write(): pcm2:virtual:dsp2.vp*: play interrupt timeout, channel dead
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-multimedia (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2019-09-10 03:42 UTC by andy
Modified: 2020-07-31 17:45 UTC (History)
2 users (show)

See Also:


Attachments
/var/run/dmesg.boot (9.61 KB, text/plain)
2019-09-10 23:42 UTC, andy
no flags Details
MYKERNEL kernel config (10.25 KB, text/plain)
2019-09-10 23:46 UTC, andy
no flags Details
pkg version -v (58.44 KB, text/plain)
2019-09-10 23:50 UTC, andy
no flags Details
cat /dev/sndstat (4.98 KB, text/plain)
2020-07-28 14:44 UTC, Andrey Khlebutin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description andy 2019-09-10 03:42:54 UTC
FreeBSD Free_BSD_13 13.0-CURRENT FreeBSD 13.0-CURRENT #115 r352114: Mon Sep  9 22:42:31 EDT 2019     root@Free_BSD_13:/usr/obj/usr/src/amd64.amd64/sys/MYKERNEL  amd64 1300047


dmesg | grep pcm
pcm0: <NVIDIA (0x0051) (HDMI/DP 8ch)> at nid 4 on hdaa0
pcm1: <NVIDIA (0x0051) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm2: <Realtek ALC892 (Rear Analog 7.1/2.0)> at nid 20,22,21,23 and 24,26 on hdaa1
pcm3: <Realtek ALC892 (Front Analog)> at nid 27 and 25 on hdaa1

# dmesg | grep hdac
hdac0: <NVIDIA (0x0e0f) HDA Controller> mem 0xf7080000-0xf7083fff irq 33 at device 0.1 on pci6
hdac1: <AMD (0x1457) HDA Controller> mem 0xf7800000-0xf7807fff irq 43 at device 0.3 on pci8
hdacc0: <NVIDIA (0x0051) HDA CODEC> at cad 0 on hdac0
hdaa0: <NVIDIA (0x0051) Audio Function Group> at nid 1 on hdacc0
hdacc1: <Realtek ALC892 HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek ALC892 Audio Function Group> at nid 1 on hdacc1

Log file:
Sep  9 22:16:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp0: play interrupt timeout, channel dead
Sep  9 22:17:33 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp1: play interrupt timeout, channel dead
Sep  9 22:17:33 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp2: play interrupt timeout, channel dead
Sep  9 22:17:33 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp3: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp1: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp2: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp3: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp4: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp5: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp6: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp7: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp8: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp9: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp10: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp11: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp12: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp13: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp14: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp1: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp2: play interrupt timeout, channel dead
Sep  9 22:17:50 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp3: play interrupt timeout, channel dead
Sep  9 22:18:02 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp1: play interrupt timeout, channel dead
Sep  9 22:18:02 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp2: play interrupt timeout, channel dead
Sep  9 22:18:02 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp3: play interrupt timeout, channel dead
Sep  9 22:18:02 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp4: play interrupt timeout, channel dead
Sep  9 22:18:02 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp5: play interrupt timeout, channel dead
Sep  9 22:18:02 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp6: play interrupt timeout, channel dead
Sep  9 22:18:02 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp7: play interrupt timeout, channel dead
Sep  9 22:18:02 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp8: play interrupt timeout, channel dead
Sep  9 22:18:02 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp9: play interrupt timeout, channel dead
Sep  9 22:18:02 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp10: play interrupt timeout, channel dead
Sep  9 22:18:02 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp11: play interrupt timeout, channel dead
Sep  9 22:18:02 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp12: play interrupt timeout, channel dead
Sep  9 22:18:02 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp13: play interrupt timeout, channel dead
Sep  9 22:18:02 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp14: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp1: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp2: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp3: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp4: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp5: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp6: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp7: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp8: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp9: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp10: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp11: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp12: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp13: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp14: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: pcm2: chn_write(): pcm2:virtual:dsp2.vp15: play interrupt timeout, channel dead
Sep  9 22:18:14 Free_BSD_13 kernel: feeder_init(0xfffff80006928b00) on feeder_matrix returned 22
Sep  9 22:18:14 Free_BSD_13 kernel: pcm0: feeder_build_matrix(): can't add feeder_matrix
Sep  9 22:18:14 Free_BSD_13 kernel: feeder_init(0xfffff80006928980) on feeder_matrix returned 22
Sep  9 22:18:14 Free_BSD_13 kernel: pcm1: feeder_build_matrix(): can't add feeder_matrix

Installed devices:
pcm0: <NVIDIA (0x0051) (HDMI/DP 8ch)> (play)
pcm1: <NVIDIA (0x0051) (HDMI/DP 8ch)> (play)
pcm2: <Realtek ALC892 (Rear Analog 7.1/2.0)> (play/rec) default
pcm3: <Realtek ALC892 (Front Analog)> (play/rec)
No devices installed from userspace.


Audio stops and requires reboot/restart to recover sound.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2019-09-10 05:19:17 UTC
Thank you for the report Andy

You mention it takes a reboot to recover sound. Can you describe how/when sound fails after booting, and describe the environment details within which you are testing/using audio.

Also, is this a regression from a previous version after updating to CURRENT? If so, what were the previous version(s) which sound worked without this issue

Can you please also include:

- /var/run/dmesg.boot (as an attachment)
- MYKERNEL kernel config (as an attachment)
- pkg version -v (as an attachment)
Comment 2 Hans Petter Selasky freebsd_committer freebsd_triage 2019-09-10 16:30:08 UTC
Is this a regression issue?
Comment 3 andy 2019-09-10 23:42:09 UTC
Created attachment 207362 [details]
/var/run/dmesg.boot
Comment 4 andy 2019-09-10 23:46:44 UTC
Created attachment 207363 [details]
MYKERNEL kernel config
Comment 5 andy 2019-09-10 23:50:21 UTC
Created attachment 207364 [details]
pkg version -v
Comment 6 andy 2019-09-11 00:02:53 UTC
(In reply to Hans Petter Selasky from comment #2)

Hi HPS:

Not really sure how to answer that, depends on your definition of regression.  I can say, I have been using CURRENT as my only desktop for many years and I have seen this before.  It is possible I saw it when 12 was CURRENT but I can not say for sure.  I have definitely seen it before now on 13-CURRENT.  I failed to report it before, but yes I have seen this behavior previously in 13-CURRENT.

Mostly it happened when I was running VBOX as host with a VM guest OS running and the guest OS would be playing a web video and the sound would stop.  But this time the problem occurred while playing audio in VLC media player on the host, no VBOX running.
Comment 7 andy 2019-09-11 02:32:28 UTC
(In reply to Kubilay Kocak from comment #1)

I am using CURRENT with the MATE desktop environment.  I was listening to audio using VLC.  When the problem happens the normal sound stops and you hear a loud fast "buzzing" noise for about 20-30 seconds and then the noise stops.  At that point, everything on the machine is still working except for sound.  It requires a reboot for sound to work normally again.

Unfortunately, it is not possible to reliably reproduce this problem.  It can take weeks or months to show up.  I have seen this occur previously, at that time I was running VBOX as a host and the sound would stop in the guest VM.
Comment 8 Andrey Khlebutin 2020-07-28 14:38:19 UTC
I've the same problem on FreeBSD 12.1-STABLE r363647 amd64. I was listening to audio using gmplayer. When the problem happens the normal sound stops.

[root@ak /home/ak]# dmesg | grep pcm
pcm0: <NVIDIA (0x0051) (HDMI/DP 8ch)> at nid 4 on hdaa0
pcm1: <NVIDIA (0x0051) (HDMI/DP 8ch)> at nid 5 on hdaa0
pcm2: <Realtek ALC892 (Rear Analog)> at nid 20 and 24,26 on hdaa1
pcm3: <Realtek ALC892 (Front Analog)> at nid 27 and 25 on hdaa1
pcm2: chn_write(): pcm2:virtual:dsp2.vp0: play interrupt timeout, channel dead
pcm2: chn_write(): pcm2:virtual:dsp2.vp0: play interrupt timeout, channel dead
pcm2: chn_write(): pcm2:virtual:dsp2.vp0: play interrupt timeout, channel dead
pcm2: chn_write(): pcm2:virtual:dsp2.vp0: play interrupt timeout, channel dead
Comment 9 Andrey Khlebutin 2020-07-28 14:44:49 UTC
Created attachment 216837 [details]
cat /dev/sndstat