From owner-freebsd-current@freebsd.org Wed Aug 29 10:27:40 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 F32511084817 for ; Wed, 29 Aug 2018 10:27:39 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (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 70CFA85EFC for ; Wed, 29 Aug 2018 10:27:39 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id w7TARSeF010492 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 29 Aug 2018 13:27:31 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w7TARSeF010492 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w7TARRab010491; Wed, 29 Aug 2018 13:27:27 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 29 Aug 2018 13:27:27 +0300 From: Konstantin Belousov To: Yuri Pankov Cc: freebsd-current Subject: Re: r336921 broke booting on MBP 2017, EFIRT related Message-ID: <20180829102727.GD2340@kib.kiev.ua> References: <499f05f4-4fab-9b31-5d37-83ecb554013c@yuripv.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <499f05f4-4fab-9b31-5d37-83ecb554013c@yuripv.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home 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 10:27:40 -0000 On Wed, Aug 29, 2018 at 12:37:52PM +0300, Yuri Pankov wrote: > 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? It is not in 'enabling'. Looking at the faulting VA, I believe that it occurs inside the BIOS code. Disable efirt by removing the kernel option, then try to load the module at runtime. Does it still fault ? Also, get the efi mem map for the machine and look at which region the faulting address and the faulting instruction belong.