Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp4161957imc; Thu, 14 Mar 2019 13:58:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbnbCWd1ks2j4OkaG4klRNm9XRtsRa2t4/4mrMtkwod411rfLRV5L7YjrVEukUDoguDCkc X-Received: by 2002:a63:6c43:: with SMTP id h64mr45082797pgc.22.1552597095838; Thu, 14 Mar 2019 13:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552597095; cv=none; d=google.com; s=arc-20160816; b=wVeyaxcUO7TJcRrBbhdwn1CCAbYSwTQXyiT2xD6CExQbyJMCZ2dVYH2pqHBP+aA1zj xwNGR+Texiwunr60r0ap7n5gaM5pCvXP3cwagC/cZQnyML8pJknOBQENMRai3Agmb08G PZLQ16BplbjrT7WCk1Vy8RCJ9cvd9KFXnGLHPhzDL0UgALFZNhurI6QUj6KoHSFXdvf9 vFvrSXNB6Ic5X+odcehR0xYFTaKqHmcM9XQhstzCgdTcTGW1rnKHv8nedh4sgAXOr/Ay +xRBCETCaJ0TN8SbPvUC+9ykTXdozJfLJR4Ys8jm6v8CDmP8S5ZFmok0TO3z1E+hmdTO /JxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=0n+Yubwo3+VmfuEyCVcIzcBbnEVd7iC+Fb5ALd0vzzg=; b=Q5PJ5MLldrpKU+K+uM8msYlirVnlZh17ufE/lYIj57ELXlDxlXbTQALXFdE8SVn4bk J3Fnd0OH9PoK8Btioq44kG7+NkbEA+ZJ902cEqgNhZfdefU8e8wHkV0KLuldltTcyzRf Jjztksij/wG4q9tu0oy7mnLk3M9gm7AaF7nGP3Ta3Uw5vFAN/kq+xJxVAYQNGO2gRdby jPdygDb51Yl3OlqsC+cBjAt0+2vkDHKpeVzXC8PDSkti0BF6YgFkSH7Ge36SW6N5xQ+y qUrnXFf6c4R6MjYgs4eUC2HvZI8xHpi02C4Cp9hpwOkdumh/b1Ox6/P9zWcUMnTygUcC t6uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mbuki-mvuki-org.20150623.gappssmtp.com header.s=20150623 header.b=YjrKN8ZC; 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 d22si18570pfo.142.2019.03.14.13.57.58; Thu, 14 Mar 2019 13:58:15 -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=@mbuki-mvuki-org.20150623.gappssmtp.com header.s=20150623 header.b=YjrKN8ZC; 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 S1727760AbfCNU5V (ORCPT + 99 others); Thu, 14 Mar 2019 16:57:21 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43143 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727246AbfCNU5V (ORCPT ); Thu, 14 Mar 2019 16:57:21 -0400 Received: by mail-wr1-f65.google.com with SMTP id d17so7346626wre.10 for ; Thu, 14 Mar 2019 13:57:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mbuki-mvuki-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0n+Yubwo3+VmfuEyCVcIzcBbnEVd7iC+Fb5ALd0vzzg=; b=YjrKN8ZC41ArPSrj0jEaqlU4YzOOpZoWqbYM/ehGIDZKXKseeyLuCWiEWRB/90obzT Iqdf02pwGiJTvBTjeB0V2RTpojLOPRyNeYT3PHdfG/2O6TbBmp3A46XSinGJwZrf4JSG He7i12HS/Gkv0Pg/gA22aQYD+VNGqsC9ECUlwc43t7NBOlpuoHkE5Hx7PdM53YxzQ6FG BVum16oZFCTwWPfRzVYgXe1O5fWazUbGYoGBkh53uDT6qjCTJnL2TCOA+4VPqLLMpFXw RMnCVeJCsGaaDZaQgMvvotdbkDxDJr6SINUpwzJ2q1efNPcv8fYeZ3jyYSSRGCqh2JH0 SJ2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0n+Yubwo3+VmfuEyCVcIzcBbnEVd7iC+Fb5ALd0vzzg=; b=L/KoSS2UW6OyBC8y1jI2rfmhpnaMzb3b6lvqk64AZJmQ5RDeW2/HnceRdiT7sCwYh+ d5wRieR/lxh9ZwTTKF/fQiSstX0KWd00kDOmB5m8MRnsVWbiSq2L2FjzGF+DkpWEVDq7 Vc2wIGdbc3jkPtrLlVKc4azqorzakvAufqeTXTuCO3iirxyx4972LgmYrtthrqyOFN/2 j1KVtcbvmM9buWZSsvVZxmtJnQpmn1esDc/OlCfQjASI8ufsVsHbtmvtfthrcazVoSlg AKC8Nih0L6ywryFhylKmDQsSJj11/zCVVR2kKEIfKtsqz9dIghqSJk0zi4+jNRBWfAZv HZUA== X-Gm-Message-State: APjAAAVxG5LZVHohyUTeK8nM8MYv0nUzYvPnLBpIbOB+RZLgv4WFBNib RSE+QECcdUCxVzhLpzQVQ6Hk3HMHv0TAUw7n8TUPsQ== X-Received: by 2002:adf:9065:: with SMTP id h92mr393712wrh.150.1552597039322; Thu, 14 Mar 2019 13:57:19 -0700 (PDT) MIME-Version: 1.0 References: <20190313232112.GC210027@google.com> In-Reply-To: <20190313232112.GC210027@google.com> From: Jesse Hathaway Date: Thu, 14 Mar 2019 15:57:07 -0500 Message-ID: Subject: Re: Regression causes a hang on boot with a Comtrol PCI card To: Bjorn Helgaas Cc: Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > 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 > > 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. Sorry I should have been more verbose in what the bisection process was, I found the problem after attempting to upgrade from linux v3.16 to v4.9. When v4.9 hung I tried the latest kernel, v5.0, which also hanged. I began a git bisect, but found there was more than one bad commit. Here is my current understanding: - [x] v3.18 vanilla, 1302fcf0d03e committed, hangs - [x] v3.18 with revert of 1302fcf0d03e, works . . . - [x] v4.12 vanilla, hangs - [x] v4.12 with revert of 1302fcf0d03e, works - [x] v4.13 vanilla, 1c3c5eab1715 committed, hangs - [x] v4.13 with revert of 1302fcf0d03e, hangs - [x] v4.13 with revert of 1c3c5eab1715, hangs - [x] v4.13 with revert of 1302fcf0d03e & 1c3c5eab1715, works - [x] v5.0 vanilla, hangs - [x] v5.0 with revert of 1302fcf0d03e & 1c3c5eab1715, works > 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. Bug submitted along with the requested logs, https://bugzilla.kernel.org/show_bug.cgi?id=202927 > Where does the hang happen? Is it when we configure the Comtrol card? Hang occurs after PCI is initialized, snippet below, I have included the full output in the bug report: [ 10.561971] pci 0000:81:00.0: bridge window [mem 0xc8000000-0xc80fffff] [ 10.569661] pci 0000:80:01.0: PCI bridge to [bus 81-82] [ 10.575594] pci 0000:80:01.0: bridge window [mem 0xc8000000-0xc80fffff] [ 10.583278] pci 0000:80:03.0: PCI bridge to [bus 83] [ 10.589008] NET: Registered protocol family 2 [ 10.594254] tcp_listen_portaddr_hash hash table entries: 65536 (order: 8, 1048576 bytes) [ 10.603671] TCP established hash table entries: 524288 (order: 10, 4194304 bytes) [ 10.612729] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes) [ 10.620446] TCP: Hash tables configured (established 524288 bind 65536) [ 10.628124] UDP hash table entries: 65536 (order: 9, 2097152 bytes) [ 10.635541] UDP-Lite hash table entries: 65536 (order: 9, 2097152 bytes) [ 10.643669] NET: Registered protocol family 1 Please let me know if there is anything else I can provide, I am also happy to test any patches, Jesse Hathaway