From owner-freebsd-current@freebsd.org Thu May 26 23:54:41 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3327DB48EA0 for ; Thu, 26 May 2016 23:54:41 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 214B31937 for ; Thu, 26 May 2016 23:54:41 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 1CB2AB48E9F; Thu, 26 May 2016 23:54:41 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1C5A5B48E9E for ; Thu, 26 May 2016 23:54:41 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F2D7D1936 for ; Thu, 26 May 2016 23:54:40 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 9DBACB91E; Thu, 26 May 2016 19:54:39 -0400 (EDT) From: John Baldwin To: gljennjohn@gmail.com Cc: current@freebsd.org Subject: Re: EARLY_AP_STARTUP hangs during boot Date: Thu, 26 May 2016 16:54:35 -0700 Message-ID: <2245981.CzRHAP1AJo@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-STABLE; KDE/4.14.3; amd64; ; ) In-Reply-To: <20160517184741.599597b4@ernst.home> References: <20160516122242.39249a54@ernst.home> <3960771.pvLV2Nd9Tc@ralph.baldwin.cx> <20160517184741.599597b4@ernst.home> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 26 May 2016 19:54:39 -0400 (EDT) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 May 2016 23:54:41 -0000 On Tuesday, May 17, 2016 06:47:41 PM Gary Jennejohn wrote: > On Mon, 16 May 2016 10:54:19 -0700 > John Baldwin wrote: > > > On Monday, May 16, 2016 12:22:42 PM Gary Jennejohn wrote: > > > I tried out EARLY_AP_STARTUP, but the kernel hangs and I can't > > > break into DDB. > > > > > > I did a verbose boot and the last lines I see are related to routing > > > MSI-X to various local APIC vectors. I copied the last few lines and > > > they look like this: > > > > > > msi: routing MSI-X IRQ 256 to local APIC 2 vector 48 > > > msi: routing MSI-X IRQ 257 to local APIC 3 vector 48 > > > msi: routing MSI-X IRQ 258 to local APIC 4 vector 48 > > > msi: routing MSI-X IRQ 256 to local APIC 0 vector 49 > ^^^^^^^ Assigning > > > > > > I tried disabling msi and msix in /boot/loader.conf, but the settings > > > were ignored (probabaly too early). > > > > No, those settings are not too early. However, the routing to different > > CPUs now happens earlier than it used to. What is the line before the > > MSI lines? You can take a picture with your phone/camera if that's simplest. > > > > Here a few lines before the MSI routing happens: > > hpet0: iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0 > hpet0: vendor 0x4353, rev 0x1, 14318180 Hz, 3 timers, legacy route > hpet0: t0 : irqs 0x00c0ff (0), MSI, periodic > hpet0: t1 : irqs 0x00c0ff (0), MSI, periodic > hpet0: t2 : irqs 0x00c0ff (0), MSI, periodic > Timecounter "HPET" frequency 14318180 Hz quality 950 The assigning message means it is in the loop using bus_bind_intr() to setup per-CPU timers. Can you please try setting 'hint.hpet.0.per_cpu=0' at the loader prompt to see if disabling the use of per-CPU timers allows you to boot? -- John Baldwin