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 Husemannwrote: > On Mon, Jan 23, 2017 at 08:33:34AM +, 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 >
Re: Recent amd64 auich panics
On Mon, Jan 23, 2017 at 08:33:34AM +, 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
Recent amd64 auich panics
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 fatal breakpoint trap in supervisor mode trap type 1 code 0 rip 80115455 cs 8 rflags 246 cr2 0 ilevel 8 rsp fe8043d4bf80 curlwp 0xfe8043d54620 pid 0.45 lowest kstack 0xfe8043d492c0 Stopped in pid 0.45 (system) at netbsd:breakpoint+0x5: leave db{2}> bt breakpoint() at netbsd:breakpoint+0x5 vpanic() at netbsd:vpanic+0x140 snprintf() at netbsd:snprintf audio_initbufs() at netbsd:audio_initbufs audio_initbufs() at netbsd:audio_initbufs+0xb4 audiosetinfo() at netbsd:audiosetinfo+0x95e audio_set_vchan_defaults.isra.14.constprop.16() at netbsd:audio_set_vchan_defaults.isra.14.constprop.16+0x17b audioattach() at netbsd:audioattach+0x68a config_attach_loc() at netbsd:config_attach_loc+0x17a config_found_sm_loc() at netbsd:config_found_sm_loc+0x48 audio_attach_mi() at netbsd:audio_attach_mi+0x32 auich_finish_attach() at netbsd:auich_finish_attach+0x4e config_interrupts_thread() at netbsd:config_interrupts_thread+0x30 db{2}> If I disable auich, it boots fine. The dmesg buffer is not saved and for some reason 'reboot 0x104' does not produce a dump, so the above is manually taken. Chavdar