Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3862558ybb; Mon, 23 Mar 2020 09:03:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsRnLWr/qEnxX30+lBA4z28zUv/gbG2goBRJYouULheVL9rJkTKORtd7IAyZOOK/ccbxorj X-Received: by 2002:a9d:3b6:: with SMTP id f51mr19544975otf.255.1584979402683; Mon, 23 Mar 2020 09:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584979402; cv=none; d=google.com; s=arc-20160816; b=HpeQB+VC7C8RYVrE0RD3IfYMhU2tG32IacJ4kEC8AxrzrTH3svgNJc0PhGnBuTgg3/ 4esiQCwZFFgtI/vFmO0XHuiU5EUZoDsixn8ICbNpjN4+BR9j9EDsE4nM0Ll8q3JoTyuH xXa23TQoq3nEpmzICOZcZep1lIlYKrDJAieE8iBK+PEiFhgH+tk/lOMLuTh6mi32hIwm M8Kb1upsb9TPbIx9vxPgUYzzUKWS/Ha/wHjtUKboAL0XtAwEaLOVYseM7vfj23GeDIcI j7OSYN8l4GtsIvZhEM0f5zh6iERU1uGjx6sv7R2NU69h9MIHeZpd7RbAHHg8S/tDDgqU ZpKQ== 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=+ENKSswmd/AolYiLdbQMpdK/NKGj+FkD37PyXC0RbR0=; b=R2Q1u3+mMlGF2MCtEFYw7GVWi5yI7CEZZib9ZPyP2eYCXLZcbeaYp5FMuGCAX7g9tt ZMdtHBQO1GTj9Bc9gpn8qIcI1NNkhsJ2ghTnV+QOWZ8vnxl0tPUHbINbRtD1sG7HfjfO HCW2lAsKJ6RQz+Rqg6QjNG7EMnS7TRsUWZZBfgjNUOG9eI5BbulxCrc77kYlY1dAekAh HXwr4UFrbsuCb6FKsdz3VF+nM4Bz9X1BvpfWWOV1YYd1Yhsuhq/lwfs0aUx2g48xrFH/ v+raJTxhuE1t++Y91g4/7USNaFgV98vw1pTITTk3cJouIriSH4W/jUaoPmp4WlAOJArL We5Q== 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 x79si6789029oif.180.2020.03.23.09.03.02; Mon, 23 Mar 2020 09:03:22 -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 S1727357AbgCWQCd (ORCPT + 99 others); Mon, 23 Mar 2020 12:02:33 -0400 Received: from foss.arm.com ([217.140.110.172]:51454 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727202AbgCWQCc (ORCPT ); Mon, 23 Mar 2020 12:02:32 -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 E7921FEC; Mon, 23 Mar 2020 09:02:31 -0700 (PDT) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.195.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 29EFB3F802; Mon, 23 Mar 2020 09:02:31 -0700 (PDT) Date: Mon, 23 Mar 2020 16:02:28 +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: <20200323160228.x3sqz64qdx6wenpo@e107158-lin.cambridge.arm.com> References: <1584977769.27949.18.camel@suse.de> 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/23/20 11:54, Alan Stern wrote: > On Mon, 23 Mar 2020, Oliver Neukum wrote: > > > Am Montag, den 23.03.2020, 14:38 +0000 schrieb Qais Yousef: > > > Hi > > > > > > I've hit the following lockdep warning when I trigger hibernate on arm64 > > > platform (Juno-r2) > > > > > > > > > echo suspend > /sys/power/disk > > > echo disk > /sys/power/state > > > > > > I only had a usb flash drive attached to it. Let me know if you need more info. > > > > Hi, > > > > that is not a lockdep issue, but the hub driver is not properly killing > > its URB presumably. Yet, the driver looks correct to me. Please use > > the additional patch and activate dynamic debugging for usbcore. > > Was the USB flash drive being used as a swap device for holding the > hibernation image? That's not likely to work very well. At least, I > doubt that it has been tested very much. > > This diagnostic was suggested by the runtime PM error that occurred > when the system was trying to store the hibernation image. That's > probably when the hub driver's URB got restarted. Yes, sadly it's the only source of storage I have on that device. When I ran the test I had swapoff, as you can see in the snippet below. When swap is on I do hibernate and wakeup successfully. At least that's what appears to be happening to me. I get a similar splat regardless of swap is on or off. [ 327.154849] usb usb2: runtime PM trying to activate child device usb2 but parent (7ffb0000.ohci) is not active [ 327.290355] PM: Cannot find swap device, try swapon -a [ 327.295533] PM: Cannot get swap writer [ 327.480758] OOM killer enabled. [ 327.483939] Restarting tasks ... [ 327.484229] ------------[ cut here ]------------ [ 327.484664] done. [ 327.487743] URB 000000000c121c1c submitted while active [ 327.499622] WARNING: CPU: 1 PID: 296 at drivers/usb/core/urb.c:363 usb_submit_urb+0x3f0/0x520 Thanks -- Qais Yousef