Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1832152ybh; Mon, 20 Jul 2020 08:15:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/EgLd8wDZ1ctjBMK0qpn4yaeGZOmEJsZpSmIOnvnH3kLctB1h/2Xqkjtb5gxPZH2KkfR+ X-Received: by 2002:a50:fd84:: with SMTP id o4mr21627448edt.117.1595258147072; Mon, 20 Jul 2020 08:15:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595258147; cv=none; d=google.com; s=arc-20160816; b=eCLluiGFEPdVam+TCATVtvAa9QMmgh8i7pEG/yJqna3fAVam6bR5OQqcrD+lB7SVZj qGOoherkz/k2cIHJjfqzjVkrsFcNTk2+GydW0PcYFJAy4eyiaG6orsqEff2oI1GLbJCv hCqcaRssaGaZVwz/C9cUc+XnQmX3rJnFhRIzVepFFX9r9Cj6sq656TgDpIoQ2Sw7fkHD iHtT7Ukap8ZWBCQRUA7MzoO7ruwzgqN0kvEIow2JyTCeo1xH3RExwOlIirJ/OBtA1lY1 fywlp9vLNMrARcFry4QafQ29Sjalk+5v1f0/XWmQ2O7ooKZny5GATCCc/7XmhduV8DTH 6+ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=JIFYGSt+HTps6x079KfwX9O81ZlZ+lmNWYGYnLKr9v4=; b=Fmu7vK7ULtMVvZqAX7bfSzpjmKMk7I1umoMCQCxbN7Jj45Z0Spx2NhxfRkEao3ByEL PLrNChwVcflDdpfw7/OuuAO1KFYTPZ/k7X09H5B5cxrSM+QZhmJHfIsfYuOhi9UogoXu pPSLIwGzxwLIdB/Q3BehJs8Qe/JX6C8+stf8KShvuondrtskc3ore51+0aFQV14P91Jx tX89Gsr38dZzKldiWuc8XIiM3SEIsl2rhOyxK4BBs75m3TFVnmtlYgfHp0TbqfQIUDug VYUIwU6DwL9VRCi+PeRLkgpxWecPoimXEuHFSpQTqVR6K3BgDSYnK7EHTUUHA2nWAXn1 4mIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r9si10536956ejb.103.2020.07.20.08.15.24; Mon, 20 Jul 2020 08:15:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728703AbgGTPM5 (ORCPT + 99 others); Mon, 20 Jul 2020 11:12:57 -0400 Received: from netrider.rowland.org ([192.131.102.5]:35227 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1728478AbgGTPM5 (ORCPT ); Mon, 20 Jul 2020 11:12:57 -0400 Received: (qmail 1232970 invoked by uid 1000); 20 Jul 2020 11:12:55 -0400 Date: Mon, 20 Jul 2020 11:12:55 -0400 From: Alan Stern To: Michal Hocko Cc: LKML , Greg KH , linux-usb@vger.kernel.org, "Rafael J. Wysocki" Subject: Re: kworker/0:3+pm hogging CPU Message-ID: <20200720151255.GE1228057@rowland.harvard.edu> References: <20200720083956.GA4074@dhcp22.suse.cz> <20200720135857.GB1228057@rowland.harvard.edu> <20200720143213.GJ4074@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200720143213.GJ4074@dhcp22.suse.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 20, 2020 at 04:32:13PM +0200, Michal Hocko wrote: > On Mon 20-07-20 09:58:57, Alan Stern wrote: > [...] > > Can you provide the contents of /sys/kernel/debug/usb/devices and also a > > attached. It looks like you've got just two devices, only one of which is in use, on bus 1 (the non-SuperSpeed bus) and nothing on bus 2. > > usbmon trace showing a few rounds of this recurring activity? > > This is not my area so I will need some help here. I assume I should > look for debug/usb/usbmon which contains quite some files for me > 0s 0u 1s 1t 1u 2s 2t 2u > most of them provide data when cating them. The interesting files are 1u (for bus 1) and 2u (for bus 2). At the moment, though, we don't know which bus the troublesome device/controller is on. > > section of the dmesg log with dynamic debugging enabled for the usbcore > > module, as well. > > Could you give me more details steps please? Do: sudo echo 'module usbcore =p' >/debug/dynamic_debug/control Then wait long enough for some interesting messages to appear in the kernel log (it should only take a few seconds if the worker thread is as busy as you say) and collect the output from the dmesg command. To turn dynamic debugging back off when you're finished, use the same command with "=p" changed to "-p". Alan Stern