Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp80346ybh; Mon, 20 Jul 2020 10:48:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYd71Ckutgh4sCBu4sPK4wt4jKQHbGpm1vVE7T2cQHnIUy4C3LK7ggXLnqSwUJYY/XRUk1 X-Received: by 2002:a17:906:e213:: with SMTP id gf19mr21589083ejb.433.1595267300184; Mon, 20 Jul 2020 10:48:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595267300; cv=none; d=google.com; s=arc-20160816; b=ax+fdBpHcV+WcwGhFhYwA+bFF1BJmeDQ1nNSaccIhrnsGP9pnl+RlyzQ5pnYWNDBeH cM7BEBZef410kWJNRb8UGajP4zOMxtI9OW5p8ISoto64H5X2TOQGgtja5f6oheFGij0V nlXyDy409JrSqNcNuGYndnCEvTo81RMzjQVJeF6XUztUZVJZ46rXYcatad6kmzWF1IFa zuflHgUToGHnpHAEkF9VdhEPtQaZor35O7N22hqrhj7f5Lk3g/omtwcMGH2JSvxLg5hO XdNZjoHyd4T36Xub3SPNnPg4+ckcK5C8fChBqnGligCR3TwjopG7JY7k/ZyV9mPi2uW/ okpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=vCW6rhw++ctPrWxqsobIhIm2YGDrSLQICyPcOqGzVic=; b=aM/t2K80qJFeZGO93NztN3RFDsmth4KNIgQxOnxVVEdUrJskOjTfi/HS+UIDxS+5uB i0bozFu1ADURQUU1c1qA39LE4SK9mSaWJmWBdKWvEwzfE+9KeHVVnaG5h6U7fw22pqMW dbhcnifzjtLE3YVWJZSynx8XegOoA9FOtbRMrFDyqRZchOHhp6Z3hWK5Dd4CkXv6d75C PG08J/0sSpUMnaAuwyhyA1mWZtCaPToWNyuC/p4sMhNX5ebvW7V+RrfLqoqbeQAYO28j xUM6whtteh6fRel9Fpx3fjs5Y2xbJcWa14hTHSDfJ9Oz98wUwKnO5uwdj/ekVZo0Lp2P 5dpA== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci12si10933004ejb.448.2020.07.20.10.47.56; Mon, 20 Jul 2020 10:48:20 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389209AbgGTRpf (ORCPT + 99 others); Mon, 20 Jul 2020 13:45:35 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:36066 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729431AbgGTRpe (ORCPT ); Mon, 20 Jul 2020 13:45:34 -0400 Received: by mail-wr1-f68.google.com with SMTP id 88so8423818wrh.3; Mon, 20 Jul 2020 10:45:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vCW6rhw++ctPrWxqsobIhIm2YGDrSLQICyPcOqGzVic=; b=siDpoCAdCvWJoextvjPas8GjBg9zEnfmkwZKiBFSvbnQw3vY0XNPBWi5E0K4Av7DBQ kRTsrl90IZq4vXL7Y5Deb9rA2c7doYFBqRPcGW/Q6u+xlScHArYfq0maeVPiH/mbrxhI HdfaH/us07Dio5FaTkDCg57dsUjWz+5kZBJQjDUOj1VRmtqJdoX8jYW9LYt/bc3jXE9E DQ73gAhjihEpUpYR/pKCmTcBENNs1jBG8bgdZOfMo82gdZBCf3RFCc7+8Gl2aLn9S/Zn AAiepYeDBQavAs3AG2k8n/52y6gEPCcnEQMgwF4/HsDn+616P6B+jlYHccxTzxuAwQz4 ev+w== X-Gm-Message-State: AOAM530GDNed28YxmmygG/TTyOVR8a5XvemyUnZ7niMNkkFmNHh2pCVG cwjJsB/k6MARY3EOchIDsyM= X-Received: by 2002:adf:f6cb:: with SMTP id y11mr23142800wrp.100.1595267132638; Mon, 20 Jul 2020 10:45:32 -0700 (PDT) Received: from localhost (ip-37-188-169-187.eurotel.cz. [37.188.169.187]) by smtp.gmail.com with ESMTPSA id r8sm34178512wrp.40.2020.07.20.10.45.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 10:45:31 -0700 (PDT) Date: Mon, 20 Jul 2020 19:45:30 +0200 From: Michal Hocko To: Alan Stern Cc: LKML , Greg KH , linux-usb@vger.kernel.org, "Rafael J. Wysocki" Subject: Re: kworker/0:3+pm hogging CPU Message-ID: <20200720174530.GB4061@dhcp22.suse.cz> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200720173807.GJ1228057@rowland.harvard.edu> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > If you want a quick way to prevent this from happening, you can do: > > sudo echo on >/sys/bus/usb/devices/usb2/power/control > > That won't actually fix anything, but it will stop the system from > automatically trying to suspend usb2 root hub. Yes, that helped to put some relief to the machine. -- Michal Hocko SUSE Labs