From nobody Sat Mar 30 20:14:39 2024 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 4V6T5W51Xrz5Ftcd for ; Sat, 30 Mar 2024 20:14:39 +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 4V6T5W2kp4z4jfy for ; Sat, 30 Mar 2024 20:14:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711829679; a=rsa-sha256; cv=none; b=x9FszUDVD3DsxUzC1BdapZgVtvetE10qiSGcjaz1Y2JmGjPQ9WvRAkTXuL5DAOsWNEySrf T1nXDNvOmTGOFGNlyIVOFcIKvXxixJt4i/VB3zyqs7xC5jQlKPLYkCC5Py2yOJ0pIIKfGR Xy61iNwNZWWdgHNmvEWxGcrw/rAVKuQpzNQcghjXA03iG9wEw59qRUTiSbCbyScAUm5aJ5 36SFahVayQAG40lwcklIZC23reByESueTcfdBwXsoY+PxC3/Oq81oVn02KTfdvySg7Ynpc tiZVyALJr081T7SYvHTvPtLsPxtotunzh4ZEedZM3xmCquMG02zAEU/lvSJQMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711829679; 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; bh=Jr8KVzBRdBZGZlBNfd5g6yBJRFo+bi+DPVTVcOifWsE=; b=BDZZEpbMkZ886DaxA+t/IaNMtbb0i68Q3AzH9guAv3j+aAd4QSXX+B6RCG8OFqv0L0qlVn Ph7bbWkdzbVLCiJs71hlNrZSxiW9g6JZ7wMbGbeigj/XdYVISgyCHJKMtVOfhPKC0Atk16 QYPzSjlU60TGgV8XG5LQ/RFJhCxyVddCt7lAuD7rNjhsWI/Q7N83tQqJbfI4AWlOtTVTng Q7LAJp+72wYSrbofDc0w8RcWt33W4EhxgOJanMA1YkwkKo2oUBE9RUZ1OzjjLTXJqA9m7w yIKJ35xX20c5loJmwHww5Q0lFpKY69MmpDWHfWSox6u/GvooCDG4cQ82Mye5IA== 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 4V6T5W2LcLz17Mp for ; Sat, 30 Mar 2024 20:14:39 +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 42UKEdAh012029 for ; Sat, 30 Mar 2024 20:14:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42UKEdpA012028 for usb@FreeBSD.org; Sat, 30 Mar 2024 20:14:39 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 278055] USB devices connected to hub not accessible after audio device inactive Date: Sat, 30 Mar 2024 20:14:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fbsdbugs@sapka.me X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278055 Bug ID: 278055 Summary: USB devices connected to hub not accessible after audio device inactive Product: Base System Version: 14.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: fbsdbugs@sapka.me Hey. I use a Thinkpad X1 Extreme G2. I have an Ugreen USB hub/switch connected. There are three devices connected to the hub: - digital audio converter (Tempotec Sonata HD) - keyboard (Bastard KB) - yubikey My audio setup after connecting hub: cat /dev/sndstat Installed devices: pcm0: (play) pcm1: (play) pcm2: (play) pcm3: (play) pcm4: (play) default No devices installed from userspace. after connecting the hub, everything works fine. I can change the audio dev= ice via sysctl hw.snd.default_unit=3D4 However, If I disconnect the hub (switch to another device), the keyboard s= tops working. The built-in one on the laptop works. In my dmesg I can see pcm4: unregister: channel pcm4:virtual:dsp4.vp1 busy (pid 96759) pcm4: Waiting for sound application to exit! pcm4: unregister: channel pcm4:virtual:dsp4.vp1 busy (pid 96759) pcm4: Waiting for sound application to exit! pcm4: unregister: channel pcm4:virtual:dsp4.vp1 busy (pid 96759) pcm4: Waiting for sound application to exit! pcm4: unregister: channel pcm4:virtual:dsp4.vp1 busy (pid 96759) pcm4: Waiting for sound application to exit! When I pkill this PID, reconnect the Hub everything starts working again. --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Mar 31 12:56:59 2024 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 4V6vL34yJKz5G0ns for ; Sun, 31 Mar 2024 12:56:59 +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 4V6vL32G8mz4QFk for ; Sun, 31 Mar 2024 12:56:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711889819; a=rsa-sha256; cv=none; b=pMUjVGTX8Syv9vhiFGqXW8xv4Mjk4biT9FCfLNXSAM/Tg6fITNlDxLuXdJG2ebf+Janh3q nY4M0MIS99JnTDR8tismrx2H97qlfFoftQlOTh0vyBk0rZbGiUvXmb5+amf0bZIZvp/nWp hA1a/otUG4qpMtMB3RrT6n3hpEtob+T83F/eByEoMV3/9qcMviPzK8jzg2bQ8kbxtVVSua 1LxBKwQ0ABw+cDu9LkTHxzrYCam+5MYR3PHXycTwCHPqZjK8GC4a6jcX7WcPyaJVI/16HF Z5Ax2TyyphTs4p3S31naTrOgySszfV331HTUN18fbFkKZaTRgY2qgX/Z7c3sQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711889819; 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=p19gI4srqEqhqQvr1IMLGl/ajY1cSJaM06pUcyjGdMw=; b=QXjvRZcRAQfIyUzispl5GxSfoKtKJdYonSuVz0Bv0FJJvM6d83MYSqcDx9kKqaFsg40X+t o9MlFKsByGXrrp6Lqf5Hr/Y35fuhpw4er3aPDMBB7yVm+VfC+7IjWyNfHSDz6gO7ZAIiHB 583KF7IxurFRkp4sOo6pDmiAZKJoFHWmy6iKJzXNlqb+S+gdAePM6tWXAjqr1RcLrg6s/y FqMHS7rbBe+Iy4mpdtuh7varA0LOvU5PedRWihkx1waD3GlKB3WDSLG8cmWnuZn+RKnrpB o+bcTQQDziVtJpotY69CiBGwDWqfq43lHIq9Ujo58jHSz0soRfm76Hz44O/EDQ== 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 4V6vL31rmdzfDB for ; Sun, 31 Mar 2024 12:56:59 +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 42VCux4u085819 for ; Sun, 31 Mar 2024 12:56:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42VCuxJl085818 for usb@FreeBSD.org; Sun, 31 Mar 2024 12:56:59 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 278055] USB devices connected to hub not accessible after audio device inactive Date: Sun, 31 Mar 2024 12:56:59 +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: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc see_also 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278055 Ed Maste changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |emaste@freebsd.org See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D1= 947 | |27 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Mar 31 12:56:59 2024 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 4V6vL62srtz5G0kQ for ; Sun, 31 Mar 2024 12:57:02 +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 4V6vL6142Pz4QKq for ; Sun, 31 Mar 2024 12:57:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711889822; a=rsa-sha256; cv=none; b=akFT8PgsTiptucCSK/awI/+HriRmy1GazeZomKpAMZE8iUARhUaAaCgZXuroLtG5UTgBkz nqfVqCnL2YUTpKDzNXdnekEDSfSjAybQV2LVLCYUrfM0MKzxEOJ0h8q5JW7wpl6s5JIMxs plrsp8q4xoF+PSPU6HqxDCWBpdYUpaPT64+Ta77X+bPTG5ruWpLJMkhPaD2o+UIInI/Q6r HxKYaGh4X817jss9/QfxHxpvfAiGfkmULp4Pq5tf7MNpfI0eSsKvsrsPONovmPg6ybKx7N yOEQ21+FOaTX5y+dwqrrhqcRz8jqRgTuqLjlTToJQdQzDDiQ7YT84Z5Cg4wVag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711889822; 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=2YfkLnr81+A0HJu8UgYRRkqQ6JJK6WHd6e+DnW78A7w=; b=lRUW0onGeH50oTg52Alzb26uvHPRfQcDGZnXGHjUo2nrSmX1m5Hjyg4tPZChStzbWcPO7F bq+O3MxGCL7R1WAi1qPtZ8LfRKbddUSQsBRcH/gKNTKtO2FV8kPnnm/367qR8FKbpnVp0L FiGnTEbMeEJgKa77gRkNNbr1ZZvmPC92owp/zxZXPXgZqoSTZDIyZSq8hddqL1J0iY2F7z YEJZyR0qcWXIBBBbdb1rtxUXIKO9dVipcGq7EPMtJa5YBYURx4Wfu+8IScCi9w6PN4LwpE PbbeWAXPrRDa5pdx8KckQBhah5dURSnHDtDemThXwS3tg/TVyb3l1jab8dEoVg== 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 4V6vL60g2FzfDG for ; Sun, 31 Mar 2024 12:57:02 +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 42VCv1og086118 for ; Sun, 31 Mar 2024 12:57:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42VCv1kW086117 for usb@FreeBSD.org; Sun, 31 Mar 2024 12:57:01 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 194727] uaudio device gets disconnected, and hangs usb until everything using /dev/mixer* is closed Date: Sun, 31 Mar 2024 12:56:59 +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 Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D194727 Ed Maste changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D2= 780 | |55 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Mar 31 13:11:20 2024 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 4V6vfd0bHpz5G1Tm for ; Sun, 31 Mar 2024 13:11:21 +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 4V6vfc0CVGz4RpP for ; Sun, 31 Mar 2024 13:11:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711890680; a=rsa-sha256; cv=none; b=uqK+df6Et/kEI3aK4+L2FrCRFIruB5iGprhRxv878eCXMRew+FIcrsWaiJUKbAIjJOmBau 1IMBXbzX7/dWABLUMPrBkaCelYVr6TPNO5LtJ8voRxyZm3cnNQhaWgRkmiJqXnxAgzbV/v QHjJPeYKMRbGWwWFMEjFmw4uQG/nvrNJ0qof84hDPOgQjW0K4MIM+loD+Qi3XGGM58VCEq AH4M0rZmW2sSDsYgbhXx0L0yvaweFnZtTpZAA1pv6DPpoDa+jnFVL7RU6+7BVWHuAtynVa DeEhXKCqyle69XUmE8LJyfVJzi7Hzm9l5lNS9q5tR8F0Q2A7MDMWwmTmevx3ig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711890680; 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=KlCUIc5OZcf00CRWXllx6CUjmrrnWImKWslquQxcrhU=; b=Xsjc87PRcbFdh24TwF1plIwVKD2N7RhbHgEUKtHHcS1Lp8Y4BbwtnDoR3KYC8dLmcgOwtN rbxhnq/tXZJEJfy42veZ8uHJxOoKBEVAZg9fw16210iRUzgBtq93xzc3oyDmnIylBSZOdD lsyDSDD7LfevQT/8yr1rGr0tdrNG/r/iwXCuUZ3joiOEp7J5TMKi5ajQktYEDqS6lnW6AY D6dg9yl7vHNfdu1GGQBjH/0idYerjv6QxCof/xXUOibQdBuXTUbySHVkR0Fy022vWJMhSn JV1ELzlybh+tUA7owu1LjT37naXQXenMnkJ2iJwZSM4adUd8iZZyeYby4EtkJg== 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 4V6vfb6xXNzfmk for ; Sun, 31 Mar 2024 13:11:19 +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 42VDBJio064466 for ; Sun, 31 Mar 2024 13:11:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42VDBJn0064439 for usb@FreeBSD.org; Sun, 31 Mar 2024 13:11:19 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 278055] USB devices connected to hub not accessible after audio device inactive Date: Sun, 31 Mar 2024 13:11:20 +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: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: christos@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278055 Christos Margiolis changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |christos@freebsd.org --- Comment #1 from Christos Margiolis --- Hello, This is a known issue, and I have already submitted a patch to fix it [1]. = It will probably be committed to -CURRENT within the next days. [1] https://reviews.freebsd.org/D43545 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Mar 31 13:13:03 2024 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 4V6vhd0rfvz5G23R for ; Sun, 31 Mar 2024 13:13:05 +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 4V6vhc614Bz4SDH for ; Sun, 31 Mar 2024 13:13:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711890784; a=rsa-sha256; cv=none; b=UPuOmtAsIzSLayw2+WBA2YjtZoskm9QjzgdeXEYhCcwYzAVoAUkwtw/vLilVtIyPzYtMDm 0xstciuqtvmQYRFD8Lr/HH/P7MMfqi2dGOIkVdtDvrqJg8/P3D10rhXjDT1IR3EAm638Kg rRgIj8UzpElv1VIfqoY7j/kp/PYOpJXYd2IZH9WAkwuqCvWC5s2oErm0OdoiKYfuV8OEwL yG7ciqQ7GIg8GbI4wa2OOyAVZvHiisqjQjqjKVojQMaYpmmu774OCjhwiXc6KaxPIpxETG X5+a2T5E2eoC2V1mhyuC58jWa7R3CZRwVf/5E9mqpkHvRDOAm0sZBXb43ZtRgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711890784; 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=vrVEjla1NBtGS/bl+FZkW1yh/GqT1lnsePyPPwkTTmE=; b=dBGF3wJGE/RzMNSPsZCq/sGsC7YzMfs+eNG89IaqkQ7sEZiCxAT7qXdJKrc65oIcZU0Df5 H4/ochXu0Ko165hoX4W7a6gVwmXQgU6Xn3dsVplSSGkfx1y22x1opznj+5Qcur0pCc92GJ 8NQQXXgbRtl40INkaNMBJJiQBIzndeL7IyFYdTqP3js00ibZRTREAeDrNahzo25lsyd/YR ytNMIaKgRcuXGJ7IQ5m44NbQqBrQb9LuQc/QyR937b40p3CEGCYzuvwZwHZDfLQYqEV+ms hg7H3F9PRmX7Xx60UZEiRT+RPExIbXdmepC3j6W/rX0/HoTtGTvuSWVLy49fGw== 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 4V6vhc5cl8zfnL for ; Sun, 31 Mar 2024 13:13:04 +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 42VDD4s9084466 for ; Sun, 31 Mar 2024 13:13:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42VDD4nl084465 for usb@FreeBSD.org; Sun, 31 Mar 2024 13:13:04 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 194727] uaudio device gets disconnected, and hangs usb until everything using /dev/mixer* is closed Date: Sun, 31 Mar 2024 13:13:03 +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 Only Me X-Bugzilla-Who: christos@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D194727 Christos Margiolis changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D2= 022 | |75 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Mar 31 13:13:03 2024 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 4V6vhh61wFz5G2Dv for ; Sun, 31 Mar 2024 13:13:08 +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 4V6vhh4w3tz4SKR for ; Sun, 31 Mar 2024 13:13:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711890788; a=rsa-sha256; cv=none; b=IemtQLfrf5UzptIoisyq2tEO4hnr+r8/Z03WeagQawu8nutnOWcBvYBQQxtPVv9ml40aty LlWsWCjfHOoPIVrFobETFE1rKLsAGP4cxotsTTeA4HHeXB9NVAeOa1RmyrTpTkh1WgTWE0 X8zg+z9GWcKz8c3Ko7cJxJ7e7Rag3715FbZwst/6tjA55cEQ1dH/NmH+ukAPcXb/+eL1SH MnvyyuKka5cyYgpgcLM+yUHLRMRQxfIe6kAUvMKWRvdJLVTLkDkYdLJNtWhZvnW6sW0XV+ fKQpXZM4LWMHCyrTLd6hLqWpWlH5yK4zf9IWLd33iIEDTWK3x/tB7qMT3Iwi7A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711890788; 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=HBo45WdjyUhGC869A2BfysVcx7hCcYGMs7jijBQ0sLw=; b=C0xCnBHK2SP0LHhn5zs/fh7V7rHyQ6VG+Z5EmPcqzfkuF6Hc2g8/F+c4GB8YwgQv0Ku3NS ybXoax6Qa2e7FBfIBmAjxoIqR/SgIg9p6UaPR6CFriiSRXcQmSbhzW/PxfLfOsBCpqy+oe rWKUwOWQSObaG+MWVAiI09bU6t84qU3ijDhFNtRUUvfGZe/3vF1eYNiDvs/WYOWPMMZI4P U4RhMjB1IoDTqjYViVVioSyk920Pguvo1V48Crg4lLYJQ102XfbCUSfH6Hyi7Yb1eid4+f ZjJWcpX0HjlxjM4d33dO1GjAu99DTzCGbq8nETR0bQ7o5QM8ogF14GcOuIflBw== 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 4V6vhh4Q1fzf2d for ; Sun, 31 Mar 2024 13:13:08 +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 42VDD8U4084724 for ; Sun, 31 Mar 2024 13:13:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42VDD8PV084722 for usb@FreeBSD.org; Sun, 31 Mar 2024 13:13:08 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 202275] USB SX lock hang involving sound devices Date: Sun, 31 Mar 2024 13:13:03 +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: 10.2-BETA1 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: christos@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202275 Christos Margiolis changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D1= 947 | |27 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Mar 31 13:13:30 2024 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 4V6vj634Ttz5G2Kh for ; Sun, 31 Mar 2024 13:13:30 +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 4V6vj625cpz4SkT for ; Sun, 31 Mar 2024 13:13:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711890810; a=rsa-sha256; cv=none; b=AlEpYmoN7KRIa/Web4hh8/Px+VlAVDrxd4q/zAvDQ2+aoikMzUGB8GeC3eQ0IhQdMKGhRs 8T6TLDAyobmQwbluf1HFMFP67+yvTL79vXebgNdlCCG6AOvBaNFyYFZTOaT8q2KqrlM7rC 91duqrQShNz3TIqgv6rN4um2UthLsYdK8e+JNxerLGnDfzED2I7hpq5IrOQpOII9WpIlgI cdFZ9NN0/AkPtLfTMEHdCbRAdgLUZ8xkSvaFI3bQldEkVTjRu8xewu4raBi7h35BMB3BQT MrnSCvJTNoBqMcKk7u1Qc8EXuB4g2qR28SuBYSZ4J/ixc/Mi1rmRty7ch6kweA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711890810; 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=IV52c5a6pDjfFEuivQtPKaIh860xtOcVQTH7eKPnWkA=; b=rHH/6LvZ9D0v8v/DGGATWKFgunW9XfzGXDuZxITYRAxF+0HdBKp3oRqPTW3cQstZMGB6o4 3LoRXmb20ns8rA393aG8QOkzyLhlhgGfgg9yC8inT5iZh5JWAPe93WU/VfFPnuio3NUgEN NWBkG69/6yxVgep00nZ5KDNUtANGg2emjCJkzzrN6XAZdWSMGiJOiKvDf52qGt8Y+Hdtry Styp6fP4delm3O8SsE5eB8QEHF5GI8oI6u6y7lQgY0yRjYRyLqXVJHAVLGsP6QXkBV8x4+ q1msXsJDJDQ73BbkB7xF0EN5WAZtF7fM4ZvFvTTeW/+CbSsPuIuc47EntaBV1w== 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 4V6vj61jhfzfY9 for ; Sun, 31 Mar 2024 13:13:30 +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 42VDDU1q085932 for ; Sun, 31 Mar 2024 13:13:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42VDDU45085931 for usb@FreeBSD.org; Sun, 31 Mar 2024 13:13:30 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 194727] uaudio device gets disconnected, and hangs usb until everything using /dev/mixer* is closed Date: Sun, 31 Mar 2024 13:13:30 +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 Only Me X-Bugzilla-Who: christos@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D194727 Christos Margiolis changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D2= 209 | |49 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Mar 31 13:13:30 2024 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 4V6vj90QbFz5G2Kj for ; Sun, 31 Mar 2024 13:13:33 +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 4V6vj845B8z4Sn2 for ; Sun, 31 Mar 2024 13:13:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711890812; a=rsa-sha256; cv=none; b=OnZXfNbBGAkuuwoMsskTCwNCjv0z8uGi7Cbt2ZRxzrQGnoQXdeNL3EhYOOufEvU+p6rSkC SNnWxuDV41X735MQJWWOV0LdLo1R0TqwFcZW7orPTsfyv0Egyx5x/qyF4z+bSe/q7i9cSM EZWU523TPVakY5Tz2iqZZys/6nnGy2USyVp5ir/fBATVwfyVqAVWSqDQOV3731gEO3Hxyu yyhDVZlKDbTkAX74WpjNLzEUmGAzejlTsr5fVoL05oeS9e77qteH3iii5jODPUNETFVCwi 4R66QBRHFkWMnsmjePcyMOZZtquIexQ6FE+7BdIx6MNhkljAW6qp6Ca9ZLXhjw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711890812; 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=cIaFjq6hy/vQcXToPWeQj5YoPZPtnDtR6aRHJA6zWjY=; b=mrgUxMAdGWm4vcL/6dFmQoCKHHGsbQ+j9KfpcuVYtzSygT1jRXRqaV+2AeXzuuA/131i/4 kciUqPUY5Jl819N6/Mja9bjnyeuKzZ0qYzNEtlLsfdnfUXuS1mzl9TZwKHgty2mwDoYSp6 ffhPTGlx1rGcYn9WUyIztMRB/S0rxR0STytNCZbK/hK4eSlFyp3QXcGeoP4LcJevHcpMzL DGZpiA8bG2OrjPoU0/+65PkR1hFUpD1TDQvcx1LBRg68MthluCLirJ/UE2pMRJTORmnjf5 PtAi63Vz+lDE4recGDYMNr2MXHjtR99Ll0VAk/YMvrY+6mRU3h8if83IRRVD6g== 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 4V6vj83c55zfqX for ; Sun, 31 Mar 2024 13:13:32 +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 42VDDWHK086182 for ; Sun, 31 Mar 2024 13:13:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42VDDWLM086176 for usb@FreeBSD.org; Sun, 31 Mar 2024 13:13:32 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 220949] When the only USB soundcard is disconnected, defunct /dev/dsp0 is left, kernel warnings, programs hang Date: Sun, 31 Mar 2024 13:13:30 +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: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: christos@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220949 Christos Margiolis changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D1= 947 | |27 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Mar 31 13:13:48 2024 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 4V6vjT0JP3z5G23b for ; Sun, 31 Mar 2024 13:13:49 +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 4V6vjS6JGmz4T5C for ; Sun, 31 Mar 2024 13:13:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711890828; a=rsa-sha256; cv=none; b=ZOcF6bO+QHY+7izpfJ35fD4Ey+S4iOdDOTz8vbWNjbyaHVECEZ4VuxN1KEUP8SW8mRfjhj GIPboqAVA6I5hj/yMVf9GQ+CKzzk/T9ZeG47gPzfOU3bOt8/VBUVj075iOiG4vAYTrMnwM vY9f+F+Tz9vN/MTfhuZUCmjBEAq9CknYiOJIw56nAOHQua0a+HZ0RJ8pGvczjLQRrCPrV4 Fdh5IuJnDGl/UI4w2TApayaQlgbwzKkU5W7lRoW4flN/3e14w6+HlB0P7jJ3rMoLhF1PGl h8R9kjsSWiz3bf8lZiXqZNL9hKVDl15AGgCZXpFnoYJoW1WK0bQtYBwvUHyung== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711890828; 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=cUgp3Z2fLQbGAtI7E8fnsMHFq35gL12hU5q+oyDvfhY=; b=HMefLXWC4vEfZ8SnnK8Eo/g8o+upx/xv3Mim8cC6UTeetvXkPYIGyEs/6/rVuOg1djaiqK rQIjLzi63OSIVM6onIfPWJFFp2wtNaw4QbnW0r0kp0BVg2m4dKZJwBQsiFBeuW/ZZqo9On tOmJdJdZHmBurWc7nRWIT6zBUSl3Ol1HqdzeDLNcurklwDl+aWQtnrU2kkU13MmDNSodPV j2vfr5J5YmUfuZ7qX+FN/HUrbnu5WhtMikJ2HYeyYM6P6Lb/Wg1qC34MRTCTL4dqFYiMup Dw7L+ZupjpKf2J4bEkL7f/VfVn/WhNs1vZlFQ+Vg87h75qU0VNn5T+2FVIzkpw== 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 4V6vjS4qZqzfS3 for ; Sun, 31 Mar 2024 13:13:48 +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 42VDDmEX087079 for ; Sun, 31 Mar 2024 13:13:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42VDDmZs087078 for usb@FreeBSD.org; Sun, 31 Mar 2024 13:13:48 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 194727] uaudio device gets disconnected, and hangs usb until everything using /dev/mixer* is closed Date: Sun, 31 Mar 2024 13:13:48 +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 Only Me X-Bugzilla-Who: christos@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D194727 Christos Margiolis changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D2= 722 | |86 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Mar 31 13:13:48 2024 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 4V6vjW35XQz5G2HT for ; Sun, 31 Mar 2024 13:13:51 +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 4V6vjW1SnPz4SvL for ; Sun, 31 Mar 2024 13:13:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711890831; a=rsa-sha256; cv=none; b=AM0yIkOJ4qlBfJGjd61z6e3es5GKXMjjsnlNePOzLVE8gZr5Y8J7u/kP6hpVYRL6ZZHAGG +H7iebdC1inTQJFH43WOPntRCZsgbM50VKpm25C5aIUuWKKkw3di8TEOPntgpkH/jqW/3A ZrOhnzzk1y8SfElmQm6IjN0GK8wDbjsOPuPFL/wS1kwnpQR4Y+NVNpyolrfHUwZnMp5gKG CEDpWvRG0TpVgl24cTpZ1G2JLLh6vUIHanpzAdjjte4laymQE1C98QpLw+EuJwKhRgieNP 7WIFk6U4vGKjcgC2dCqmKblgWuIV67M/5aLxTCRpac9Q2UUzprR8TRY0KWJRHw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711890831; 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=tWrDK9eDEQdT4ed5WowhWa7YXtoPTu/qsyBVWsjeRR8=; b=AvyFaHfozrqspec2pXUddnV7bakb5HnjzdT7eLEEAtpkq67GsKeMIk6ETEWD7JulKgi1Cr m5DRYQL3zR+DkfWSmvJFY0eh20Lk8LbygnYiVwYRJNwlTU+mRfI7TNMn/X/JLencysqZJM 4CtqdvmP0cU/eHQc1DvjK84UFlOIBRJX5VxT5Oqv1xBSl1Qb3A5g+fHM+s6leHIQyAb+RH zyPTnWGQ1muHpnU2Y5ZQzzc9MxmTDuLulZlwiu/0+unmhzjm2KVBeBouRKEtJm5mVEsVQv KYcsZGH5UCluDO56Z/hyY/+QuhjVA6kYv/cCCBJNf7exZpQEMVb0MPzNitBKXg== 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 4V6vjW154NzflK for ; Sun, 31 Mar 2024 13:13:51 +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 42VDDpj6087273 for ; Sun, 31 Mar 2024 13:13:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42VDDpY1087272 for usb@FreeBSD.org; Sun, 31 Mar 2024 13:13:51 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: Sun, 31 Mar 2024 13:13:48 +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: christos@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272286 Christos Margiolis changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.freebsd.org/bu | |gzilla/show_bug.cgi?id=3D1= 947 | |27 --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Mar 31 14:16:56 2024 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 4V6x6K48m2z5G7nk for ; Sun, 31 Mar 2024 14:16:57 +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 4V6x6K2X5vz4ZqL for ; Sun, 31 Mar 2024 14:16:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711894617; a=rsa-sha256; cv=none; b=nJySXJlZrz7lXxdSGwZOvyjGG46ztkR8sctN7keV0gRcg3LZTbiyV2i8vqHL8/AKBxnzr+ A3mfOO2DhW7kg54fUQ76R/JqSAeE0tde/gSiUmpyR2bGhnAA2MDbtnX0Mc9ACTqTVzoIqb 43VTlvGuUytCNxMPa5mxGWmlNGq5Bj8Fl5IdfaoyMxm9Hu+Fd9MdG1QTVoQY+EvxLpncNm 1seye87PDNtzY0bjLCHy42ssczaBAUVMKv0BQj2Q1KZfvqCP3AAg2hOihdd3cvNigJ9q3t loFB+hCu/Svw5KZHsxJXx/DvhUf7GNeUGnTxdfoxwGIJmyfjIAA79pqiY2zczA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711894617; 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=a8vQMyZVJMYC8yTR/jT1QP4IENcwsVDOfTTdhFsxIPM=; b=a9e34sOUvwZeM2eytSninWpFblVxzQVHQR30OBe3b7T7yZuowLcm77ZhfZ6o1R72YfPcGJ lJdw/mae02xj+dguWPG+WeJ2ys2dETE77CTNVxg6pl7WjLYB7TIbZhPi4IAo+lUzYMB2K5 3Zd+j8EuUzuuoPd3Wm4PNQsFNINIC8G/mzJ0cGrl8RDgNLAVr5n8JfPNyhEuVeNs95HhrP fYRN9FiWpFxZEVk+Nf2JEY1f+u/++F6SFaR8ZuFnGzTw5OEzwFPQwiQsyULvBIsR5ITi5Y ihEylHGKA8vV47UVZFJG1YQ7+UjmKG5yZUdcfyc1B5zoDUzOZth8BpT5rorKAg== 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 4V6x6K28NxzhVb for ; Sun, 31 Mar 2024 14:16:57 +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 42VEGvXK038974 for ; Sun, 31 Mar 2024 14:16:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42VEGvYZ038969 for usb@FreeBSD.org; Sun, 31 Mar 2024 14:16:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 202275] USB SX lock hang involving sound devices Date: Sun, 31 Mar 2024 14:16:56 +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: 10.2-BETA1 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202275 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D9eff58c6d52b66eb8abe7f724dabcd804= a566df4 commit 9eff58c6d52b66eb8abe7f724dabcd804a566df4 Author: Christos Margiolis AuthorDate: 2024-03-31 14:13:43 +0000 Commit: Christos Margiolis CommitDate: 2024-03-31 14:13:43 +0000 sound: Implement asynchronous device detach Hot-unplugging a sound device, such as a USB sound card, whilst being consumed by an application, results in an infinite loop until either the application closes the device's file descriptor, or the channel automatically times out after hw.snd.timeout seconds. In the case of a detach however, the timeout approach is still not ideal, since we want all resources to be released immediatelly, without waiting for N seconds until we can use the bus again. The timeout mechanism works by calling chn_sleep() in chn_read() and chn_write() (see pcm/channel.c) in order to send the thread to sleep, using cv_timedwait_sig(). Since chn_sleep() sets the CHN_F_SLEEPING flag while waiting for cv_timedwait_sig() to return, we can test this flag in pcm_unregister() (called during detach) and wakeup the sleeping thread(s) to immediately kill the channel(s) being consumed. Sponsored by: The FreeBSD Foundation MFC after: 2 months PR: 194727, 278055, 202275, 220949, 272286 Reviewed by: dev_submerge.ch, markj Differential Revision: https://reviews.freebsd.org/D43545 share/man/man4/snd_uaudio.4 | 11 +---------- sys/dev/sound/pcm/dsp.c | 2 +- sys/dev/sound/pcm/mixer.c | 11 ----------- sys/dev/sound/pcm/sound.c | 24 ++++++++++-------------- sys/dev/sound/usb/uaudio.c | 13 +++---------- 5 files changed, 15 insertions(+), 46 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Mar 31 14:16:59 2024 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 4V6x6M1jzhz5G7hg for ; Sun, 31 Mar 2024 14:16:59 +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 4V6x6L62FBz4Zkp for ; Sun, 31 Mar 2024 14:16:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711894618; a=rsa-sha256; cv=none; b=TkCg316EZahoAo8nTlOC8uXdOtVDbmi+EfiUn6xctaR/6Ao0OLMGHhCnYzoy2FmxAGOK+M L5Awde9Ox090ryy7umcq+jESpX3ODc94Qw5bJ6pRlrituw9YUswTgvdLIBaWlK3Krd/REH p7AQZy6GnBLr84Jv3Ds1T29s84le2PGm7Nh+b6+8Agml4IRBy+RCKr6ydRaKXGjdDpEbUt HVuaSDb8r7v2XKZb3CMw7kuA7r5/69UZ76hseopuagdgp/4ksLyBuNHVujyfSaNfsEaLPv BcWE4HOLTFzDmQY2WH/HkgjRXeey/tdj2oAZBcdZoVr7AwY7QN8gAJIkEd03aw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711894618; 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=zBnoSojNcz+xy7/ubV8+387lCzb0RSeNxvr4gKi0Swc=; b=uFRv5Z/hTC78SzQXqj6piu333Ra/ZzfqR8H6ATU6hR55ejh33CCbm0PQ4wC9zxyFDhGnCY u7RQHFrD5rQ3oHz6eB3jOJXw0LdO4s9Un1Dy7pnqin7sQvlkyJKWv/PCUc2lAVpcnt84N2 5NDxktnARYpCZLcdE612cixSvzvHFSneviYG4Of2iMXzW9RJt+MPBuzCOXxGqzh020ZVIe D4eXiDAWKVylFxAFCgpL6+qubsvN0qYMK5uQ0wrIP43aRPJeZ4UQGDGZ3s/gZO0K8nXsS0 lU1YZhBE/1Y/3KKZW3ZCT9LetsasJ5qKF+mSvbkXMXxFBgX8sDBqm0gBfE0WDQ== 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 4V6x6L5dFzzhGQ for ; Sun, 31 Mar 2024 14:16:58 +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 42VEGwcj039125 for ; Sun, 31 Mar 2024 14:16:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42VEGwoc039120 for usb@FreeBSD.org; Sun, 31 Mar 2024 14:16:58 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 220949] When the only USB soundcard is disconnected, defunct /dev/dsp0 is left, kernel warnings, programs hang Date: Sun, 31 Mar 2024 14:16:59 +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: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220949 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D9eff58c6d52b66eb8abe7f724dabcd804= a566df4 commit 9eff58c6d52b66eb8abe7f724dabcd804a566df4 Author: Christos Margiolis AuthorDate: 2024-03-31 14:13:43 +0000 Commit: Christos Margiolis CommitDate: 2024-03-31 14:13:43 +0000 sound: Implement asynchronous device detach Hot-unplugging a sound device, such as a USB sound card, whilst being consumed by an application, results in an infinite loop until either the application closes the device's file descriptor, or the channel automatically times out after hw.snd.timeout seconds. In the case of a detach however, the timeout approach is still not ideal, since we want all resources to be released immediatelly, without waiting for N seconds until we can use the bus again. The timeout mechanism works by calling chn_sleep() in chn_read() and chn_write() (see pcm/channel.c) in order to send the thread to sleep, using cv_timedwait_sig(). Since chn_sleep() sets the CHN_F_SLEEPING flag while waiting for cv_timedwait_sig() to return, we can test this flag in pcm_unregister() (called during detach) and wakeup the sleeping thread(s) to immediately kill the channel(s) being consumed. Sponsored by: The FreeBSD Foundation MFC after: 2 months PR: 194727, 278055, 202275, 220949, 272286 Reviewed by: dev_submerge.ch, markj Differential Revision: https://reviews.freebsd.org/D43545 share/man/man4/snd_uaudio.4 | 11 +---------- sys/dev/sound/pcm/dsp.c | 2 +- sys/dev/sound/pcm/mixer.c | 11 ----------- sys/dev/sound/pcm/sound.c | 24 ++++++++++-------------- sys/dev/sound/usb/uaudio.c | 13 +++---------- 5 files changed, 15 insertions(+), 46 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Mar 31 14:17:00 2024 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 4V6x6T6rcWz5G7ZQ for ; Sun, 31 Mar 2024 14:17:05 +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 4V6x6T3ppHz4Zlw for ; Sun, 31 Mar 2024 14:17:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711894625; a=rsa-sha256; cv=none; b=ZN+NINFL2Sq/VsPasJTpNOxLWTuF2uhTNc4fvfYRsU0gXntulxKT/80YmK3CmDyCk2WZ4G haQNVgVkti9B6hJyR9Z8rwqRz18csavMj6zirSQ3Bk6rem75JiRJnqY5Nyk1yHM6aoMx/Q zH4Egiit/wbB5JdzH6brAhPGgPBXB+VD2FYkHLARrlAwizUJC85o9mwe3yfQ5HGab4L1Fj ltrTgrLZAaZP6aWsnyxx6Objvwu9SnVZwaAyGPXeM0KTmG2xNQXE4ho1IAsvEK7Kf2V7qt jg3fLj4wJBUy8PSiuvq0NbgQqtl5Q7H5RD1T3m2qZBKNS11M+G+9haH/RO2iSw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711894625; 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=TfOVsJfm3WtXx84iWgDGPWbxAV2L0cujaQV+QHNwLOI=; b=hrY5Sl0//toRvBFUBpR16dOmMOMtCrco6Q0aTurcuRnmFf/5wueYdj7yaC5hgKlpXNeP44 zCuutrLmHjB7opCHy/oqlHb5J438TS/jtQbKQZaBY8WSeYKoPnFmIcs5F6VWdR309Cjcx3 yUyR5X7w2rRBp/mpEKHkc2yYzektsBOIhi7wMx7TEg1ab3X3HLpVpm70GL3KOOWC/kSPJq t/VjkyvIdJs6lNGKG/Z9lrbW4N6a6l9BJq2Qc3TLs/t6s3jgKQy7g9anapNVrV67iDD+RB uJCU4djzSQCPHhW8benaKVbV5x6r1EYITgXLt1Z8BxPp3+TkCK3yR2yTKDiozA== 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 4V6x6T3PMTzhK6 for ; Sun, 31 Mar 2024 14:17:05 +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 42VEH5d8039770 for ; Sun, 31 Mar 2024 14:17:05 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42VEH5RD039769 for usb@FreeBSD.org; Sun, 31 Mar 2024 14:17:05 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 194727] uaudio device gets disconnected, and hangs usb until everything using /dev/mixer* is closed Date: Sun, 31 Mar 2024 14:17:00 +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 Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D194727 --- Comment #89 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D9eff58c6d52b66eb8abe7f724dabcd804= a566df4 commit 9eff58c6d52b66eb8abe7f724dabcd804a566df4 Author: Christos Margiolis AuthorDate: 2024-03-31 14:13:43 +0000 Commit: Christos Margiolis CommitDate: 2024-03-31 14:13:43 +0000 sound: Implement asynchronous device detach Hot-unplugging a sound device, such as a USB sound card, whilst being consumed by an application, results in an infinite loop until either the application closes the device's file descriptor, or the channel automatically times out after hw.snd.timeout seconds. In the case of a detach however, the timeout approach is still not ideal, since we want all resources to be released immediatelly, without waiting for N seconds until we can use the bus again. The timeout mechanism works by calling chn_sleep() in chn_read() and chn_write() (see pcm/channel.c) in order to send the thread to sleep, using cv_timedwait_sig(). Since chn_sleep() sets the CHN_F_SLEEPING flag while waiting for cv_timedwait_sig() to return, we can test this flag in pcm_unregister() (called during detach) and wakeup the sleeping thread(s) to immediately kill the channel(s) being consumed. Sponsored by: The FreeBSD Foundation MFC after: 2 months PR: 194727, 278055, 202275, 220949, 272286 Reviewed by: dev_submerge.ch, markj Differential Revision: https://reviews.freebsd.org/D43545 share/man/man4/snd_uaudio.4 | 11 +---------- sys/dev/sound/pcm/dsp.c | 2 +- sys/dev/sound/pcm/mixer.c | 11 ----------- sys/dev/sound/pcm/sound.c | 24 ++++++++++-------------- sys/dev/sound/usb/uaudio.c | 13 +++---------- 5 files changed, 15 insertions(+), 46 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Mar 31 14:17:07 2024 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 4V6x6W6frSz5G7ZX for ; Sun, 31 Mar 2024 14:17:07 +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 4V6x6W4gd1z4b71 for ; Sun, 31 Mar 2024 14:17:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711894627; a=rsa-sha256; cv=none; b=ZmJMigMmORhw9i2QoT7jO4EHXyIy/AfXGEN1a/j861PxFQpu6oe7hmHXqow6bzet0zX/1K FuZdrfzPo8oOHqZPzmVd0jziVrOwwzaSUQwqI/a2+YhblR5xlQjqRhh1KgFuNSszuhNujO kco50Wa7KnE88kB5jtUsthHgd3MDCfBkVSfUIksvxNx9EBlQSFh9j7GPjewf8mUgkys9AM q1LxoIzngAwkpeqGCYHoUosQE5EBSLHrJJDzTSdAGJUyVQwLmWSCGcrEhxcc0vqBIra3xO 71ndJ+RyEEFQjBAvQSVmL2X0+bb52hjaJW1YLa8i8Dj3REuZQJaES8tM9nWdGg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711894627; 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=LIXuUeW/suVc2ppqLr5s/tYxMR5jK9r9HTSqmMQyPKw=; b=crNVrULkn6LHm7G55y6Ce91+cyCaAHsUzaK6EZcm5mGC9zJgVKZic1YspDZ4Y+wgyEWEwm QtFJi43yIIawNABoYFAe0ysY5hzKoQ2kvqkeUKDhCKI+XiQYtsCnn4HXHrw8lPv0WYUhfL 5cEXZLiQqMqAfdhBfL2OdPDcopoRmf1UX1QpgcreApQUkOeS6ptGQiBrFoSSfs/7Ox+vwm E4x/X3bd1AAhgWM5MpfAJZGGJXF3Rh9JI7fsVOdGc1YOobsreML/R6RQy+K76nPAco1tCl VVAm6dc4PIZex1W1qiQTIjeOHyFXPxhXd+FM2n+iomP7aE+kX+q7E7CvPmQVKg== 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 4V6x6W4GPHzhVm for ; Sun, 31 Mar 2024 14:17:07 +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 42VEH7AV039913 for ; Sun, 31 Mar 2024 14:17:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42VEH7BQ039912 for usb@FreeBSD.org; Sun, 31 Mar 2024 14:17:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 278055] USB devices connected to hub not accessible after audio device inactive Date: Sun, 31 Mar 2024 14:17:07 +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: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278055 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D9eff58c6d52b66eb8abe7f724dabcd804= a566df4 commit 9eff58c6d52b66eb8abe7f724dabcd804a566df4 Author: Christos Margiolis AuthorDate: 2024-03-31 14:13:43 +0000 Commit: Christos Margiolis CommitDate: 2024-03-31 14:13:43 +0000 sound: Implement asynchronous device detach Hot-unplugging a sound device, such as a USB sound card, whilst being consumed by an application, results in an infinite loop until either the application closes the device's file descriptor, or the channel automatically times out after hw.snd.timeout seconds. In the case of a detach however, the timeout approach is still not ideal, since we want all resources to be released immediatelly, without waiting for N seconds until we can use the bus again. The timeout mechanism works by calling chn_sleep() in chn_read() and chn_write() (see pcm/channel.c) in order to send the thread to sleep, using cv_timedwait_sig(). Since chn_sleep() sets the CHN_F_SLEEPING flag while waiting for cv_timedwait_sig() to return, we can test this flag in pcm_unregister() (called during detach) and wakeup the sleeping thread(s) to immediately kill the channel(s) being consumed. Sponsored by: The FreeBSD Foundation MFC after: 2 months PR: 194727, 278055, 202275, 220949, 272286 Reviewed by: dev_submerge.ch, markj Differential Revision: https://reviews.freebsd.org/D43545 share/man/man4/snd_uaudio.4 | 11 +---------- sys/dev/sound/pcm/dsp.c | 2 +- sys/dev/sound/pcm/mixer.c | 11 ----------- sys/dev/sound/pcm/sound.c | 24 ++++++++++-------------- sys/dev/sound/usb/uaudio.c | 13 +++---------- 5 files changed, 15 insertions(+), 46 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Mar 31 14:17:06 2024 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 4V6x6W1G5Kz5G7lN for ; Sun, 31 Mar 2024 14:17:07 +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 4V6x6V394Dz4ZrQ for ; Sun, 31 Mar 2024 14:17:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711894626; a=rsa-sha256; cv=none; b=VSnPECDCxkwQgtCoNS6LrFmR8QgVr04Q/QW0rnQKeI5X8kpN22T/yoTrkrAKqDmgHHbbHo gCygBoSHu//oajo1UWQWmDCtOjUaOOCfvS3PXuLOmYJB6OGdtzi0Rv9iumdNrV0JbfcbRW 6hcIZoVvfmxQl2WQEQbuRlmNXCKp5/QvohR9HSkYdgxuxCv0Awm/y82WW/0q0DFY8/4qau mEnkTA2KFeUKs4En/4x/uT5VqVc/qcuaDsiQ6ElU6dfH2Fu6Z+jA8mZ9wGW9U2njm0PmZH cePn9+9Z1qzQS8bBSpMlZ6T4BMwpbA/cjG+Wp5ovCHBElfYK+Nl2O636ffzajA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711894626; 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=zTjPyT2GgT9TdEVzBHfDDxLxEcrrv4XNa9Cj2RLzYXI=; b=YH4c1jeQlTFNFQTYGlwNpBbthbGqf/dPuRnKgEtkcyI3RcgNwCt1Qp4MjMq5GquSUWG6nM xRs9vWde3vcgsP6aJ6HW9qtLks59ifF3AaV97cQTh8b26kuqm7ElgsX3b/umyM1sOe5jrZ d8se3KXMtLrbqhHizccUA3ryNciQWJMVuzZjTzGxw+iK8xYfbCAAy7o26W6wFZH9K5zPre lZ2eAcoywqfmCFanLZwYBA3xWAyLVgCZYqLF0+buBf0AwJckMyXp40XgNEx/IKDDzUibFs 6v2zzE1I5KQz2oiAKOiPozMPSAMgva0DQqXX7BHK5WJM/92oVZf4KIeZ3z6aPQ== 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 4V6x6V2V5yzhVk for ; Sun, 31 Mar 2024 14:17:06 +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 42VEH63h039818 for ; Sun, 31 Mar 2024 14:17:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42VEH6aX039813 for usb@FreeBSD.org; Sun, 31 Mar 2024 14:17:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla 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: Sun, 31 Mar 2024 14:17:06 +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: commit-hook@FreeBSD.org 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272286 --- Comment #3 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D9eff58c6d52b66eb8abe7f724dabcd804= a566df4 commit 9eff58c6d52b66eb8abe7f724dabcd804a566df4 Author: Christos Margiolis AuthorDate: 2024-03-31 14:13:43 +0000 Commit: Christos Margiolis CommitDate: 2024-03-31 14:13:43 +0000 sound: Implement asynchronous device detach Hot-unplugging a sound device, such as a USB sound card, whilst being consumed by an application, results in an infinite loop until either the application closes the device's file descriptor, or the channel automatically times out after hw.snd.timeout seconds. In the case of a detach however, the timeout approach is still not ideal, since we want all resources to be released immediatelly, without waiting for N seconds until we can use the bus again. The timeout mechanism works by calling chn_sleep() in chn_read() and chn_write() (see pcm/channel.c) in order to send the thread to sleep, using cv_timedwait_sig(). Since chn_sleep() sets the CHN_F_SLEEPING flag while waiting for cv_timedwait_sig() to return, we can test this flag in pcm_unregister() (called during detach) and wakeup the sleeping thread(s) to immediately kill the channel(s) being consumed. Sponsored by: The FreeBSD Foundation MFC after: 2 months PR: 194727, 278055, 202275, 220949, 272286 Reviewed by: dev_submerge.ch, markj Differential Revision: https://reviews.freebsd.org/D43545 share/man/man4/snd_uaudio.4 | 11 +---------- sys/dev/sound/pcm/dsp.c | 2 +- sys/dev/sound/pcm/mixer.c | 11 ----------- sys/dev/sound/pcm/sound.c | 24 ++++++++++-------------- sys/dev/sound/usb/uaudio.c | 13 +++---------- 5 files changed, 15 insertions(+), 46 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Mar 31 21:00:42 2024 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 4V764B6BDCz5GQKP for ; Sun, 31 Mar 2024 21:00:42 +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 4V764B2wmWz4f94 for ; Sun, 31 Mar 2024 21:00:42 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711918842; a=rsa-sha256; cv=none; b=VwcsWA9OMx8bla5RSG54fL0BxObtwgCqbfmg8MH+zbRkA4xnZJAHDrkEvyT65ONS2+AR6t c8mkc2qU3+cLdLUjuKDAPcgklcFpWOJAR+i3tUfwVeRn/o9ejgyIPFawKy5N/RMEuXPscV PlGcNokMPfmnWEvfm8EbY3TULzZKy3+vsmre5QXsRL/BwtvLNwi/QvJXxW2r2tV4+cNQ2d 47nJGocpCjaY7p3/k5/nlVaiYEaRqi9RPpAS3dcT14mBGInw139HOk6MMKUs/IT0gGlsW/ Hl8ThLKlIgcIxLpPUVTLcGRZBvgRHR/atsRbwt3yzXefrV2T6W7DGN1cIMs4ug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711918842; 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; bh=IchbN1dvMVhmdstwK0NpsuFwS1u6EeHw0F43GBGdmbw=; b=q1F1PYebk0DuEvRyE09H5CBCOnl/dlj80ePVZm+HVS/WXy36Rc7I3jbZSwyFAz2GsQR9LE RvV65mGazpj+HcnJlRR9TnWx2FiCQx77ZoIGPWBjl+89OMpn9qUz6TOr/cLQm8u2p+rOh0 7LQPx7ftv3oxZGnA9QdqrVxynRneM6MqyVTdoLq8/phqaJnp8jO5re0iloS6vCcHDb73cY tmySmZ0fVdQnJ8XelcsuvS5ywT/HWQbbivPtkAOE1PLh2lkz3CBFUmRxqXB/qM+OK0OVV+ 8jUPEZfJYWUqWx1IhsE8rEMGshp3TZO6RB6LzDQveFpV/eolEyms8dXj7b7kEA== 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 4V764B2YYlztPv for ; Sun, 31 Mar 2024 21:00:42 +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 42VL0ghf083804 for ; Sun, 31 Mar 2024 21:00:42 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42VL0gUY083803 for usb@FreeBSD.org; Sun, 31 Mar 2024 21:00:42 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202403312100.42VL0gUY083803@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: usb@FreeBSD.org Subject: Problem reports for usb@FreeBSD.org that need special attention Date: Sun, 31 Mar 2024 21:00:42 +0000 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 Content-Type: multipart/alternative; boundary="17119188421.497c4FB3.73575" Content-Transfer-Encoding: 7bit --17119188421.497c4FB3.73575 Date: Sun, 31 Mar 2024 21:00:42 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- In Progress | 263783 | USB MBIM: Support for LTE/4G USB modems (MBIM) Open | 225179 | axge(4): Driver performance issues 2 problems total for which you should take action. --17119188421.497c4FB3.73575 Date: Sun, 31 Mar 2024 21:00:42 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status      |    Bug Id | Description
------------+-----------+---------------------------------------------------
In Progress |    263783 | USB MBIM: Support for LTE/4G USB modems (MBIM)
Open        |    225179 | axge(4): Driver performance issues

2 problems total for which you should take action.
--17119188421.497c4FB3.73575--