Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1435789yba; Tue, 2 Apr 2019 08:49:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbSfgxN1mDCD2C5kKoVPVS/WTsvdzRFhlRIJpcC2a2YOtzbRFLAiREQXV3sZldBUBlrZWk X-Received: by 2002:a63:4101:: with SMTP id o1mr14705152pga.17.1554220178484; Tue, 02 Apr 2019 08:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554220178; cv=none; d=google.com; s=arc-20160816; b=YCqSjz1aiRlpWgkz8N5Ck5E2iT4xV1k2bfaHbDJ/kd8kmolU+Ka29CiB7D9d25grVR Vmnch2EoJbkmnZgnhkTALK7cTqTW+3jqRaTTQP834eLuamYNp2PoRYAVJ0vuMBLVlvP+ kaElFQM3izy0cWyH6e6jlg4rJvCln+sHaV8LyHfC1gS6P1Kt8W+D9rHfJJQtXSQkqe9c UjvmLrV18bHgjEDXPmXnvyJo/KiedWkej5trxRwdu+fVJgm+UOfQcRzA5z3zajpMCMp/ K0kX3Rc/ZSgnTsuf0Jb7Rb1XGnzorS1Bl7EVLkHXSWC+tUlOgeC6TLhhtyqMu5xHwVGO EIhg== 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=f9i78SpKoUvPVWaKzBPaeZqs6hFyjlmkV+tGgt+lafI=; b=t5uWsp9UBFJ1FeQdi7yGuqBA6V6yAdTZ/O8izeO37mZEW6UncKzTpUigq0ysqxE+Bf bds2RE//vsC8BKYhN99E+L9uThEy+AYy+AxCTHbdpzjGJX1Txx9qk4gf/e21O1VrFTxU iggjop1x5Po9Wqmlmmg9gkanlEG3xAV4uRTrlghz2IsbbDiO62BXUY9CyeYyNbUOyypl JCC/yN4JXsMekJ42c8l23UpS7/WGMCWZkVJSVYVDGn4oRJzy+pg034BaUcpFxUT7eI+u ehRZwf4GcaK7mbcq0/RSZR7bMibwbZYlSxr93Pfk68rMDxdFGydokFfH2pnstQwVrOeH Omdg== 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 e10si11027598pgo.404.2019.04.02.08.49.23; Tue, 02 Apr 2019 08:49:38 -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 S1731816AbfDBO3w (ORCPT + 99 others); Tue, 2 Apr 2019 10:29:52 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:43252 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1731667AbfDBO3v (ORCPT ); Tue, 2 Apr 2019 10:29:51 -0400 Received: (qmail 3078 invoked by uid 2102); 2 Apr 2019 10:29:49 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 2 Apr 2019 10:29:49 -0400 Date: Tue, 2 Apr 2019 10:29:49 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Bjorn Helgaas cc: Jesse Hathaway , Ingo Molnar , Peter Zijlstra , , , Mathias Nyman , Greg Kroah-Hartman , Subject: Re: Regression causes a hang on boot with a Comtrol PCI card In-Reply-To: <20190401211353.GA7263@google.com> 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 Mon, 1 Apr 2019, Bjorn Helgaas wrote: > [+cc Mathias, Greg, Alan, linux-usb] > > Beginning of thread: https://lore.kernel.org/linux-pci/CANSNSoWiKd98Dt1N2sSjP9Af8zk1NPV-=3P4VLtFs_cSQG4RUg@mail.gmail.com > > Synopsis: v5.0 hangs at boot unless the following commits are reverted: > > 1302fcf0d03e ("PCI: Configure *all* devices, not just hot-added ones") > 1c3c5eab1715 ("sched/core: Enable might_sleep() and smp_processor_id() checks early") > > The hang appears to be in quirk_usb_early_handoff(). With > "initcall_debug", we see the call but not the completion: > > On Fri, Mar 22, 2019 at 03:02:11PM -0500, Jesse Hathaway wrote: > > > So apparently the hang happens while we're running the "final" PCI > > > fixups. This happens after all the rest of PCI is initialized. > > > > > > Can you boot v5.0 vanilla with "initcall_debug"? Maybe we can narrow > > > it down to a specific quirk. > > > > yup, added the "initcall_debug" output to the ticket: > > https://bugzilla.kernel.org/show_bug.cgi?id=202927, here is the tail end > > > > [ 14.896337] NET: Registered protocol family 1 > > [ 14.901314] initcall af_unix_init+0x0/0x4e returned 0 after 4866 usecs > > [ 14.908694] calling ipv6_offload_init+0x0/0x7f @ 1 > > [ 14.914238] initcall ipv6_offload_init+0x0/0x7f returned 0 after 1 usecs > > [ 14.921821] calling vlan_offload_init+0x0/0x20 @ 1 > > [ 14.927365] initcall vlan_offload_init+0x0/0x20 returned 0 after 0 usecs > > [ 14.934948] calling pci_apply_final_quirks+0x0/0x126 @ 1 > > [ 14.941106] pci 0000:00:1a.0: calling quirk_usb_early_handoff+0x0/0x6a0 @ 1 > > > > thanks, Jesse Hathaway Most likely the problem occurs somewhere inside quirk_usb_handoff_xhci(). Can Jesse add debugging statements to that routine in order to pin down exactly where the problem lies? Alan Stern