Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A9E26C77B60 for ; Wed, 26 Apr 2023 05:24:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231377AbjDZFYz (ORCPT ); Wed, 26 Apr 2023 01:24:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjDZFYx (ORCPT ); Wed, 26 Apr 2023 01:24:53 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7B6410FB for ; Tue, 25 Apr 2023 22:24:52 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id E302D218FE; Wed, 26 Apr 2023 05:24:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1682486690; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DpzYVk5A1Q3UnhopimKwPMkT8MM/RE/0a2B7aQRyojw=; b=TT97eb7PDsXoHzLUu3+PSKeGnjmrzLd40NyATfwcfOnGgeNuouzo0+RXVXUQjzE+qatrV1 XjxEfxzyakpq2B7HUFirOTvX5s1APTlnFfPtBUU8EmZNnxcmGPVY9Oh2NL8pu60lv5/ECx kOx/Axi5sJ1UlU2Y5WpNbM1Plar35wo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1682486690; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DpzYVk5A1Q3UnhopimKwPMkT8MM/RE/0a2B7aQRyojw=; b=xvno9iL02BtSs9Y9Hh3mBICyfKvQs8yQpU1hYDwhKdG68MDktCthtQwmcTKCpJRYEra03W ozbBOGe39s4LkqAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B223013499; Wed, 26 Apr 2023 05:24:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 7vSOKqK1SGQXPgAAMHmgww (envelope-from ); Wed, 26 Apr 2023 05:24:50 +0000 Date: Wed, 26 Apr 2023 07:24:50 +0200 Message-ID: <87pm7rtdul.wl-tiwai@suse.de> From: Takashi Iwai To: Jakub Kicinski Cc: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-usb@vger.kernel.org, Greg Kroah-Hartman , regressions@lists.linux.dev Subject: Re: USB sound card freezes USB after resume from suspend In-Reply-To: <20230425111924.05cf8b13@kernel.org> References: <20230425111924.05cf8b13@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Tue, 25 Apr 2023 20:19:24 +0200, Jakub Kicinski wrote: > > Hi! > > For a few weeks now I can't use any USB devices if I suspend my laptop > with my USB sound card active and resuming it without it connected. > > USB worker threads seems to be sitting in: > > [<0>] snd_pcm_dev_disconnect+0x1e8/0x280 [snd_pcm] > [<0>] snd_device_disconnect_all+0x42/0x80 [snd] > [<0>] snd_card_disconnect+0x128/0x290 [snd] > [<0>] usb_audio_disconnect+0x11a/0x2c0 [snd_usb_audio] > [<0>] usb_unbind_interface+0x8c/0x270 > [<0>] device_release_driver_internal+0x1b2/0x230 > [<0>] bus_remove_device+0xd8/0x150 > [<0>] device_del+0x18b/0x410 > [<0>] usb_disable_device+0xc6/0x1e0 > [<0>] usb_disconnect+0xda/0x2c0 > [<0>] usb_disconnect+0xbf/0x2c0 > [<0>] usb_disconnect+0xbf/0x2c0 > [<0>] usb_disconnect+0xbf/0x2c0 > [<0>] hub_event+0xf01/0x1cd0 > [<0>] process_one_work+0x1c4/0x3d0 > [<0>] worker_thread+0x4d/0x380 > [<0>] kthread+0xe6/0x110 > [<0>] ret_from_fork+0x29/0x50 > > Which is: > > snd_pcm_dev_disconnect (/usr/src/debug/kernel-6.2.12/linux-6.2.12-300.fc38.x86_64/sound/core/pcm.c:818 /usr/src/debug/kernel-6.2.12/linux-6.2.12-300.fc38.x86_64/sound/core/pcm.c:812 /usr/src/debug/kernel-6.2.12/linux-6.2.12-300.fc38.x86_64/sound/core/pcm.c:1129) snd_pcm > > It happens on Fedora 37 and Fedora 38, it seems to have coincided with > the 6.2 kernel but I'm not 100% sure. > > The USB devices come back after half an hour or so, silently. > There's nothing of note in dmesg. AFAIK, there has been no similar report, so far. Is it a regression? If yes, could you figure out which kernel version starts showing the problem (or at best bisection)? thanks, Takashi