Current-Users archive

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

Re: Anyone using a Jabra USB Headset with -current?



Seems like the latest current causing my system to crash on boot with
xhci devices. Nevertheless, I tested jabra headset with the patch on
USB 2.0 ports, but it still causes panic on removal while audio is
playing by running "audiocfg test 0". It can crash with either of two:

panic: kernel diagnostic assertion "(target->prt_class == class)"
failed: file "/home/andriusv/workspace/netbsd-src/sys/kern/subr_psref.c",
line 296 mismatched psref target class: 0x0 (ref) !=
0xffffb45183b1a940 (expected)
cpu0: Begin traceback...
vpanic() at netbsd:vpanic+0x156
__x86_indirect_thunk_rax() at netbsd:__x86_indirect_thunk_rax
psref_acquire() at netbsd:psref_acquire+0x15a
audioclose() at netbsd:audioclose+0x96
closef() at netbsd:closef+0x60
fd_free() at netbsd:fd_free+0x1e4
exit1() at netbsd:exit1+0x126
sys_exit() at netbsd:sys_exit+0x39
syscall() at netbsd:syscall+0x196
--- syscall (number 1) ---
netbsd:syscall+0x196:
cpu0: End traceback...

or

panic: kernel diagnostic assertion "!target->prt_draining" failed:
file "/home/andriusv/workspace/netbsd-src/sys/kern/subr_psref.c", line
299 psref target already destroyed: 0xfffff0cdc5b42d48
cpu1: Begin traceback...
vpanic() at netbsd:vpanic+0x156
__x86_indirect_thunk_rax() at netbsd:__x86_indirect_thunk_rax
psref_acquire() at netbsd:psref_acquire+0x191
audioclose() at netbsd:audioclose+0x96
closef() at netbsd:closef+0x60
fd_free() at netbsd:fd_free+0x1e4
exit1() at netbsd:exit1+0x126
sys_exit() at netbsd:sys_exit+0x39
syscall() at netbsd:syscall+0x196
--- syscall (number 1) ---
netbsd:syscall+0x196:
cpu1: End traceback...

I didn't try to play anything actual sound file, so possibly it's
related only to the test itself.

On Mon, May 24, 2021 at 12:34 PM Andrius V <vezhlys%gmail.com@localhost> wrote:
>
> I will retest later today, I was testing current over a week ago.
>
>
> On Mon, May 24, 2021 at 11:07 AM Michael van Elst <mlelstv%serpens.de@localhost> wrote:
> >
> > On Mon, May 24, 2021 at 08:49:26AM +0300, Andrius V wrote:
> > > Jabra Evolve 20 is not working on NetBSD 9.2 for me (submitted pr
> > > 56172 recently). But yes, it does work on current branch, except that
> > > removing headset on audio play causes panic.
> >
> > Possible. I test on -current.
> >
> > Removing the headset doesn't panic for me which might be caused by:
> >
> > Index: uaudio.c
> > ===================================================================
> > RCS file: /cvsroot/src/sys/dev/usb/uaudio.c,v
> > retrieving revision 1.169
> > diff -p -u -r1.169 uaudio.c
> > --- uaudio.c    15 Feb 2021 13:39:18 -0000      1.169
> > +++ uaudio.c    24 May 2021 08:05:05 -0000
> > @@ -519,7 +519,7 @@ static int
> >  uaudio_detach(device_t self, int flags)
> >  {
> >         struct uaudio_softc *sc = device_private(self);
> > -       int rv = 0;
> > +       int rv;
> >
> >         sc->sc_dying = 1;
> >
> > @@ -529,8 +529,11 @@ uaudio_detach(device_t self, int flags)
> >         uaudio_halt_out_dma_unlocked(sc);
> >         uaudio_halt_in_dma_unlocked(sc);
> >
> > -       if (sc->sc_audiodev != NULL)
> > +       if (sc->sc_audiodev != NULL) {
> >                 rv = config_detach(sc->sc_audiodev, flags);
> > +               if (rv)
> > +                       return rv;
> > +       }
> >
> >         usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, sc->sc_dev);
> >
> > @@ -541,7 +544,7 @@ uaudio_detach(device_t self, int flags)
> >         mutex_destroy(&sc->sc_lock);
> >         mutex_destroy(&sc->sc_intr_lock);
> >
> > -       return rv;
> > +       return 0;
> >  }
> >
> >  Static int
> >
> >
> >
> > Greetings,
> > --
> >                                 Michael van Elst
> > Internet: mlelstv%serpens.de@localhost
> >                                 "A potential Snark may lurk in every tree."


Home | Main Index | Thread Index | Old Index