From owner-freebsd-stable@freebsd.org Thu Feb 4 23:27:20 2021 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D6E08532FEC for ; Thu, 4 Feb 2021 23:27:20 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4DWvpc4lBcz3MSj for ; Thu, 4 Feb 2021 23:27:20 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id A296A53313A; Thu, 4 Feb 2021 23:27:20 +0000 (UTC) Delivered-To: stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A25D6532F4C for ; Thu, 4 Feb 2021 23:27:20 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DWvpc3y35z3MVS; Thu, 4 Feb 2021 23:27:20 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qk1-x735.google.com with SMTP id x81so5240996qkb.0; Thu, 04 Feb 2021 15:27:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=IkZHq5LeeTpUk3RKXqrzcSr4lHDdm6ouVzCw46HszDE=; b=b0UJZLnKomJhNXxlfJiDHPMUrmfQDee9/optOAPZ0+eYUKchRCpJA/ymD27pAFivNy SzWO6UgZEcFAxgTHBMIvwFCpnE0pgY/GGUKC/p9sHzOQw/AYDtFH/iEf3Lj/+fY4y54b QYEMGg6ooWWifNOuHx4DMx6/1SPuk2WJMhzDqkvm14J1mJb/9wPlfS4bJwobv4RZBm6d jU7XZGNN6CtCbjMuB3vzxJsE70P6B9WxCmb7ywpBBkLaN7PYjVun6+bjvCNJxv9Uz2G/ MEbXbYFtIyS6P79WYy6QlzrDvfAl9XDEO8gKn4huCldQ0alRHmddGPaQnR74v152I6uV RphA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=IkZHq5LeeTpUk3RKXqrzcSr4lHDdm6ouVzCw46HszDE=; b=ApGilaMbVz0YP3/03pjJmLhtK7qogw7+XLqG8n+qN4WWwrp9U0q8bOxybNJ1HgnzNA Y9OIcefU6V8VrTzaUlR0amFItHR/eCwcqnrKIMrz/5XLwSBop/BNSqPxs3BYdOim6VRg wpJIDiHPWh/UXFLQNbbWN6IlGt8GAFs3R3DRkFTOcka1MYq/Sqb5jMTcX3PoCYzKOP49 zPq4hn+/wzaOPlRjXuD/rDi1OaxnKRmYLI6los/1iY04FJf80bShoDllihtFR7FWClTF samdxXrgARlm8Z4ReUUul74ZVcs3qGYpveyXP8bvAf9cs7sB2a7U8yr4Y3xNvz2ejEjk cfCQ== X-Gm-Message-State: AOAM532JQJc2N5zLK732lYWzrVl78vROSxfi53y+2GbXih3f5sqoZkFp mzsFhss1Y7TF3KbLMvwL3i8= X-Google-Smtp-Source: ABdhPJzYuFKxe0Nn86MvlmEybSD+go0UhFS2mbHwqAyVuAtfOluDXYJu1KzorhJio/uRlQlixkAR0g== X-Received: by 2002:a37:aa90:: with SMTP id t138mr1664651qke.150.1612481239808; Thu, 04 Feb 2021 15:27:19 -0800 (PST) Received: from raichu ([142.126.164.150]) by smtp.gmail.com with ESMTPSA id s23sm6772948qke.3.2021.02.04.15.27.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 15:27:19 -0800 (PST) Sender: Mark Johnston Date: Thu, 4 Feb 2021 18:27:17 -0500 From: Mark Johnston To: Konstantin Belousov Cc: Matthew Macy , Alan Somers , FreeBSD Stable ML Subject: Re: Page fault in _mca_init during startup Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4DWvpc3y35z3MVS X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2021 23:27:20 -0000 On Fri, Feb 05, 2021 at 12:58:34AM +0200, Konstantin Belousov wrote: > On Thu, Feb 04, 2021 at 01:34:13PM -0800, Matthew Macy wrote: > > On Thu, Feb 4, 2021 at 1:31 PM Alan Somers wrote: > > > > > > After upgrading a machine to FreeBSD, 12.2, it hit the following panic on > > > its first reboot. I suspect that a few other servers have hit this too, > > > but since it happens before swap is mounted there are no core dumps, and > > > they usually reboot immediately. The code in question hasn't changed since > > > 2018. The panic happened in cmci_monitor at line 930. Does anybody have > > > any suggestions for how I could debug further? I can't readily reproduce > > > it, and I can't dump core, but I'd like to investigate it any way I can. > > > The server in question has dual Xeon Gold 6142 CPUs. > > > > Try this. > > I think that there is no other dependencies in the startup order, but > cannot know it for sure. > > commit 19584e3d3e9606d591fa30999b370ed758960e8c > Author: Konstantin Belousov > Date: Fri Feb 5 00:56:09 2021 +0200 > > x86: init mca before APs are started APs only call mca_init() after they have been released by the BSP though, and that happens later in SI_SUB_SMP. > diff --git a/sys/x86/x86/mca.c b/sys/x86/x86/mca.c > index 03100e77d455..e2bf2673cf69 100644 > --- a/sys/x86/x86/mca.c > +++ b/sys/x86/x86/mca.c > @@ -1371,7 +1371,7 @@ mca_init_bsp(void *arg __unused) > > mca_init(); > } > -SYSINIT(mca_init_bsp, SI_SUB_CPU, SI_ORDER_ANY, mca_init_bsp, NULL); > +SYSINIT(mca_init_bsp, SI_SUB_CPU, SI_ORDER_SECOND, mca_init_bsp, NULL); > > /* Called when a machine check exception fires. */ > void > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"