Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2362397rwr; Fri, 21 Apr 2023 07:58:04 -0700 (PDT) X-Google-Smtp-Source: AKy350YHDh2RDbwuJfl4uerKB89kJp1BQ92uelt4MNP1oMR2zCqwkyxaqy2EcAe/gcKwyZwlNU4z X-Received: by 2002:a17:902:ced0:b0:1a7:db2f:e918 with SMTP id d16-20020a170902ced000b001a7db2fe918mr6265995plg.1.1682089083974; Fri, 21 Apr 2023 07:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682089083; cv=none; d=google.com; s=arc-20160816; b=Vez4AktVCgWNiBbhelCS2V9h3Pw9i099/ucSuWfK7hfRfQrUqnlPn7oxmdb7lX568x SuZL9zCZAr6dnyIZFVagFcXWL0crz472eelIFL2LmrSVH/tSCcJRh2pWWwraLBmaBsqG Cky4ltNFf5zY7oefYPU660fL4wTu9FzOYGgUKk4kKT3WqSW2UzFubhJxrIOTYNYA2WUe 2bNJdwyuvK9dG56QH8zIO++fSeucaS1ro3rx2TvZxdGZf8QsVYuanRLpboLdaQjBEVLh uqzBIUhE1Lue+NkRvXLwy8QwiooPaMzwp0s8b3v1/QlH1QtMLW5IEIl3CPzbdXVaaloK nzbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=uTbZjx2Ju7l0danMJinUwAgoWWitXzPCiVyIbPSimKU=; b=oStqNYSZU1snIQ2mtPwVK8IfigmiJ0G5rZOO7y0a3asq6ToFX21W450DI1LJICnGQl Ts0Q/t7fyzVtXBxLM+/NtUJfL4Pm7j3zmK7RB4orfRkz3IMI7DUwlwPYkfGAwHAgyZRU kFZS62j+irv8dn1X7vLJ0XeNAVdVHFudq8GNDjhg1OGUNnR32YeBnv/dN5X+OnLrll2p Om9bnDYgxaNqPhHu42VK2Si3vrdbSTiLE8cGJ6xJSek3TIKQsTBKcIDRFBWgwOKUcXG2 8t6CklLjTcjez3G5jhsPXOLdNcBhNaE3sCv4eaw7jcI1wdiyPbWTArM+bMQMQPDnmuus T8TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=E4WlLCNh; 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=chrisdown.name Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13-20020a170902784d00b001a63911f1bcsi4175266pln.141.2023.04.21.07.57.52; Fri, 21 Apr 2023 07:58:03 -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=@chrisdown.name header.s=google header.b=E4WlLCNh; 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=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232022AbjDUOse (ORCPT + 99 others); Fri, 21 Apr 2023 10:48:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232989AbjDUOsd (ORCPT ); Fri, 21 Apr 2023 10:48:33 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57EF6E58 for ; Fri, 21 Apr 2023 07:48:30 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-3f178da21afso12866495e9.1 for ; Fri, 21 Apr 2023 07:48:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; t=1682088509; x=1684680509; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=uTbZjx2Ju7l0danMJinUwAgoWWitXzPCiVyIbPSimKU=; b=E4WlLCNh9cY9f0OQilScTn8I4bDE5QieQlYcbD2RdZ6vrpoRUGIya8HY4K6ORhFpzr GgP70+ww+cob+kdwv2yXLZJlfwSEGhyTsls8yKPiT+4lWuDGWe5uNkSlkuOmAYsVVNiy cG/o27T56DLAG0OO4drFQmFOfLBNgkwVKfN+I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682088509; x=1684680509; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uTbZjx2Ju7l0danMJinUwAgoWWitXzPCiVyIbPSimKU=; b=IoetM20WxVoDJsa/vCj9XCjkd/wkJyRwAKW3w09PTUqff3e8FQ9QM+M0jB8dlaNl9A mpP+mtJ90peZMBCb79U2OipaSR9IHjzNxmS9Qz0TIqbfdML0tYHTGPU0OPzxnx+k7MSC xtSA1PYd6XZxMUtkJS0nVcBCc8PVg3AIaiYutIl2WqoOGMCx06LnXF+C99t4PZu2DuIy Vp0mVpywcpYMgCjLzuYcMQl4nQm7dIBMVatBIQ8QP99wN/wY2Hdn/ZzIXaGGuaGZcoUk kYk68HQ7qX5yVspjBzPnOkb5Oh++gtSoZRgXOovwZyhBHZHe6Xb3E8Ra1pcivNR644ks r/oQ== X-Gm-Message-State: AAQBX9crxHtmi9HSYNOU9XkZ/9ijgfM1DMD4OSuOeQjh0Khn/FcDREFL TuS1LAwYOdhDjjeOY8Ot2ovKjw== X-Received: by 2002:a05:600c:ac1:b0:3f0:7eda:c19f with SMTP id c1-20020a05600c0ac100b003f07edac19fmr2194046wmr.11.1682088508728; Fri, 21 Apr 2023 07:48:28 -0700 (PDT) Received: from localhost ([2a01:4b00:8432:8600:5ee4:2aff:fe50:f48d]) by smtp.gmail.com with ESMTPSA id v17-20020a5d43d1000000b002fdf0f6b07csm4549010wrr.67.2023.04.21.07.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 07:48:28 -0700 (PDT) Date: Fri, 21 Apr 2023 15:48:27 +0100 From: Chris Down To: Takashi Iwai 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 Message-ID: References: <87wn25qosu.wl-tiwai@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <87wn25qosu.wl-tiwai@suse.de> User-Agent: Mutt/2.2.10 (2023-03-25) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 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? Thanks, Chris