Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4867364ybb; Tue, 24 Mar 2020 06:49:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvFubAobgytJzKOd4RKzEnjk2CfQwchu6Slnpu4CRCYceu2Lb6cbpnYZqZIpjh97qkWxaJf X-Received: by 2002:a05:6830:2246:: with SMTP id t6mr5335113otd.163.1585057763329; Tue, 24 Mar 2020 06:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585057763; cv=none; d=google.com; s=arc-20160816; b=g5TVXHkof16PvRbJKlRj1ZpiiAyjec1Wpj9y8M0KyDs5Cs/N57x1Rbi/H1V+MKmOOq pI1sIpa6bA+R3pTMocAl6qZ1R83v5Rn6Kz9LPIAkSfFLSddtwtY8zTjgsapJlejQqxsT gpfTFkbyDhCHkbUdXQwWxmQxPGZQubbj4tiujFAhpy/UkdaV6iSQZ6GcfvsSseYhg1Fr 5f+4t2qExKyWXiIrTlclUZTu5UBjViTYoE25ABui1qtNZaM1IdhK/y5uF0woNTz2n6DE 0E8Cr9BNksLyNTydPbwQBkOxClkFMPwIB/YVKgaBtrTyfCUWm6xhnV8ZYkQV02snk8qc cRJg== 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=TR/s7+PXYcyPzauJEf4vR80uQG3gThNT2qsjWjc3+to=; b=njH73NhjoRGZpC325YnxCpz8q+SWSbnhm+62Klw6r18Pu4nsfnZQnHmphymH/ZbMHM 0Wh8Fm2FAawB+DB/bsi4e7gBtTsvPaMpjImGbqPJjqSc+jLe7eWufr/otCy2bF335UpF xotr7UKsz9v/VpCjyaVpBcDZwBqcKf4sj3Tk20EVEGtnIhzBBLBtdwM7dSuyix4SjlYt ydidfChwnCfsyEvL3MssHJKsAo5FcO/R6CrdQWWsJHC6JqIm+caOSh4bsdX+AMpnohBW OzvOgBzKzdBxu3lvQiQWxAZv3GFAc7xeuNnkn7iqr81wrIfZnMfT0ZGYMKj9zgPZzw/o AsNw== 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 g144si9212486oib.40.2020.03.24.06.49.10; Tue, 24 Mar 2020 06:49:23 -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 S1728987AbgCXNrm (ORCPT + 99 others); Tue, 24 Mar 2020 09:47:42 -0400 Received: from netrider.rowland.org ([192.131.102.5]:55753 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1728220AbgCXNrm (ORCPT ); Tue, 24 Mar 2020 09:47:42 -0400 Received: (qmail 8027 invoked by uid 500); 24 Mar 2020 09:47:40 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 24 Mar 2020 09:47:40 -0400 Date: Tue, 24 Mar 2020 09:47:40 -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: <20200324104610.pqdtaocg6qctlnqv@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: > 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. These lines: [ 158.113836] ohci_hcd:ohci_resume: ohci-platform 7ffb0000.ohci: powerup ports [ 158.139682] usbcore:hcd_bus_resume: usb usb2: usb resume [ 158.139715] ohci_hcd:ohci_rh_resume: ohci-platform 7ffb0000.ohci: resume root hub ... [ 158.219604] usbcore:hub_resume: hub 2-0:1.0: hub_resume [ 158.220482] usb usb2: runtime PM trying to activate child device usb2 but parent (7ffb0000.ohci) is not active suggest there is a bug in the platform code. The 7ffb0000.ohci platform device should already be resumed and active at this point. Following that, this is suspicious: [ 158.482995] PM: Cannot find swap device, try swapon -a [ 158.488379] PM: Cannot get swap writer Since there was never any device attached to the OHCI controller, this error is not connected to the previous one. In fact, the swap device was plugged into the EHCI controller; it was 1-1.1. But the log doesn't contain anything about that device being suspended, resumed, or disconnected. What happened to it? [ 159.064094] OOM killer enabled. [ 159.067351] Restarting tasks ... [ 159.068831] usbcore:hub_event: hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000 [ 159.079921] usbcore:hub_event: hub 1-1:1.0: state 7 ports 4 chg 0000 evt 0000 [ 159.079959] usbcore:hub_event: hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000 [ 159.090776] done. [ 159.097076] usbcore:hub_resume: hub 2-0:1.0: hub_resume [ 159.102961] ------------[ cut here ]------------ [ 159.107805] URB (____ptrval____) submitted while active And why was usb2 resumed twice in a row with intervening suspend? Alan Stern