Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2024 22:20:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 279839] panic: bogus vchan_create
Message-ID:  <bug-279839-227-LPIqoVAN93@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-279839-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-279839-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279839

--- Comment #1 from Dave Cottlehuber <dch@freebsd.org> ---
after a bit more experimenting, this sysctl is what causes problems:

# dev.pcm.1.play.vchans=3D4

rebooting without that is fine, here are settings:

# cat /dev/sndstat
FreeBSD Audio Driver
Installed devices:
pcm0: <C-Media Electronics Inc. M-AUDIO Uber Mic> on uaudio0 (1p:1v/1r:1v)
        snddev flags=3D0x2e2<AUTOVCHAN,BUSY,MPSAFE,REGISTERED,VPC>
        [pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010, flags 0x00002100,
0x00000004
        interrupts 216, underruns 0, feed 215, ready 0
[b:1536/768/2|bs:2048/1024/2]
        channel flags=3D0x2100<BUSY,HAS_VCHAN>
        {userland} -> feeder_mixer(0x00200010) -> {hardware}
        pcm0:play:dsp0.p0[pcm0:virtual_play:dsp0.vp0]: spd 48000, fmt
0x00200010, flags 0x10000000, 0x00000021
        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:8192/1024/8]
        channel flags=3D0x10000000<VIRTUAL>
        {userland} -> feeder_root(0x00200010) -> feeder_volume(0x00200010) =
->
{hardware}
        [pcm0:record:dsp0.r0]: spd 48000, fmt 0x00200010, flags 0x00002100,
0x00000005
        interrupts 0, overruns 0, feed 0, hfree 1536, sfree 2048
[b:1536/768/2|bs:2048/1024/2]
        channel flags=3D0x2100<BUSY,HAS_VCHAN>
        {hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) ->
{userland}
        pcm0:record:dsp0.r0[pcm0:virtual_record:dsp0.vr0]: spd 8000, fmt
0x00100008, flags 0x10000000, 0x00000000
        interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/=
0]
        channel flags=3D0x10000000<VIRTUAL>
        {hardware} -> feeder_root(0x00000000) -> {userland}
pcm1: <Chord Electronics Ltd Mojo> on uaudio1 (1p:1v/0r:0v) default
        snddev
flags=3D0x200002e3<SIMPLEX,AUTOVCHAN,BUSY,MPSAFE,REGISTERED,VPC,PRIO_WR>
        [pcm1:play:dsp1.p0]: spd 48000, fmt 0x00200010/0x00201000, flags
0x00002100, 0x00000006
        interrupts 864, underruns 0, feed 863, ready 0
[b:3072/1536/2|bs:2048/1024/2]
        channel flags=3D0x2100<BUSY,HAS_VCHAN>
        {userland} -> feeder_mixer(0x00200010) -> feeder_format(0x00200010 =
->
0x00201000) -> {hardware}
        pcm1:play:dsp1.p0[pcm1:virtual_play:dsp1.vp0]: spd 48000, fmt
0x00200010, flags 0x10000000, 0x00000021
        interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:8192/1024/8]
        channel flags=3D0x10000000<VIRTUAL>
        {userland} -> feeder_root(0x00200010) -> feeder_volume(0x00200010) =
->
{hardware}
No devices installed from userspace.

# sysctl -a dev.pcm.1
dev.pcm.1.feedback_rate: 47998
dev.pcm.1.mixer.mute_1.desc:
dev.pcm.1.mixer.mute_1.max: 1
dev.pcm.1.mixer.mute_1.min: 0
dev.pcm.1.mixer.mute_1.val: 0
dev.pcm.1.mixer.vol_0.desc:
dev.pcm.1.mixer.vol_0.max: 0
dev.pcm.1.mixer.vol_0.min: -32767
dev.pcm.1.mixer.vol_0.val: -14418
dev.pcm.1.mode: 3
dev.pcm.1.bitperfect: 0
dev.pcm.1.buffersize: 0
dev.pcm.1.play.vchanformat: s16le:2.0
dev.pcm.1.play.vchanrate: 48000
dev.pcm.1.play.vchanmode: fixed
dev.pcm.1.play.vchans: 1
dev.pcm.1.hwvol_mixer: vol
dev.pcm.1.hwvol_step: 5
dev.pcm.1.%parent: uaudio1
dev.pcm.1.%pnpinfo:
dev.pcm.1.%location:
dev.pcm.1.%driver: pcm
dev.pcm.1.%desc: Chord Electronics Ltd Mojo

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279839-227-LPIqoVAN93>