From owner-freebsd-current@freebsd.org Mon Feb 19 23:48:30 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 E3CA4F0A3AC for ; Mon, 19 Feb 2018 23:48:29 +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 594A273013; Mon, 19 Feb 2018 23:48:29 +0000 (UTC) (envelope-from byond.lenox@gmail.com) Received: by mail-lf0-f44.google.com with SMTP id l191so1760188lfe.1; Mon, 19 Feb 2018 15:48:29 -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; bh=ydbq6gDXwpiihebt+Jcjmfn52FNvGXag1xVMPg6epRM=; b=ULI9PdZzH4Yp1X5iZqAj7pCrdyZ4ArpRsv09ynNYoN4DJbZ3qO86a/u1WWDSZPt/z6 XcyV1eVVsdD4a00lE4QOXjXyHD9v7AjmVDLUIOsAIDwIQy1SGWyKjdIIqgkgH2kp2oES o6aBOelJNG0KnoAWWK+jFgPnhXXeF1Vqcj4im31qA2zRleTsFyZeq5cmKyeaDMhGCmLH HtLK4tHP04joKneX0huLsj+etD9aO1zQ7RkWog4nCHb/6eBfqsGLg7zEMcMMJXFJwDgN L4bA6mRxsUsaYm/Fnv8jBQFv8f4RBrwc7MdDILcaUlnZx/aTQt+tx03lEaC90vfOSiNT ccTg== X-Gm-Message-State: APf1xPAJ1Y9JHpGpAzQ6OyVcaWCgUBGIQlOm2jHlTt1LanKn3Fo8WyO8 rTHjJ3s5cNbfoU89A4pSmhWoghgG X-Google-Smtp-Source: AH8x226R9sr+qLIPksRGy053CP/3Fxz57fkbeDX3ikSuYnABTQioh3JGRSE2vaftmUVneF1ZMD8LoQ== X-Received: by 10.46.82.16 with SMTP id g16mr10375306ljb.67.1519084107391; Mon, 19 Feb 2018 15:48:27 -0800 (PST) Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com. [209.85.215.41]) by smtp.gmail.com with ESMTPSA id f7sm4648839lfb.42.2018.02.19.15.48.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Feb 2018 15:48:26 -0800 (PST) Received: by mail-lf0-f41.google.com with SMTP id 70so1745335lfw.2; Mon, 19 Feb 2018 15:48:26 -0800 (PST) X-Received: by 10.25.233.23 with SMTP id g23mr9327582lfh.99.1519084106499; Mon, 19 Feb 2018 15:48:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.46.106.8 with HTTP; Mon, 19 Feb 2018 15:48:25 -0800 (PST) Received: by 10.46.106.8 with HTTP; Mon, 19 Feb 2018 15:48:25 -0800 (PST) In-Reply-To: References: <2AFF3AE4-8740-4776-9D8D-7D709EE051C6@gmail.com> <1b9e58fe-2616-b04b-13c2-fee78a33ad6e@club.fr> From: Kyle Evans Date: Mon, 19 Feb 2018 17:48:25 -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@freebsd.org, dteske@freebsd.org, listjm@club.fr Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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: Mon, 19 Feb 2018 23:48:30 -0000 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 loader. >> >> 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/068497.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 break > 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 booting amd64, as I still get the 'no local APIC' panic (I just tried @r329609). Under EFI and lua loader, the following is set when breaking to prompt: 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 get 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 clear 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#l233 I'll have to go back and figure out what I was thinking here again. It made sense when I wrote it, maybe explicitly disabling ACPI if it's not immediately detected was the wrong move. =3D)