Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp5069958ybb; Tue, 24 Mar 2020 10:23:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuhqYffGVKrO7zqi09uZ34D0koksTJkGKykJyGVEZDQF1pIZe+zyXwVn9TXnO8We76KqVlp X-Received: by 2002:aca:a895:: with SMTP id r143mr4143382oie.150.1585070611917; Tue, 24 Mar 2020 10:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585070611; cv=none; d=google.com; s=arc-20160816; b=ZYzUUpCST1Oa6kUZc26F/rZ8FLdrFo/Et2rSk/Ic2Yz4klYVa3nrp8Gcb0P33l9CFm 8vPAZgMgL2/JuWJS+9+gihQkEzPui2IaxFg99wkEYPy3F/nhDywUjqngUjQ5FKodS64G dS/XUfilBWVDxjw9ubzLsH8DVxQyIQii59R5Ux1XwdrzXDrAbKZeOJfDOpK1BrW7xi3x 1vliE9QAhNogWQ+TxmQdvAgTduS/JasnAWtDiBcFkkuuKixod4gIXlVND2ZPtjnGSPgx yie6yb8INcqLSMqgyc5ELoPFuREHdBQp7Gq/7C0HWNU/yx9hQG31L/+Y41cwKRpJe5iI tPcQ== 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=jK7DficsAaf0uD4Tj8yU0uvwyjcjujOQ75fWm5KWdMs=; b=uW5CnX5fON5u8psaDrHHX1gv7MDAU9JnZ0AXtOAxl2Ec2Ff/68FQTKGa9MDeUVbgCS kIszCJpVAJdCEVz3gAM44eGnQ9x0Zrvu8+wyFJHbXT6oB8wHVjXeJBRQQC9APZOrqS6e YXuzOd7Eg5Pzn2bA1kPyspJvkxaOFmEQ4k8ZW1SRLA2pU8wduSi3l5R27tUHu32em/20 XfeGAApO6Ozh3ePLwFxtgKVYiQt7QLDSxjpc8Izb6xMhgdHbCgr1cfHz/XfBSUA5BmKV wk05N65LBxC1bdIG874OCCWpv0LYvq4T8D4ZutycM1FJJW6Z7BcSRsicOxD2OJG/vwQW AhEA== 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 z204si9835244oiz.133.2020.03.24.10.23.20; Tue, 24 Mar 2020 10:23:31 -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 S1727717AbgCXRWk (ORCPT + 99 others); Tue, 24 Mar 2020 13:22:40 -0400 Received: from foss.arm.com ([217.140.110.172]:38646 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727295AbgCXRWk (ORCPT ); Tue, 24 Mar 2020 13:22:40 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 05CD51FB; Tue, 24 Mar 2020 10:22:40 -0700 (PDT) Received: from e107158-lin (e107158-lin.cambridge.arm.com [10.1.195.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3C3133F71F; Tue, 24 Mar 2020 10:22:39 -0700 (PDT) Date: Tue, 24 Mar 2020 17:22:36 +0000 From: Qais Yousef To: Alan Stern Cc: Oliver Neukum , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: lockdep warning in urb.c:363 usb_submit_urb Message-ID: <20200324172235.bsxea6qb3id6bhb3@e107158-lin> References: <20200324140609.gqvjgxdbcm5ndhvo@e107158-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/24/20 11:56, Alan Stern wrote: > 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? Not sure if it's hooked correctly as a wakeup source. But as UK is now getting lockedown, I don't think I'll be seeing the board for a while and serial console is my only friend :-) I can hard reboot remotely reliably though. > > > 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. The device-tree compatible node returns "generic-ohci". drivers/usb/host/ohci-platform.c returns you as the 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"). Thanks Alan. I'll run with extra debug and send back. Cheers -- Qais Yousef