Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1438081yba; Tue, 2 Apr 2019 08:52:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyHqp54Y5PC9VMdlrZs81JAp5e+EUkKvH9C8xWNHHM6WQEK0ReFMFdJh6zp9Wuf0TkEBax X-Received: by 2002:a17:902:a704:: with SMTP id w4mr13164272plq.51.1554220360771; Tue, 02 Apr 2019 08:52:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554220360; cv=none; d=google.com; s=arc-20160816; b=RD3j0EWyttcLTMweosApk2X7a77gaaZ7sPsCRTaCebJUii3vx62ocsvwTetwjPWHIG SEAGL5VZ60rOBRk6nvWAQSGnjAqIO7QvkU37SNlKOC8CEzqxg7PsGIhU1wJNMl49Ia4b l7kmOap1XtPal/32QEZHjx7fCBMM7yTkEbOt2U4mujEbufHOwkiQVxP922s95HTdRY9D IqH/VPQ/nAHOlE0HCoZJbj2VP92Ih7i2d6WRopo8L6OPkFI3rmxeO+IzCQOQ4ylM9ZWW 1cyV/fs+Ec6vzq03KJ9dB35bVV7ffmDFLYvo5vZkqdA7NJGNg8KQu8KH6+qpnzQ7Cdkp A0QQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ChjNlJpmvUy7uGhim/qxXx6v0qlombWn4CjSPK34jzI=; b=oTd4UErChfu97BrMWkO5RKFnsTm96p/UWrPVqPcSfyG7fQxSYDwyl9jyZrPQOiasO1 JrsFeRAsartqYW++JNzr9v/bzNEl3seACI24+C5+P3FfhcP0WV5OfYu2W1o9aoGxpRdp 5NvnuoDGpOOu9tMRL/z7AOLT35Tg4q8gJcGT7rhUysB4sTYp8jhCvKe0gbs9QgPb9X07 FkY/jVV/Sf4G2aD+cRL2AB8vkuY1bNK4dZyCqPgOPq8hXZfZldunZo+eGcNMgGsrTv/r 5SdeGkVnTtGJAB5DLHhZ5qij6gEsUpIhy5P49JKlSg7ntNT5PVDlnEWdED3GCMPjI1dj IE1g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11si12070941pla.370.2019.04.02.08.52.25; Tue, 02 Apr 2019 08:52:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731754AbfDBOqv (ORCPT + 99 others); Tue, 2 Apr 2019 10:46:51 -0400 Received: from mga11.intel.com ([192.55.52.93]:45121 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731470AbfDBOqv (ORCPT ); Tue, 2 Apr 2019 10:46:51 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Apr 2019 07:46:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,301,1549958400"; d="scan'208";a="145951530" Received: from mattu-haswell.fi.intel.com (HELO [10.237.72.164]) ([10.237.72.164]) by FMSMGA003.fm.intel.com with ESMTP; 02 Apr 2019 07:46:48 -0700 Subject: Re: Regression causes a hang on boot with a Comtrol PCI card To: Alan Stern , Bjorn Helgaas Cc: Jesse Hathaway , Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Mathias Nyman , Greg Kroah-Hartman , linux-usb@vger.kernel.org References: From: Mathias Nyman Message-ID: Date: Tue, 2 Apr 2019 17:49:08 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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]) -Mathias