From owner-freebsd-current@freebsd.org Tue Feb 20 02:07:35 2018 Return-Path: Delivered-To: freebsd-current@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 4A4A8F17EC2 for ; Tue, 20 Feb 2018 02:07:35 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: from mail-lf0-f44.google.com (mail-lf0-f44.google.com [209.85.215.44]) (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 BC13E79739; Tue, 20 Feb 2018 02:07:34 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: by mail-lf0-f44.google.com with SMTP id x196so1991849lfd.12; Mon, 19 Feb 2018 18:07:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=cBZD0BWwlWe/lzm4EzdeHOYII18y0Rw12+CRy2ljb70=; b=EaE9GMHsT12x08PYmTSYr7+gtuHLBoydMhxxo9RsVgOeQnq3anA4NFvq7589rqbtnv obZeIi9+v85GXbj1zALisZ3G2WmgPFtcX9J3xEA/z7hA4u8/twvkheSImlD2YW5FniPf Vn7bjXTKv5oPcuBc3SP2TCpxf/660dKEiEJKpIJYmP5a+yiB6oBHnOhep/gNGeJGIkOh LjTedSI8lLcSRHH3F85tNmz7rCab0tFUB31XgdsBwn0kcUW0X2Ozf5NP7E/mZTfSvcay +KxDGtbHfa+0y8WV7CHeJrMFgcmdJ3lpJf1WaHKdwXRorVIVdIRwC4bjiWvLcJPN+l/C ME5Q== X-Gm-Message-State: APf1xPDlziU4hoEiwweiLjeVP7sdn4D9SqXayAPV6onuprvfvDsMsKSp OIX1uE8B8+BFUyFox496nePESQQj X-Google-Smtp-Source: AH8x224Ujq0OZlkCarLUve3Lexh4ddQvBuhjJBK5RyvAHhd7vyHO8EeLsPHUWvK0pYD9/cuoT83xbA== X-Received: by 10.25.158.67 with SMTP id h64mr11554380lfe.56.1519092452968; Mon, 19 Feb 2018 18:07:32 -0800 (PST) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com. [209.85.215.42]) by smtp.gmail.com with ESMTPSA id c123sm5234718lfc.94.2018.02.19.18.07.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 18:07:32 -0800 (PST) Received: by mail-lf0-f42.google.com with SMTP id r80so2008346lfe.13; Mon, 19 Feb 2018 18:07:32 -0800 (PST) X-Received: by 10.25.196.66 with SMTP id u63mr10456702lff.108.1519092451879; Mon, 19 Feb 2018 18:07:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.46.106.8 with HTTP; Mon, 19 Feb 2018 18:07:11 -0800 (PST) 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> <5bea1c92-0ae9-7acb-d806-b7d7623658e1@ieee.org> From: Kyle Evans Date: Mon, 19 Feb 2018 20:07:11 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: ACPI panic on boot with new Lua loader and other minor issues To: Peter Lei Cc: FreeBSD Current , Devin Teske , =?UTF-8?Q?Juan_Ram=C3=B3n_Molina_Menor?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Feb 2018 02:07:35 -0000 gets sOn Mon, Feb 19, 2018 at 6:11 PM, Peter Lei wrot= e: > > > On 2/19/18 5:48 PM, Kyle Evans wrote: >> >> >> On Feb 19, 2018 5:44 PM, "Peter Lei" > > 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 >> > 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 >> >> >> >> >> 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.