From owner-freebsd-current@freebsd.org Fri May 27 07:50:10 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 EDB7AB4C546 for ; Fri, 27 May 2016 07:50:10 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id CD49D1249 for ; Fri, 27 May 2016 07:50:10 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id C8F2FB4C545; Fri, 27 May 2016 07:50:10 +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 C88E4B4C544 for ; Fri, 27 May 2016 07:50:10 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 605681247; Fri, 27 May 2016 07:50:10 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm0-x232.google.com with SMTP id n129so259735807wmn.1; Fri, 27 May 2016 00:50:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=Yov0qG+j8RogseR5TMwDxZ2x2jZUl3u/KTQZZz0s5fg=; b=FYg+Lwp+Fze7RFaEUo3p1NHfn1+xOXipPmpd74a5vU7ggnjWnmzQsBrr4cO4/aUFnR pUnlutanxGT2Sx+Fv8uPoXa97Iv1e82UBr89vJDz2k9ctKsVcVjPYQ+mC+ho+tyuIt75 hL7AkhjEuhuefFvqMEUlvwePEdtE6YJ1E9KOsaB+A5Is45WzQj7ZL9O0dZ6efwRsXcGA ytCT11+WHewjaRGxeRxWa6rQA8YI8jHjvm3j1NF6rovkkdX5jg8jYfTIUt8gAohUa1Jr R0bQHCO/YisJBfsYoWnVfhUB4Q+cS11WiNbD6T+TdCYZ+UEDGhAGYgqk+UfFyZaOo3S6 xP4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=Yov0qG+j8RogseR5TMwDxZ2x2jZUl3u/KTQZZz0s5fg=; b=YMGCCegvJA6ZR7QkWxocn1zC2iDSYsiVdVh+Y9hVjvLKGck/UulttPHFMejXKSatI+ oLzpaMEMVCN/WsSQG3+GVL4Cu87naxO7WbyflloEhFK5U/TqjTXZdFFJ4Bkr2wo4DfdP 8ERJNqO411OKtcLjXuXimke2RPBV09l8AC3OOfZLIfyh8/Pzx/zu2bGqHWAsywS6W1GZ Qw+0ReG35qzEdfLVImv9a0IOJl6jcUvmewtfiocxj2Dm2tm70m9P/3g+E1n+VHSegsi6 mSympROQ4BBJkPOG8JAqrMmFoDTh4UvwuqzvnXurQyxFPxyyHZuGyTbAUAXSCGUYK8qa 0mmg== X-Gm-Message-State: ALyK8tKyL2lMI6AfJZFmONOyaXMF1esRmPnZjBqKqm3EXc19T89ZD2nD0bb8HZdRzkSSIg== X-Received: by 10.194.23.33 with SMTP id j1mr14319161wjf.160.1464335408386; Fri, 27 May 2016 00:50:08 -0700 (PDT) Received: from ernst.home (p4FC0F7C7.dip0.t-ipconnect.de. [79.192.247.199]) by smtp.gmail.com with ESMTPSA id c7sm18037596wji.38.2016.05.27.00.50.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 May 2016 00:50:07 -0700 (PDT) Date: Fri, 27 May 2016 09:50:05 +0200 From: Gary Jennejohn To: John Baldwin Cc: current@freebsd.org Subject: Re: EARLY_AP_STARTUP hangs during boot Message-ID: <20160527095005.0e0dc1be@ernst.home> In-Reply-To: <2245981.CzRHAP1AJo@ralph.baldwin.cx> References: <20160516122242.39249a54@ernst.home> <3960771.pvLV2Nd9Tc@ralph.baldwin.cx> <20160517184741.599597b4@ernst.home> <2245981.CzRHAP1AJo@ralph.baldwin.cx> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Fri, 27 May 2016 07:50:11 -0000 On Thu, 26 May 2016 16:54:35 -0700 John Baldwin wrote: > 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? > Something has changed since the last time I generated a kernel with this option. Now I get a NULL-pointer dereference in the kernel, doesn't matter whether I set the hint or not. No crash dump is created. Here some trace copied from the console: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x1818 fault code = supervisor write data, page not present instruction pointer = 0x20:0xffffffff805492ef [some stack trace] taskgroup_adjust() at taskgroup_adjust+0x2f; frame 0xffffffff8196c90 mi_startup() at mi_startup+0x118; frame 0xffffffff8196fcb0 -- Gary Jennejohn