Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 May 2018 18:07:16 -0500
From:      Kevin Day <toasty@dragondata.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        Vitalij Satanivskij <satan@ukr.net>, freebsd-current@freebsd.org, Stephen Hurd <shurd@llnw.com>, cem@freebsd.org, 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:  <40C20F1C-A3D7-4847-A365-DC94679E8ABF@dragondata.com>
In-Reply-To: <1616582.sIejGazfcv@ralph.baldwin.cx>
References:  <20180416102710.GA90028@hell.ukr.net> <3628282.XVdngBdGlp@ralph.baldwin.cx> <20180418105649.GA9989@hell.ukr.net> <1616582.sIejGazfcv@ralph.baldwin.cx>

next in thread | previous in thread | raw e-mail | index | archive | help

> On Apr 18, 2018, at 1:42 PM, John Baldwin <jhb@freebsd.org> 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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40C20F1C-A3D7-4847-A365-DC94679E8ABF>