From nobody Fri Jun 30 02:05:53 2023 X-Original-To: usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qsdvj5BV4z4jvyN for ; Fri, 30 Jun 2023 02:05:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qsdvj2JZ0z46x2 for ; Fri, 30 Jun 2023 02:05:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688090753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QID6SQK99oKOsXPKdUl0pw+87FkCiT4Sb250O1XL8Zc=; b=w6hlG18rioUUl3wBOGed9PcZUJDYFXERfHjDIyRMp5/jbUn17G6GFbifrTrQmtKDo0bbwB OVlqwgdSBcgwpUIdjzs1l93Dh9RqTqMJSP6tItUGxI4L5Cj7pTKXGKQ91eC+97pEWS3ls8 OFuD14dQjubFUm0SR4OaOSgmpPEGKTeDovMQvljieLqSyq5Bz44j0FC8pKDVDwI9bcSf0m 3yft4m07SWUpYRQmhvmQ8zxZF09SSmwvHCcCSfnRlThlr6nzXFA93SgdtXsUIKDRhoEXSx OzDgcpC3S334Qv6EXR7lzWdTchpLLdnBeKZ6qPoH4oUI6Z9SU1wWAz8RghJklg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688090753; a=rsa-sha256; cv=none; b=rhPy9ID5lw6Bw8n9rHCPjrmCzQXw7Q1aJFDise4DzD1mquVMkFwW0iKBffmK1kesBygf5Y QIYinX5WSCkNc5v40ObKHTALDSXUuaeAzuCg5Y5dmHzq6sMI4HSCzcwQ1WdZ5zEuYyhB9S g8suUkbtUKbw4fo8VHTJcchfirdmX9YlH8q0lQabW8fwo8ZiqeKemQuZ/81UO0F6oCBoNh JsuGceeqccxMRD6F7yNjH/qGJAviN9xRmNGGiYVp36IO16RK5VuKtYyXqQv+pDex07wxeY 9tn/AaPVw620IZmEAFfxJsbdEvQOOkba/ptB6Z94n27gwr0zIp9WTvsjrSPb3w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Qsdvj0z3rzgq4 for ; Fri, 30 Jun 2023 02:05:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 35U25rBB062927 for ; Fri, 30 Jun 2023 02:05:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 35U25rdH062926 for usb@FreeBSD.org; Fri, 30 Jun 2023 02:05:53 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 272286] When unplugging USB sound card, usbconfig stops working Date: Fri, 30 Jun 2023 02:05:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: jonasbsd@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272286 --- Comment #2 from Jonas Lopes --- (In reply to Mina Gali=C4=87 from comment #1) Hi Mina, On the nose! It was SNDIO arresting the process. After I stopped the service: # usbconfig list ugen0.1: at usbus0, cfg=3D0 md=3DHOST spd=3DSUPER (5.= 0Gbps) pwr=3DSAVE (0mA) ugen0.3: at usbus0, cfg=3D0 md= =3DHOST spd=3DFULL (12Mbps) pwr=3DON (100mA) ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH (480Mbps) pwr=3DON (500mA) ugen0.5: at usbus0, cfg=3D0 md=3DHOST spd=3D= FULL (12Mbps) pwr=3DON (100mA) After I plugged the sound card back in: # usbconfig list ugen0.1: at usbus0, cfg=3D0 md=3DHOST spd=3DSUPER (5.= 0Gbps) pwr=3DSAVE (0mA) ugen0.3: at usbus0, cfg=3D0 md= =3DHOST spd=3DFULL (12Mbps) pwr=3DON (100mA) ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH (480Mbps) pwr=3DON (500mA) ugen0.5: at usbus0, cfg=3D0 md=3DHOST spd=3D= FULL (12Mbps) pwr=3DON (100mA) *ugen0.2: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL (12= Mbps) pwr=3DON (100mA)* The `procstat -a -k` command ran to completion without any problems. It did= not show any hanging. I think it's interesting to have a callback in the USB processes to signal = when something has been unplugged and to detach the reference. Such as, "hey snd= io, virtual_oss, pulse, etc, that sound card was unplugged. Take it off your li= st". Mina, thank you very much!!! Best, --=20 You are receiving this mail because: You are the assignee for the bug.=