From owner-freebsd-current@freebsd.org Wed Aug 29 13:19:56 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 CEDE5108A036 for ; Wed, 29 Aug 2018 13:19:56 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from emailer.gwdg.de (emailer.gwdg.de [134.76.10.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6B6088C9F5 for ; Wed, 29 Aug 2018 13:19:56 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from a1235.mx.srv.dfn.de ([194.95.232.117]) by mailer.gwdg.de with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fv0Nw-0001FW-IR; Wed, 29 Aug 2018 15:19:48 +0200 Received: from mailer-b3.gwdg.de (mailer-b3.gwdg.de [134.76.10.19]) by a1235.mx.srv.dfn.de (Postfix) with ESMTPS id 0D51B2E0034; Wed, 29 Aug 2018 15:19:48 +0200 (CEST) Received: from excmbx-24.um.gwdg.de ([134.76.9.234] helo=email.gwdg.de) by mailer.gwdg.de with esmtp (Exim 4.90_1) (envelope-from ) id 1fv0Nv-00017o-VB; Wed, 29 Aug 2018 15:19:47 +0200 Received: from krabat.raven.hur (91.8.156.212) by EXCMBX-24.um.gwdg.de (134.76.9.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1531.3; Wed, 29 Aug 2018 15:19:16 +0200 Subject: Re: r336921 broke booting on MBP 2017, EFIRT related To: Yuri Pankov , freebsd-current References: <499f05f4-4fab-9b31-5d37-83ecb554013c@yuripv.net> From: Rainer Hurling Message-ID: <23535142-fcd6-a37f-c1d6-70ae68b3872f@gwdg.de> Date: Wed, 29 Aug 2018 15:19:10 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <499f05f4-4fab-9b31-5d37-83ecb554013c@yuripv.net> Content-Type: text/plain; charset="utf-8" Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Originating-IP: [91.8.156.212] X-ClientProxiedBy: EXCMBX-14.um.gwdg.de (134.76.9.225) To EXCMBX-24.um.gwdg.de (134.76.9.234) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 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: Wed, 29 Aug 2018 13:19:57 -0000 Am 29.08.18 um 11:37 schrieb Yuri Pankov: > Hi, > > I've noticed that all recent snapshots (ALPHA3, ALPHA2, ALPHA1, > 20180802) fail to boot on MBP 2017: > > kbd0 at kbdmux0 > netmap: loaded module > nexus0 > > Fatal trap 12: page fault while in kernel mode > cpuid = 2: apic id = 02 > fault virtual address  = 0x74c64a50 > fault code             = supervisor read data, page not present > instruction pointer    = 0x20: 0x7abece31 > stack pointer          = 0x28: 0xffffffff82b2f7c0 > frame pointer          = 0x28: 0xffffffff82b2f810 > code segment           = base 0x0, limit 0xfffff, type 0x1b >                        = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags       = interrupt enabled, resume, IOPL = 0 > current process        = 0 (swapper) > [ thread pid 0 tid 100000 ] > Stopped at      0x7abece31:    calll   *0x18(%rax) > db> > > Sadly, there's no support for internal keyboard yet (it's connected via > SPI), and external USB one stops working. > > A (not so quick) bisect is pointing at r336921, which enabled EFIRT. > > Some questions here: > - is this something that can/should be fixed? > - can we print some "enabling EFIRT" message to the console to make >   guesses about the problem source a bit easier? I have almost exactly the same trap on a DELL Latitude E6520 with ALPHA3. Only _with_ 'OPTIONS EFIRT' enabled in the kernel _and_ deactivating it via efi.rt.disabled=1 in /boot/loader.conf, it works for me. An oddity is, that the spelling of the loader tuneable has to be efi.rt.disabled, not efi.rt_disabled (note the dot instead of an underscore!). The one with the underscore, as mentioned in UPDATING, does not work for me. Isn't this a typo somewhere in the code? Regards, Rainer Hurling