Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4989988ybb; Tue, 24 Mar 2020 08:57:45 -0700 (PDT) X-Google-Smtp-Source: ADFU+vun0P0xjalsKwpdVd7TTReeHIfeoYo8ygUadJTTBoDvHHJtjXtHi2B/ecps08KFTzKWTuFN X-Received: by 2002:a9d:1d43:: with SMTP id m61mr22633058otm.91.1585065464986; Tue, 24 Mar 2020 08:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585065464; cv=none; d=google.com; s=arc-20160816; b=YgmYSumi1O+u+Vzdezny2K9zMGUzsnZsn9xsFOVO+DOz5KJl3+tIBZ2y8QfRvxoKAX I+q+5PRcTOtPt3NoU4cVj8gu1P8wiu4pK9oZjRx1kaxCIcv0EjVc2efbj5j/Qz0yfjrG bsSV6/SnS3izihuukuJ9DyhRWX8uUcXTUxTVkhprFa56nQRxJ8iNv9uS1dB1IbvAID/Z 2mi2CElx1DreZz2KOFsn1eOfLW3L/1J4RQMlIs2Aq0OqKxI0GjQ/n45zQRCyVAmeD9sT AATDFkquzsEwj09arV7AO0u51a9OXO07xkAKHuaamqw77v7LKRRwwrQlDwhnF1GuEgCf 5TLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=fxhpQHnVp1jdsAaxl/zNaUYHs2MLPqZGi0V69yyyfz8=; b=QPuTHBniS0piRhypMxfhIAB/BAF/MBtTWKyhF4QcgrSozUyEZDV4qbWjGMyMS2aj+0 AxGadi3KT/qSGLwRbNDGEuo//cv90NXfnSKQPuMq4rswthRgdzylOGUHIW7w6h1cMy7u sBxhy81kFD8+Y7qgaTGnpKSoZV8/3X8Es7fwVnPVaFTxSjVkn2+IkgqDSq+GpdBoPzoq 1t27shqQjv+40NvTO3BD7tlYNNklrq7x5Z8fN+2ok0BzRK16lzfhfGXEKkl2ie9z91lN cuonogB26m/Qfkbf6EBDjWOwOlRmuaRPU+o4FvPj1JHafuyLuquy4MsQK2+xTikZYZ22 WpGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4si131251oie.125.2020.03.24.08.57.31; Tue, 24 Mar 2020 08:57:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727916AbgCXP4J (ORCPT + 99 others); Tue, 24 Mar 2020 11:56:09 -0400 Received: from netrider.rowland.org ([192.131.102.5]:39253 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1727133AbgCXP4J (ORCPT ); Tue, 24 Mar 2020 11:56:09 -0400 Received: (qmail 22461 invoked by uid 500); 24 Mar 2020 11:56:08 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 24 Mar 2020 11:56:08 -0400 Date: Tue, 24 Mar 2020 11:56:08 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Qais Yousef cc: Oliver Neukum , Greg Kroah-Hartman , , Subject: Re: lockdep warning in urb.c:363 usb_submit_urb In-Reply-To: <20200324140609.gqvjgxdbcm5ndhvo@e107158-lin> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 24 Mar 2020, Qais Yousef wrote: > On 03/24/20 09:52, Alan Stern wrote: > > On Tue, 24 Mar 2020, Qais Yousef wrote: > > > > > On 03/24/20 14:20, Oliver Neukum wrote: > > > > Am Dienstag, den 24.03.2020, 10:46 +0000 schrieb Qais Yousef: > > > > > > > > > > I should have stuck to what I know then. I misread the documentation. Hopefully > > > > > the attached looks better. I don't see the new debug you added emitted. > > > > > > > > That is odd. Please try > > > > > > > > echo "module usbcore +mfp" > /sys/kernel/debug/dynamic_debug/control > > > > > > > > with the attached improved patch. > > > > > > Hmm still no luck > > > > > > > > > # history > > > 0 echo "module usbcore +mfp" > /sys/kernel/debug/dynamic_debug/control > > > 1 swapoff -a > > > 2 echo suspend > /sys/power/disk > > > 3 echo disk > /sys/power/state > > > 4 dmesg > usb.dmesg > > > > What happens if you omit step 1 (the swapoff)? > > It seems to hibernate (suspend) successfully. If I omit that step I must setup > a wakealarm to trigger the wakeup, but that's it. You don't have any other wakeup sources? Like a power button? > I attached the dmesg; I didn't reboot the system in between. > > > # history > 0 echo "module usbcore +mfp" > /sys/kernel/debug/dynamic_debug/control > 1 swapoff -a > 2 echo suspend > /sys/power/disk > 3 echo disk > /sys/power/state > 4 dmesg > usb.dmesg > 5 history > 6 grep URB /sys/kernel/debug/dynamic_debug/control > 7 grep "URB allocated" /sys/kernel/debug/dynamic_debug/control > 8 swapon -a > 9 echo +60 > /sys/class/rtc/rtc0/wakealarm > 10 echo disk > /sys/power/state > 11 dmesg > usb.dmesg This certainly reinforces the initial impression that the cause of the warnings is a bug in the platform code. You should ask the appropriate maintainer. However, an equally troubling question is why the usb2 bus never got suspended in the first place. To solve that, you may need to enable dynamic debugging in the Power Management core (i.e., "file drivers/base/power/* +p"). Alan Stern