Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1579833yba; Tue, 2 Apr 2019 11:33:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGDuPvjwZaLf8KVnWQw7kaMnReAXy0KPgBqYNNrqRBO/QwXc4GYchxUM+X5RXpJFYKDAz3 X-Received: by 2002:a62:6ec3:: with SMTP id j186mr71830685pfc.89.1554229991770; Tue, 02 Apr 2019 11:33:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554229991; cv=none; d=google.com; s=arc-20160816; b=NuUCvNCKf3EJl8W0crgQk7PHB5vuJLX26HjTMaJR4kEET1aeyH4VXnDhVAtf00zNrp rLyr13cCJAB3E+OM30Ikm9KbREMBOrP0UgXWB3yizciVbnnxxl1W3WQJdfpvfL6zS50L Rt0ZGcRqhoHp1mF6tMt91N7dwxweNdvvEvBeEu2yVKGG4YsNeeF3OSVuDFtxEfw4RJIU WuG/a5lR7iAfMYcGhUMJqtI1eF7rcJhngEF2hZfZzO1W/iOur4Em18pXV7TphAjX5h6h FwtnJAmjeacR2bahrSB2IKohqaiVqbX8qfs/4riPQ2EJ2tXImZvvX3hE+Fn09batJXq5 VZbw== 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=7AUWrsC7vF19Zf2p09FbXQVuW6g+5jeA2PnPxDRDIQ4=; b=ub7l2xR1umRX1N1qiFzMkvVDVTmrgQvp3UAgQSmyz2Hhy3hpyhS5D8xFGaFD7QWTRS yOc6aTmdoAWvWM/8E6rsP/0//5sSKDeaKCp/ZU8J6mxqlmGNbNtKB0mED9R3CMFN9JUn lHpsCl5r6+mxw1VC7aswOstwvgTl4x5+JOwQl8L4l06m+h56SHzm2F7xsi71T4WZ/ZT+ 6YppvZOSkpHtyRNp1T0UqIqdJBjw/N6tDRwWItaIYbEkwLKJebP5VIK21OZLZd9Uzrkq 9EpYZM5OO++hS+d5SYGuTjGItdGobfNECJrSv5HFdhfMDiBG2So2XOyu98O8NTj+VV18 V7+Q== 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 a9si11743195pfc.46.2019.04.02.11.32.56; Tue, 02 Apr 2019 11:33:11 -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 S1729654AbfDBS0n (ORCPT + 99 others); Tue, 2 Apr 2019 14:26:43 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:44022 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726314AbfDBS0n (ORCPT ); Tue, 2 Apr 2019 14:26:43 -0400 Received: (qmail 6171 invoked by uid 2102); 2 Apr 2019 14:26:42 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 2 Apr 2019 14:26:42 -0400 Date: Tue, 2 Apr 2019 14:26:42 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Mathias Nyman cc: Bjorn Helgaas , 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: 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, 2 Apr 2019, Mathias Nyman wrote: > On 2.4.2019 17.29, Alan Stern wrote: > > 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 > > > > lspci log from bugzilla shows 0000:00:1a.0 is a EHCI device, > so probably woth adding debugging to quirk_usb_disable_ehci() as well > > 00:1a.0 USB controller: Intel Corporation C610/X99 series chipset USB Enhanced Host Controller #2 (rev 05) (prog-if 20 [EHCI]) Oops! Quite right, my mistake. After all these years, I ought to remember that Intel puts their motherboards' EHCI and UHCI controllers at PCI addresses 00:1a and 00:1d. Alan Stern