From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2429AC433E1 for ; Mon, 20 Jul 2020 15:12:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 072ED22CAF for ; Mon, 20 Jul 2020 15:12:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728732AbgGTPM5 (ORCPT ); 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