Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Recent amd64 auich panics



Indeed the kernel from overnight boots OK and sound works. There is some problem with the sound in this configuration though - I use from time to time audio/moc on this machine and noticed it has become decidedly choppy - I don't know when, as it is the same with earlier working kernels (but perhaps two months ago it was OK). Of course the reason for this may lay outside NetBSD - VirtualBox sound emulation driver, Windows 10 driver etc. 

Chavdar 

On Tue, 24 Jan 2017 at 07:43 Martin Husemann <martin%duskware.de@localhost> wrote:
On Mon, Jan 23, 2017 at 08:33:34AM +0000, Chavdar Ivanov wrote:
> Hi,
>
> The last few days I am getting repeated panics on amd64 -current running
> under VirtualBox (latest 5.1.14 version at the moment) as follows:
> ---
> panic: auidui_init_ringbuffer: blksize=0

There were some changes in this area yesterday which fixed a similar
problem for me, also this code probably needs fixing:

static int
auich_round_blocksize(void *v, int blk, int mode,
    const audio_params_t *param)
{

        return blk & ~0x3f;             /* keep good alignment */
}

It should return 0x40 instead of 0 for too small block sizes.
Something like:

        if (blk < 0x40)
                return 0x40;            /* avoid 0 block size */
        return blk & ~0x3f;             /* keep good alignment */

Martin


Home | Main Index | Thread Index | Old Index