Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp80887ybh; Mon, 20 Jul 2020 10:49:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGNDDy+ZG7NqdOO86rDhwn4Ger3vW5l9bfh+UgptBTxEMfipn5OZJ0+zYuKSArCYKjD7Xp X-Received: by 2002:a17:906:1c05:: with SMTP id k5mr21226607ejg.320.1595267356280; Mon, 20 Jul 2020 10:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595267356; cv=none; d=google.com; s=arc-20160816; b=v/8YjqJEN+fjMYWevJpvFyrqhnQ6CaOhmHRCjXK01L96mhviRRmxd2OO4gLJUkwRv9 c5aiSLLzFsFoztSsM/PZ1Hw9D78QmYPSzgi71/2WgtDz4+I+yvemmfb7ynYwYj60NZOR x9StWKnZ/m98Co6JGuxWVy4bZX6vlMyGurWIsaZvFNWU4AgLeP+/vTWnTRRNgqhvGu+e Cq7HZij1qmw0j8ZQxwn9iBHYj7Ah7KklzZMcQ3j2i6Wj8ErBpF30tmVdQCVcKSoEb58s vmAKHDxeYEIRSNocxx0asp36d19RXlybaEmFsQ0tcb2ppMu1zYkDb6b35CkGBsUHL5Yb M/Pg== 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=xaY5hlnOCq3T2GZYzn9xOmFjDVYE/hKhvREzvfMbvgM=; b=vQuVEQh3uzWZy7211a9S5vn9kp2UQRvw/g8LfXiKk0Y9ruhJpD5wNhTpb2E39XgLQZ Y87PnpaQ7tqL5pbqfbd7fPsoHzemHrnP7NitEl7aDA9byBe5QIoOoJ8M3Q94Sl5W4s1a ueA83TTzUImt+6yNRq5/JCoVRhbi5cE0XAZ+zGWp1VvS2S4hAv3NA4YGOHW9+szqtxrV 27Z4suBIdFtyyfsek0yGFnEYyiIgPaGtgRDZgMCTmSNfDDEPQehrHxYm7PGe/0qz7i52 ul/VHl9dL/qfNc8DRriNdrvv82TXO7PRub/xS50I454EoyZGsR6BU0JKZn9d3YMwwN3j Drag== 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 v16si11383156edr.93.2020.07.20.10.48.50; Mon, 20 Jul 2020 10:49:16 -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 S1726458AbgGTRsN (ORCPT + 99 others); Mon, 20 Jul 2020 13:48:13 -0400 Received: from netrider.rowland.org ([192.131.102.5]:37225 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726812AbgGTRsN (ORCPT ); Mon, 20 Jul 2020 13:48:13 -0400 Received: (qmail 1240647 invoked by uid 1000); 20 Jul 2020 13:48:12 -0400 Date: Mon, 20 Jul 2020 13:48:12 -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: <20200720174812.GK1228057@rowland.harvard.edu> References: <20200720083956.GA4074@dhcp22.suse.cz> <20200720135857.GB1228057@rowland.harvard.edu> <20200720143213.GJ4074@dhcp22.suse.cz> <20200720151255.GE1228057@rowland.harvard.edu> <20200720163355.GA4061@dhcp22.suse.cz> <20200720173807.GJ1228057@rowland.harvard.edu> <20200720174530.GB4061@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200720174530.GB4061@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 07:45:30PM +0200, Michal Hocko wrote: > On Mon 20-07-20 13:38:07, Alan Stern wrote: > > On Mon, Jul 20, 2020 at 06:33:55PM +0200, Michal Hocko wrote: > > > On Mon 20-07-20 11:12:55, Alan Stern wrote: > > > [...] > > > > 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". > > > > > > [ 95.395815] hub 2-0:1.0: state 7 ports 6 chg 0006 evt 0000 > > > [ 95.395824] usb usb2-port1: status 0088, change 0000, 5.0 Gb/s > > > [ 95.395838] usb usb2-port2: status 0088, change 0000, 5.0 Gb/s > > > [ 95.396016] hub 2-0:1.0: hub_suspend > > > [ 95.396023] usb usb2: bus auto-suspend, wakeup 1 > > > [ 95.396029] usb usb2: bus suspend fail, err -16 > > > > Okay, that's the problem. You may get more specific information about > > the suspend failure if you turn on dynamic debugging for the xhci-hcd > > module (same command as above but with xhci-hcd instead of usbcore). > > Would that help to pinpoint the problem down? It might. I can't say for sure without seeing the output. Alan Stern