Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1297980yba; Sat, 6 Apr 2019 08:33:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5lrmw2cLJB152eZ3b2dePKcnABE5EMT1bfC9oq0S6JNnKVtLQ7HwLrqvDAHX/6qsqvLZJ X-Received: by 2002:a62:3583:: with SMTP id c125mr19000141pfa.169.1554564805656; Sat, 06 Apr 2019 08:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554564805; cv=none; d=google.com; s=arc-20160816; b=YUiyip7scmrWpOlTaOL/iEYhrZGcw1L31mNzCIUP7CCr0uC9HiLYsgwJoCr502o/33 +luSCgI2Q24tGox5DT7mYpU6IdVhrnZvLGmtpA2JD0uLiaMp6x2AHryFmxdraN1ENHsZ nTcnf0jYRGJKw/BvrsH4OUSnBwk6ymWdG9Dm8+S+McB4gIMfQhyDX2+2m89qOR/0iL7k F5EHnCsoWDqKorLEvTiTpVbR3siwwdrwdKYSyEkptafVxBitaBHi2SUSh7AfcGFB0oT6 F1GYM06geGgbGFzzItRCLjfLxJxGDmZufMV2BRT1WwTyXAtBvVsTkT3zJPjglds1RuQV iyag== 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=f9YpgU8vqCKmsCa6LAM861JIOU7lQH04CV1IFjFZcT4=; b=BLmhOLvrP49Z1ivwYVW+n8pfvz5MI0UiUrb00NkVKJzFKA3a34PqbxzqwJfy6tz/1t fjP88Z+haxq5u4lxC7O8LU7ah6kPIrFH3Z6ozqklERFpTppGaRMRP2FNGZrQA/IDOX+p Xj9ga+FrM1dzr2t3GPe5rKK3aO8SYV+cl7jIQYkAORn2TAFQ0iNc2WUsuValTFkRSzSb ChqEnE3jkkdxMspkZEzrbVqVrGqTLwF7IGWQuZPMA72Oz8h18BqckbMgb/xfz78yJznf SkbJjF5KNvbxUdqiNS6LyaPE7Q0HkPU3SAymU10hbqSA/3ZUvSXog5qnVUpjrbs1AXbF JK5g== 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 t9si21560957plo.98.2019.04.06.08.33.08; Sat, 06 Apr 2019 08:33:25 -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 S1726564AbfDFPcc (ORCPT + 99 others); Sat, 6 Apr 2019 11:32:32 -0400 Received: from netrider.rowland.org ([192.131.102.5]:54801 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726436AbfDFPcc (ORCPT ); Sat, 6 Apr 2019 11:32:32 -0400 Received: (qmail 19478 invoked by uid 500); 6 Apr 2019 11:32:31 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 6 Apr 2019 11:32:31 -0400 Date: Sat, 6 Apr 2019 11:32:31 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Jesse Hathaway cc: Bjorn Helgaas , 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 Fri, 5 Apr 2019, Jesse Hathaway wrote: > On Thu, Apr 4, 2019 at 2:14 PM Alan Stern wrote: > > Okay. You could try skipping that pci_write_config_byte() call. The > > following loop would probably time out, and you might find that the > > code crashes later on. > > > > You could also try setting try_handoff to 0 near the start of the > > routine. Your system plus the Comtrol PCI card could have the same > > sort of bug as reported in Bugzilla #77021. > > I tried both of those options and the output was similar, here is the output > with try_handoff set to 0. In both cases the box then hangs on initializing > pstore. Well, at least that's forward progress. I don't know what pstore is or what connection it has to the USB subsystem. Does the machine hang similarly if you boot without the Comtrol PCI card present? For that matter, what happens if you remove EHCI from the kernel configuration completely? > Excuse my ignorance on understanding how having the Comtrol > card present would effect the USB handoff, but would there be any > value in trying to boot this box via UEFI, rather than via the BIOS? Does > UEFI handle the handoff differently? The UEFI and the legacy BIOS are two separate pieces of code with no particular connection to one another. It's a good bet that they do pretty much everything differently. As for how the PCI card affects the USB handoff, it depends on how the BIOS behaves. Normally the BIOS will take control of all the available EHCI controllers during bootup (so that it can use them to communicate with a USB keyboard or mouse), including controllers on add-on PCI cards as well as those on the motherboard. When the kernel starts up, it tries to take ownership of the controllers away from the BIOS (that's the handoff) so that Linux can use them. However, if the BIOS was never tested for handoff of USB controllers on add-on PCI cards, it could easily have a bug that would crash the machine. Alan Stern