🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.multimedia
1 messages
1 total messages Started by bugzilla-noreply Fri, 16 Oct 2026 08:47
[Bug 299418] After the FreeBSD-SA-26:71.sound update loading the multimedia/cx88 driver causes a kernel panic
#23
Author: bugzilla-noreply
Date: Fri, 16 Oct 2026 08:47
37 lines
3738 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299418

--- Comment #6 from Jason A. Harmening <jah@FreeBSD.org> ---
I managed to repro this locally:

--The panic can be fixed "well enough" by taking the approach I described
earlier: unconditionally call pcm_register() even if an earlier step fails, but
still ultimately return an error and use pcm_unregister() to clean up.

--The chn_init() failure is a latent ordering issue that's existed in the
driver since I wrote it ~17yrs ago.  The parent (bridge) driver calls
device_probe_and_attach() on the PCM child before the common attach routine
marks the driver ready for DMA programming.  cx88_audio_configure() then fails
during the initial CHANNEL_SETBLOCKSIZE() call issued during
chn_init()->chn_reset() as Mark described above, simply because the driver
isn't ready yet.  Before the SA patch this failure was harmless in practice;
the block size would be left at 0 and chn_resizebuf() would always end up
getting called again before any audio capture, at which point the driver would
be ready and the DMA programming would proceed.  Now that blocksize == 0 is
treated as a failure, an error gets bubbled up through chn_init().  Moving the
PCM child probing later fixes the failure and should be harmless.

I'll roll these changes into an update in the next day or two.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads