Date: Wed, 18 Apr 2018 11:42:41 -0700 From: John Baldwin <jhb@freebsd.org> To: Vitalij Satanivskij <satan@ukr.net> Cc: freebsd-current@freebsd.org, cem@freebsd.org, Stephen Hurd <shurd@llnw.com>, Matthew Macy <mmacy@nextbsd.org>, "freebsd-hackers@freebsd.org" <hackers@freebsd.org>, Stephen Hurd <shurd@freebsd.org> Subject: Re: Current panic on boot on H11DSI motherboard with epyc cpu (nexus_add_irq: failed) Message-ID: <1616582.sIejGazfcv@ralph.baldwin.cx> In-Reply-To: <20180418105649.GA9989@hell.ukr.net> References: <20180416102710.GA90028@hell.ukr.net> <3628282.XVdngBdGlp@ralph.baldwin.cx> <20180418105649.GA9989@hell.ukr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, April 18, 2018 01:56:49 PM Vitalij Satanivskij wrote:
> JB> > If you need any aditional information please tell me about.
> JB>
> JB> Can you perhaps turn off the stack trace on boot to not lose the panic messages
> JB> (remove KDB_TRACE from kernel config) and maybe modify the panic message to
> JB> include the IRQ number passed to nexus_add_irq?
>
>
> Hm looks like it's always irq with number 256
> eg hpet - 256
> igb - 256
>
> Chenged made for it was
>
> Index: sys/x86/x86/nexus.c
> ===================================================================
> --- sys/x86/x86/nexus.c (revision 332663)
> +++ sys/x86/x86/nexus.c (working copy)
> @@ -698,7 +698,7 @@
> {
>
> if (rman_manage_region(&irq_rman, irq, irq) != 0)
> - panic("%s: failed", __func__);
> + panic("%s: failed irq is: %lu", __func__, irq);
> }
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.
--
John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1616582.sIejGazfcv>
