Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3365352imc; Wed, 13 Mar 2019 16:21:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzv4m1HDrUREmSG+eyHdH423MC+xTZyTXH75DYWxJbxm8x6a18GyVZpUAlpo0t4aIX44dnd X-Received: by 2002:a62:5e46:: with SMTP id s67mr46252223pfb.126.1552519314022; Wed, 13 Mar 2019 16:21:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552519314; cv=none; d=google.com; s=arc-20160816; b=nbl7cExNweB4McBgPnQsbV855wySwQnt0MWrcBxWmvUYFBhI7YmMKzls4NkUy9q9+Z QxVSyLCD3tcfB6tnBVwoK1IGhyM/OgXiT0gU+RFHx2NQgxdW7FsSmK3WqHLDvgUvXg+w pjtZ4Uh2RQFcBMAjqxLZbAf60tY683X9IQg+1urOhZ5WaaGzgfWGoVvA99iyUt4rAiXz sydzY5hT19DNoZKnsCcbHBaPcEQ2w2HLXhg9CFxttZr4jt0OJSGsggkdEF/+P2Dwl+bM WiI1MhyatYC7Mff0rD9/0hFCZHDcDZPOqbOT80K6QDB4pje679z+ZoGqINQTdiYriPvp mLGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AOh16uvbR2AQFg+DlU/1AT1ZRYi2uIANZwJQLp4el7c=; b=haxPcybuy56erkiarDlVm8KjLt8VZ6hteGOlHpbU4yEnRNjWKq7Pt4j47Pm4qGpK9Z veaSqr485WPX7Phmj5TFeF0nbHR/CqlGl6VJ7CUlde6ni+V40uvfBNZoMyYfgZgg/NDu CKyOYr2nSFMyvkQxkhaYPGNHuVYm8ylzd4Wy1cneTqb+0Gl/kDS5T/EJ6NqbDBFaeUSn ProJhZPoTReGrTb2XJb/q3GyOa/zZCKWS6vFPEA8Sb0xTRqwhyJS7Eeqb8oTgo0ZZ0bx AylmwFgiFFy6YdfvqNon7F8KqAuew53miNhViYpwiA4gQH8jrY/NGfMkVDmuEmvCrYDa o8hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ipEEOeCv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 18si2283502pfn.212.2019.03.13.16.21.37; Wed, 13 Mar 2019 16:21:54 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ipEEOeCv; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727048AbfCMXVP (ORCPT + 99 others); Wed, 13 Mar 2019 19:21:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:57378 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726078AbfCMXVO (ORCPT ); Wed, 13 Mar 2019 19:21:14 -0400 Received: from localhost (unknown [12.208.228.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1521720854; Wed, 13 Mar 2019 23:21:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552519274; bh=4KYB1fuOeXgs3tIm3qTCeEG5sbuyLpyDeRE1rHgjPRw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ipEEOeCvWq+dY98ZUS9UGgzufcRz31+wbmuTXAHdkeJPBiLkhfvg12981/rpmytfZ C8psuQSeY55Ajjx0VCDNpPU+4zYvDKwZ2VXsz5yzZN0WOPkgIB15/12EmkKKIUUsbE SoisercyhfV/8XNFo1aht9Z7ZSotfI7z6TrdKG1I= Date: Wed, 13 Mar 2019 18:21:13 -0500 From: Bjorn Helgaas To: Jesse Hathaway Cc: Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: Regression causes a hang on boot with a Comtrol PCI card Message-ID: <20190313232112.GC210027@google.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jesse, On Wed, Mar 13, 2019 at 11:50:07AM -0500, Jesse Hathaway wrote: > Two regressions cause Linux to hang on boot when a Comtrol PCI card > is present. > > If I revert the following two commits, I can boot again and the card > operates without issue: > > 1302fcf0d03e (refs/bisect/bad) PCI: Configure *all* devices, not just > hot-added ones > 1c3c5eab1715 sched/core: Enable might_sleep() and smp_processor_id() > checks early I'm very sorry about the regression, but thank you very much for narrowing it down and reporting it! How did you narrow it down to *two* commits, and do you have to revert both of them to avoid the hang? Usually a bisection identifies a single commit, and the two you mention aren't related. > ; lspci -vs 82:00.0 > 82:00.0 Multiport serial controller: Comtrol Corporation Device 0061 > Subsystem: Comtrol Corporation Device 0061 > Flags: 66MHz, medium devsel, IRQ 35, NUMA node 1 > Memory at c8004000 (32-bit, non-prefetchable) [size=4K] > Memory at c8000000 (32-bit, non-prefetchable) [size=16K] > Capabilities: [40] Hot-plug capable > Capabilities: [48] Power Management version 2 > Kernel driver in use: rp2 > Kernel modules: rp2 > > Is it possible that the problem is that the card claims to support > Hot-plug, but does not? > > I would love to help fix this issue, please let me know what other > information would be helpful to provide. Can you collect a complete dmesg log (with a working kernel) and output of "sudo lspci -vvxxx"? You can open a bug report at https://bugzilla.kernel.org, attach the logs there, and respond here with the URL. Where does the hang happen? Is it when we configure the Comtrol card? Bjorn