From owner-freebsd-hackers@freebsd.org Fri May 18 23:07:21 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9DBD9EDF663 for ; Fri, 18 May 2018 23:07:21 +0000 (UTC) (envelope-from toasty@dragondata.com) 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 20EB06E1D3 for ; Fri, 18 May 2018 23:07:21 +0000 (UTC) (envelope-from toasty@dragondata.com) Received: by mailman.ysv.freebsd.org (Postfix) id D4E1FEDF652; Fri, 18 May 2018 23:07:20 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0BBBEDF651 for ; Fri, 18 May 2018 23:07:20 +0000 (UTC) (envelope-from toasty@dragondata.com) Received: from mail-io0-x243.google.com (mail-io0-x243.google.com [IPv6:2607:f8b0:4001:c06::243]) (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 2FA4B6E1CE for ; Fri, 18 May 2018 23:07:20 +0000 (UTC) (envelope-from toasty@dragondata.com) Received: by mail-io0-x243.google.com with SMTP id e20-v6so8056601iof.4 for ; Fri, 18 May 2018 16:07:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dragondata.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=fqauz3DAVJ/ulc8xirpk7NkzgRGTxGRjdVT1/6UI0Rg=; b=iLjY5q3XFgmx/mw0eeRQOwLAmUrLbsR6pmlrGggo0SsRbefqKj2cz+KxnV+ZIO2CWc 91zvLLc3cprHXXR2LFuEGWcWeC0r3kkeNZVa9QrW+unnDU116zQ5swC3XG9p5+F53tVb anqbVPFlfvyLz6/MTsOYftcSPEyCPpBfPPKiI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=fqauz3DAVJ/ulc8xirpk7NkzgRGTxGRjdVT1/6UI0Rg=; b=bRnEx+nQpMhMOH0tLM+eekCwDZFOIzOFbv9bnu4ov8YYfmdW0eO1HTQnnjWHsdnpBs +navUhfZd3mL4Zj+H5ODrkFx8nBo7zUzdLC7s4fNZViVBVUIG3Hzg9giypYLb//31SiE tjGIKYZO8afU7liMLX0ovGqavX4tDsYU1t/lGd8ly/UjJ0nsOTvp7etQUU5iJBHetUkm STcTMZ3IgmRa0lnxSpIXX/eiLhDxRdUdAJtYzrJkDGuxuL7HRTytp0QTkWHo9/Rzo3QW MoNoISMuF5ebksT1fBU1MzGX0j3jcMkd0JckGcRL7pCTr4d7Rt9KH482/MyDKKUOW5yh jGPg== X-Gm-Message-State: ALKqPwd9hrxze8GaVj0YfzV1SYCyWMxHt/nxdxYE9WGZP0TFcgVw5QFl tPGhMDFU8FYtD9E2Sb/09F5OTQ== X-Google-Smtp-Source: AB8JxZqRo8SD1qSqsevTe6RtADovo/vamKBQuKv5hFN4HNllEJRGglOjY3+PqwFs2nxpPoLPZZRZgg== X-Received: by 2002:a6b:998d:: with SMTP id b135-v6mr13559251ioe.122.1526684839445; Fri, 18 May 2018 16:07:19 -0700 (PDT) Received: from unassigned.v6.your.org ([2001:4978:1:45:f036:4a7b:4b23:e977]) by smtp.gmail.com with ESMTPSA id t4-v6sm5284278ita.29.2018.05.18.16.07.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 May 2018 16:07:18 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: Current panic on boot on H11DSI motherboard with epyc cpu (nexus_add_irq: failed) From: Kevin Day In-Reply-To: <1616582.sIejGazfcv@ralph.baldwin.cx> Date: Fri, 18 May 2018 18:07:16 -0500 Cc: Vitalij Satanivskij , freebsd-current@freebsd.org, Stephen Hurd , cem@freebsd.org, Matthew Macy , "freebsd-hackers@freebsd.org" , Stephen Hurd Content-Transfer-Encoding: quoted-printable Message-Id: <40C20F1C-A3D7-4847-A365-DC94679E8ABF@dragondata.com> References: <20180416102710.GA90028@hell.ukr.net> <3628282.XVdngBdGlp@ralph.baldwin.cx> <20180418105649.GA9989@hell.ukr.net> <1616582.sIejGazfcv@ralph.baldwin.cx> To: John Baldwin X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2018 23:07:21 -0000 > On Apr 18, 2018, at 1:42 PM, John Baldwin wrote: >>=20 >> Chenged made for it was >>=20 >> Index: sys/x86/x86/nexus.c >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> --- sys/x86/x86/nexus.c (revision 332663) >> +++ sys/x86/x86/nexus.c (working copy) >> @@ -698,7 +698,7 @@ >> { >>=20 >> if (rman_manage_region(&irq_rman, irq, irq) !=3D 0) >> - panic("%s: failed", __func__); >> + panic("%s: failed irq is: %lu", __func__, irq); >> } >=20 > Ohhhh, this is a different issue. Sorry. As a hack, try changing > 'FIRST_MSI_INT' to 512 in sys/amd64/include/intr_machdep.h. The issue > is that some systems now include more than 256 interrupt pins on I/O > APICs, so IRQ 256 is already reserved for use by one of those > interrupt pins. The real fix is that I need to make FIRST_MSI_INT > dynamic instead of a constant and just define it as the first free IRQ > after the I/O APICs have probed. I'm testing a very large AMD Epyc system, and I had to change = FIRST_MSI_INT to 768, but that fixed this issue for me.