NetBSD Problem Report #56172

From www@netbsd.org  Fri May 14 22:55:57 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 05A5A1A9245
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 14 May 2021 22:55:57 +0000 (UTC)
Message-Id: <20210514225555.1F31B1A9287@mollari.NetBSD.org>
Date: Fri, 14 May 2021 22:55:55 +0000 (UTC)
From: vezhlys@gmail.com
Reply-To: vezhlys@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Jabra Evolve 20 headset fails to work and may cause panic on removal or audio play
X-Send-Pr-Version: www-1.0

>Number:         56172
>Category:       port-amd64
>Synopsis:       Jabra Evolve 20 headset fails to work and may cause panic on removal or audio play
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 14 23:00:00 +0000 2021
>Last-Modified:  Sat May 15 19:45:01 +0000 2021
>Originator:     Andrius V
>Release:        NetBSD 9.2
>Organization:
>Environment:
NetBSD  9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 22:13:25 EEST 2021  andriusv@:/home/andriusv/netbsd-src/sys/arch/amd64/compile/GENERIC amd64
>Description:
I was trying to use Jabra Evolve 20 USB headset, but unfortunately I couldn't manage to hear any sound from it, I am receiving these two errors on audio play or test
audio1(uaudio0): trigger_output failed: errno=5 
audio1(uaudio0): device timeout

What is more, removing it from USB port or sometimes at the beginning of audio play, it may cause kernel to crash:
uvm_fault(0xffff981a31ae1188, 0x609ed000, 1) -> e
fatal page fault in supervisor mode
trap type 6 code 0 rip 0xffffffff80958670 cs 0x8 rflags 0x10206 cr2 0x609edda8 ilevel 0 rsp 0xffffd0825cd6acc0
curlwp 0xffff981a3058c140 pid 572.1 lowest kstack 0xffffd0825cd682c0
panic: trap
cpu1: Begin traceback...
vpanic() at netbsd:vpanic+0x160
snprintf() at netbsd:snprintf
startlwp() at netbsd:startlwp
alltraps() at netbsd:alltraps+0xbb
mutex_vector_enter() at netbsd:mutex_vector_enter+0x91
mixer_ioctl() at netbsd:mixer_ioctl+0x58
audioioctl() at netbsd:audioioctl+0x201
sys_ioctl() at netbsd:sys_ioctl+0x5ab
syscall() at netbsd:syscall+0x157
--- syscall (number 54) ---
73ee925682ba:
cpu1: End traceback...

>How-To-Repeat:
Connect Jabra Evolve 20, optionally make it as default device, try to play from it - gets device timeout/trigger_output failed errors.

Start playing some video in the browser and disconnect the headset from USB port - system freezes, kernel crashes.
>Fix:

>Audit-Trail:
From: Andrius V <vezhlys@gmail.com>
To: port-amd64-maintainer@netbsd.org, gnats-admin@netbsd.org, 
	netbsd-bugs@netbsd.org, gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-amd64/56172: Jabra Evolve 20 headset fails to work and may
 cause panic on removal or audio play
Date: Sat, 15 May 2021 22:43:33 +0300

 This issue seems to be fixed in netbsd-current. Jabra headset is
 playing sound on audiocfg test. Removing it during test play causes
 assertion failure in src/sy/kern_subr_psref.c, line 296 (mismatched
 pref target class: 0x0 (ref) != 0xffffede25fb1f7c0 (expected)) though.

 On Sat, May 15, 2021 at 2:00 AM <vezhlys@gmail.com> wrote:
 >
 > >Number:         56172
 > >Category:       port-amd64
 > >Synopsis:       Jabra Evolve 20 headset fails to work and may cause panic on removal or audio play
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       low
 > >Responsible:    port-amd64-maintainer
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Fri May 14 23:00:00 +0000 2021
 > >Originator:     Andrius V
 > >Release:        NetBSD 9.2
 > >Organization:
 > >Environment:
 > NetBSD  9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 22:13:25 EEST 2021  andriusv@:/home/andriusv/netbsd-src/sys/arch/amd64/compile/GENERIC amd64
 > >Description:
 > I was trying to use Jabra Evolve 20 USB headset, but unfortunately I couldn't manage to hear any sound from it, I am receiving these two errors on audio play or test
 > audio1(uaudio0): trigger_output failed: errno=5
 > audio1(uaudio0): device timeout
 >
 > What is more, removing it from USB port or sometimes at the beginning of audio play, it may cause kernel to crash:
 > uvm_fault(0xffff981a31ae1188, 0x609ed000, 1) -> e
 > fatal page fault in supervisor mode
 > trap type 6 code 0 rip 0xffffffff80958670 cs 0x8 rflags 0x10206 cr2 0x609edda8 ilevel 0 rsp 0xffffd0825cd6acc0
 > curlwp 0xffff981a3058c140 pid 572.1 lowest kstack 0xffffd0825cd682c0
 > panic: trap
 > cpu1: Begin traceback...
 > vpanic() at netbsd:vpanic+0x160
 > snprintf() at netbsd:snprintf
 > startlwp() at netbsd:startlwp
 > alltraps() at netbsd:alltraps+0xbb
 > mutex_vector_enter() at netbsd:mutex_vector_enter+0x91
 > mixer_ioctl() at netbsd:mixer_ioctl+0x58
 > audioioctl() at netbsd:audioioctl+0x201
 > sys_ioctl() at netbsd:sys_ioctl+0x5ab
 > syscall() at netbsd:syscall+0x157
 > --- syscall (number 54) ---
 > 73ee925682ba:
 > cpu1: End traceback...
 >
 > >How-To-Repeat:
 > Connect Jabra Evolve 20, optionally make it as default device, try to play from it - gets device timeout/trigger_output failed errors.
 >
 > Start playing some video in the browser and disconnect the headset from USB port - system freezes, kernel crashes.
 > >Fix:
 >

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.