Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Feb 2018 20:07:11 -0600
From:      Kyle Evans <kevans@freebsd.org>
To:        Peter Lei <peter.lei@ieee.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, Devin Teske <dteske@freebsd.org>,  =?UTF-8?Q?Juan_Ram=C3=B3n_Molina_Menor?= <listjm@club.fr>
Subject:   Re: ACPI panic on boot with new Lua loader and other minor issues
Message-ID:  <CACNAnaFU4WE4fs6uHfpo3xpVmge9KHx7SWydgNauoM5f=eh=Vw@mail.gmail.com>
In-Reply-To: <5bea1c92-0ae9-7acb-d806-b7d7623658e1@ieee.org>
References:  <2AFF3AE4-8740-4776-9D8D-7D709EE051C6@gmail.com> <1b9e58fe-2616-b04b-13c2-fee78a33ad6e@club.fr> <CACNAnaFNv5LwDv3Z2dgPe%2Bb%2B3La%2B%2B-4CPNECug5XCdaTT_uo3A@mail.gmail.com> <b9460216-fbb8-1aee-690b-ec5b17618027@ieee.org> <CACNAnaHzv3FXLncKN-_qMx7rpdxNWg_fhFjKML31SWyVGTp9yA@mail.gmail.com> <5bea1c92-0ae9-7acb-d806-b7d7623658e1@ieee.org>

next in thread | previous in thread | raw e-mail | index | archive | help
 gets sOn Mon, Feb 19, 2018 at 6:11 PM, Peter Lei <peter.lei@ieee.org> wrot=
e:
>
>
> On 2/19/18 5:48 PM, Kyle Evans wrote:
>>
>>
>> On Feb 19, 2018 5:44 PM, "Peter Lei" <peter.lei@ieee.org
>> <mailto:peter.lei@ieee.org>> wrote:
>>
>>
>>
>>     On 2/19/18 2:21 PM, Kyle Evans wrote:
>>     > Hello!
>>     >
>>     > On Mon, Feb 19, 2018 at 8:21 AM, Juan Ram=C3=B3n Molina Menor
>>     <listjm@club.fr <mailto:listjm@club.fr>> wrote:
>>     >> I have done a full build of r329555 to test the new Lua boot load=
er.
>>     >>
>>     >> Both the new and the old kernels panic after being loaded with:
>>     >>
>>     >> panic: running without device atpic requires a local APIC
>>     >>
>>     >> For reasons unknown, ACPI is off, as shown by David Wolfskill in
>>     a previous
>>     >> message:
>>     >>
>>     https://lists.freebsd.org/pipermail/freebsd-current/2018-February/06=
8497.html
>>     <https://lists.freebsd.org/pipermail/freebsd-current/2018-February/0=
68497.html>
>>     >>
>>     >> OK show hint.acpi.0.disabled
>>     >> 1
>>     >>
>>     >> Setting ACPI to On resolves the issue.
>>     >
>>     > As David noted, this should actually Just Work (TM) now. Can you b=
reak
>>     > into a loader prompt with just the forth loader and tell me what "=
show
>>     > hint.acpi.0.rsdp" looks like?
>>
>>
>>     This doesn't appear to "just work out-of-the-box" yet when EFI booti=
ng
>>     amd64, as I still get the 'no local APIC' panic (I just tried @r3296=
09).
>>
>>     Under EFI and lua loader, the following is set when breaking to prom=
pt:
>>         hint.acpi.0.disabled=3D1
>>     Under forth loader, this is not present/set.
>>
>>     In neither case is hint.acpi.0.rsdp present/set as that appears to g=
et
>>     set during the exec of the loaded kernel...
>>
>>     I've worked around the issue by adding hint.acpi.0.disabled=3D"0" to
>>     loader.conf (or patching the amd64 efi loader code to explicitly cle=
ar
>>     that hint).
>>
>>
>> [Apologies for broken quoting, currently mobile]
>>
>> What happens if you patch this line out?
>> https://svnweb.freebsd.org/base/head/stand/lua/core.lua?view=3Dmarkup#l2=
33
>
>
> Ah, right - yep, commenting out that line works.
>

This should be fixed as of r329614. hint.acpi.0.rsdp gets set upon
exec of the loaded kernel in the EFI world, then in i386 world it's
before lualoader comes into play. We should probably do as forth does
and disable ACPI stuff on !i386 (IIRC the option disappears
completely), but IIRC we haven't yet exposed TARGET/TARGET_ARCH to
lua.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACNAnaFU4WE4fs6uHfpo3xpVmge9KHx7SWydgNauoM5f=eh=Vw>