Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2433890rwr; Fri, 21 Apr 2023 08:50:37 -0700 (PDT) X-Google-Smtp-Source: AKy350bWtHr40lwhNcXpeDRHmdKppZ3PGj3OHxA+PwdnEYSGUNvLFuneFRKJmIZr/JIVPnCijXWM X-Received: by 2002:a17:902:c94f:b0:1a2:1a52:14b3 with SMTP id i15-20020a170902c94f00b001a21a5214b3mr6562121pla.4.1682092237415; Fri, 21 Apr 2023 08:50:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682092237; cv=none; d=google.com; s=arc-20160816; b=w5pJXHUxPHlaKpR0Hz2M+WLIvA0nekGppJOgBSsGEupZ9aB8iQQQrOMyD0rlmk8IxU iYfsWG7XeJ3Wfs0+iyyGgK0eyUV+37V+laCjnhLD5Sw94A0gvk12rYRIg4//4F2hwYEY IZuOUksM5TojPGlrpWvDW5rfVvnRGkhEfuGN0xoxesfVwGDSGW/BQWMPXhjOh7941UuZ 9rfY8WTIAsP9fyvasoqJNrPQu81jTTt3CMBDkeGE/Y0sx3u36XS5anUxDCjYjx8//Jjv bxX159DWj51so/PtOAryz8AUooXue9uR80jILYZ9ZBc/uW0DGOiGOTJOMapW/Xol2qN4 Y/dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=pB+SaarZkswQ/Ojvq8IRHEQLm9aa2k8O20tyEXe9Ttk=; b=zYaXaq7Q/mY9d5eKhn6ycCazNrIKgo4xYwAUYFFvxB+RunjaU+qNTauaJvhSAoqY0v nX808KfJjXhB4GfwCfZZdC3ov81oXBTVW+iOCvXxANIzIsrv/tnyh+TknhSbmp7BDDh/ rvO2VT9V3BiVKKUW9yoEUh5qMzpKN8TejK2LrlKF+8QjYQqiuXjdo2emF9BRYmW7WQRq ZJOjQO5bQupnXaUpuVteeg9ED7P6dVuWuEOrJOuUAt83mNA0JY5I9xAC2oHge5bNIb0g Mx2LLnB9Y9UsHSMPQePhuoipMXQbLt/LGUnexJ2/oQNQKF+tD/MC3b+2bzt3Yy0dqDlq a+Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=m4QzAOYY; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k33-20020a17090a14a400b00247a0928f5dsi7044999pja.184.2023.04.21.08.50.22; Fri, 21 Apr 2023 08:50:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=m4QzAOYY; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232778AbjDUPMO (ORCPT + 99 others); Fri, 21 Apr 2023 11:12:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230472AbjDUPMM (ORCPT ); Fri, 21 Apr 2023 11:12:12 -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 4E5E313855 for ; Fri, 21 Apr 2023 08:12:03 -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 ACCCC21A2F; Fri, 21 Apr 2023 15:12:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1682089920; 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=pB+SaarZkswQ/Ojvq8IRHEQLm9aa2k8O20tyEXe9Ttk=; b=m4QzAOYY+p0BUDAoshRgoAQZPHsp25Eo+rXYfxamvg3RZxXIxSdWveuandX2Zi8tYbyxh/ ZtT5zrcHa0NEq5QvloF5sltO7Keps8PbnqyTjK7g7NEa84zT9Yp+49wIOkiwuoGqtpZfL0 77RNmIUqwwvrqtkU4TYOmCng13wF+c8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1682089920; 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=pB+SaarZkswQ/Ojvq8IRHEQLm9aa2k8O20tyEXe9Ttk=; b=L7jyBMY90E1QCULSBruK640aKq0CC1MXYiZUu8X2WeSOFdlimbBU91LdIhCLC9tOBKb+A5 m8TjO1+O3BSHR9Dw== 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 765EB1390E; Fri, 21 Apr 2023 15:12:00 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id l96vG8CnQmRbFAAAMHmgww (envelope-from ); Fri, 21 Apr 2023 15:12:00 +0000 Date: Fri, 21 Apr 2023 17:11:59 +0200 Message-ID: <87mt31qngg.wl-tiwai@suse.de> From: Takashi Iwai To: Chris Down Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Jaroslav Kysela , Takashi Iwai Subject: Re: [PATCH] usb-audio: Rate limit usb_set_interface error reporting In-Reply-To: References: <87wn25qosu.wl-tiwai@suse.de> 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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 21 Apr 2023 16:48:27 +0200, Chris Down wrote: > > Hi Takashi, > > Takashi Iwai writes: > > This patch itself is safe and good to have, so I'm going to take it as > > is. > > Thanks! > > > But I'm still curious in which code path the problem happens. That > > is, we should address such unnecessary repeats if possible. Do you > > have some more data? > > Unfortunately not, I've been running with a kernel testing some other > mm changes recently so haven't had a chance to debug what's going on > here. But it starts like this: > > [Fri Apr 21 13:21:10 2023] usb 3-7: USB disconnect, device number 39 > [Fri Apr 21 13:21:10 2023] usb 3-7.1: USB disconnect, device number 40 > [Fri Apr 21 13:21:10 2023] usb 3-7.1.1: USB disconnect, device number 42 > [Fri Apr 21 13:21:10 2023] usb 3-7.4: cannot submit urb (err = -19) > [Fri Apr 21 13:21:10 2023] usb 3-7.4: Unable to submit urb #2: -19 at snd_usb_queue_pending_output_urbs > [Fri Apr 21 13:21:10 2023] usb 3-7.4: cannot submit urb 0, error -19: no device > [Fri Apr 21 13:21:10 2023] usb 3-7.4: cannot submit urb 0, error -19: no device > [Fri Apr 21 13:21:10 2023] usb 3-7.4: cannot submit urb 0, error -19: no device > [Fri Apr 21 13:21:10 2023] usb 3-7.4: 1:0: usb_set_interface failed (-19) > [Fri Apr 21 13:21:10 2023] usb 3-7.4: 2:0: usb_set_interface failed (-19) > [Fri Apr 21 13:21:10 2023] usb 3-7.1.2: USB disconnect, device number 44 > [Fri Apr 21 13:21:10 2023] usb 3-7.1.4: 1:1: usb_set_interface failed (-19) > [Fri Apr 21 13:21:10 2023] usb 3-7.1.4: 1:1: usb_set_interface failed (-19) > [Fri Apr 21 13:21:10 2023] usb 3-7.1.4: 1:1: usb_set_interface failed (-19) > [Fri Apr 21 13:21:10 2023] usb 3-7.1.4: 1:1: usb_set_interface failed (-19) > [Fri Apr 21 13:21:10 2023] usb 3-7.1.4: 1:1: usb_set_interface failed (-19) > [Fri Apr 21 13:21:10 2023] usb 3-7.1.4: 1:1: usb_set_interface failed (-19) > [Fri Apr 21 13:21:10 2023] usb 3-7.1.4: 1:1: usb_set_interface failed (-19) > [Fri Apr 21 13:21:10 2023] usb 3-7.1.4: 1:1: usb_set_interface failed (-19) > [... thousands of messages ensue ...] > > So it looks like maybe some ordering is not quite right in > destruction, perhaps only on multi-level USB topologies? Hrm, is "usb 3-7.1.4" really the USB audio device? The previous errors like "Unable to submit urb #2..." are certainly for USB audio, and those are with "usb 3-7.4". You patch may still make sense, though. So I'll keep it applied. thanks, Takashi