Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3876953ybb; Mon, 23 Mar 2020 09:18:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vta2TcJ7v/zadIWsHk+1iLJnMReZe6kso5aLa0tFhfooTsHVA06HMJsYF4ZOPaSDm/mvcpt X-Received: by 2002:aca:f491:: with SMTP id s139mr91714oih.128.1584980331868; Mon, 23 Mar 2020 09:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584980331; cv=none; d=google.com; s=arc-20160816; b=NKP39ZMfc1YEkf5p0nFtziSLN90WN1OQGprj7/+Yk+9uL1sjBq23kmRW0b9y/bgTrM vgL4zptcYb5kyU257N0N3OyQIRI0zdQaTrOdjXl5FG82vOakei/NcbJKGgwfM9kJH4Nv FdVDtSRqPmW+Ddo4k+DbISTh0inDAJy3kFNa3IgZc2xHpGly9U8h8scyrCtURcTngREH Iw0+gUR8XJl+/mqzN6R20NylkjidYFW7bsgzrs36GKX541KBkc41xNlQOR6CDNV2ZM83 9TVY8yASoSx4O6viMPeQjsKkxnCPervfhpFGqAcQHca/19OfUhNnB2srTEczTvV/Dw6T zjsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=D8hTDc0Ns7zKPAgAwy08SW58iJ1EfXcXFRQm1/Q7I6E=; b=JFLjTmKFu5CQ7mO+vXqhqHwQ7+HaAxpm9+u3GSmNKcNBmexPvfHOzlLFp0+6QJBrt0 CiwNLFsR6vM+/Yy7k6EdrI8unW1f5Y5nIlqCVSqx7cEh2FZM5WL8XJXXRVWyjFFvZoXE HLdzfBiAJGcQPaw9EYcxSvBIBBgJWPos3iVX8j2YSsRNSrSKGdod1L+Vl0eeEeuA9Tsz 2q8fFVGlovqYqJjsUH3Rl1L38A47/xaZOADJad/pulgbt0UX6QpY3LLnyUaD8ZhOk2tE Le6+5PVJvM7iV6bYIJLjHAqL1Ls0Ao6lWnYkl1oOSf8QlCqqyD+gv2THmZx1nFemxQyA oc5g== 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.18.35; Mon, 23 Mar 2020 09:18:51 -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 S1727415AbgCWQSO (ORCPT + 99 others); Mon, 23 Mar 2020 12:18:14 -0400 Received: from mx2.suse.de ([195.135.220.15]:58066 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727209AbgCWQSO (ORCPT ); Mon, 23 Mar 2020 12:18:14 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 650F2ABC7; Mon, 23 Mar 2020 16:18:12 +0000 (UTC) Message-ID: <1584980280.27949.20.camel@suse.de> Subject: Re: lockdep warning in urb.c:363 usb_submit_urb From: Oliver Neukum To: Alan Stern Cc: Qais Yousef , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 23 Mar 2020 17:18:00 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, den 23.03.2020, 11:54 -0400 schrieb Alan Stern: > 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. Right, but this is good. We are getting a test for something that needs work. It does not really matetr why STD fails. > 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. AFAICT hub_quiesce() unconditionally calls usb_kill_urb(). So I'd like to verify that case is really triggered. Regards Oliver