Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Aug 2018 12:22:36 +0300
From:      Yuri Pankov <yuripv@yuripv.net>
To:        Rainer Hurling <rhurlin@gwdg.de>, Kyle Evans <kevans@freebsd.org>
Cc:        Konstantin Belousov <kostikbel@gmail.com>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: r336921 broke booting on MBP 2017, EFIRT related
Message-ID:  <52996f84-c215-f1da-8ce3-8bcfdbd79c40@yuripv.net>
In-Reply-To: <7162d397-43df-01bc-f97d-0dae6a8f6926@gwdg.de>
References:  <499f05f4-4fab-9b31-5d37-83ecb554013c@yuripv.net> <20180829102727.GD2340@kib.kiev.ua> <b767f852-6e1a-1c02-11eb-5548aea26afe@yuripv.net> <a8611843-8fbc-c5d2-2246-1853fa4ca1b7@yuripv.net> <CACNAnaFvSGLs9XwQYZ%2BGVfmXwDD-Bh%2BgVvnkmOipKUHNOGS2DA@mail.gmail.com> <7162d397-43df-01bc-f97d-0dae6a8f6926@gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------F489DB713008D84D090C16E3
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Rainer Hurling wrote:
> Am 29.08.18 um 16:12 schrieb Kyle Evans:
>> On Wed, Aug 29, 2018 at 6:53 AM Yuri Pankov <yuripv@yuripv.net> wrote:
>>>
>>> Yuri Pankov wrote:
>>>> Konstantin Belousov wrote:
>>>>> 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.
>>>>
>>>> kldload'ing the efirt module gets the same fault.  Several top lines of
>>>> backtrace:
>>>>
>>>> kernphys() at 0x7abece31
>>>> efi_get_time() at efi_get_time+0xd9
>>>> efirtc_probe() at efirtc_probe+0x17
>>>
>>> For the efi mem map, if I'm understanding it correctly, there's the
>>> following:
>>>
>>> ...
>>>      BootServicesData 00007421d000 000000000000 00000a8b UC WC WT WB
>>> ...
>>> RuntimeServicesCode 00007ab9f000 000000000000 00000070 UC WC WT WB
>>> ...
>>>
>>
>> Hi,
>>
>> I guess this patch might do it:
>> https://people.freebsd.org/~kevans/efi-bootmap.diff
>>
>> Linux commit messages depict a tale in which they used to also only
>> map RUNTIME entries, but they were effectively forced to back down on
>> that because of buggy firmware that does exactly what you've described
>> and they later reintroduced the restrictive mapping for i386-only
>> where they'd not found such bugs.
>>
>> Thanks,
>>
>> Kyle Evans
> 
> Hi Kyle,
> 
> After Yuri had no success with the patches of kib, I tried your patch on
> a DELL Latitude E6520 with BIOS version A21.

Sorry, I accidentally took the discussion off-list, where Konstantin 
provided some more patches.  I'm attaching the one that finally worked 
for me.  It also adds some diagnostic prints which require bootverbose 
to be enabled.

--------------F489DB713008D84D090C16E3
Content-Type: text/plain; charset=UTF-8;
 name="efirt.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="efirt.diff"

ZGlmZiAtLWdpdCBhL3N5cy9hbWQ2NC9hbWQ2NC9lZmlydF9tYWNoZGVwLmMgYi9zeXMvYW1k
NjQvYW1kNjQvZWZpcnRfbWFjaGRlcC5jCmluZGV4IGRhNzc4MzA0M2EyLi44MGZmYTY2ZjVl
YyAxMDA2NDQKLS0tIGEvc3lzL2FtZDY0L2FtZDY0L2VmaXJ0X21hY2hkZXAuYworKysgYi9z
eXMvYW1kNjQvYW1kNjQvZWZpcnRfbWFjaGRlcC5jCkBAIC01NSw2ICs1NSw3IEBAIF9fRkJT
RElEKCIkRnJlZUJTRCQiKTsKICNpbmNsdWRlIDxtYWNoaW5lL3ZtcGFyYW0uaD4KICNpbmNs
dWRlIDx2bS92bS5oPgogI2luY2x1ZGUgPHZtL3BtYXAuaD4KKyNpbmNsdWRlIDx2bS92bV9l
eHRlcm4uaD4KICNpbmNsdWRlIDx2bS92bV9tYXAuaD4KICNpbmNsdWRlIDx2bS92bV9vYmpl
Y3QuaD4KICNpbmNsdWRlIDx2bS92bV9wYWdlLmg+CkBAIC0yNjYsNiArMjY3LDcgQEAgZWZp
X2FyY2hfZW50ZXIodm9pZCkKIAogCWN1cnBtYXAgPSBQQ1BVX0dFVChjdXJwbWFwKTsKIAlQ
TUFQX0xPQ0tfQVNTRVJUKGN1cnBtYXAsIE1BX09XTkVEKTsKKwljdXJ0aHJlYWQtPnRkX21k
Lm1kX2VmaXJ0X2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pAQCAtNSw3ICs1LDExIEBACiAKIEtNT0Q9CWVmaXJ0CiBTUkNTPQllZmlydC5j
IGVmaXJ0X21hY2hkZXAuYyBlZmlkZXYuYwotU1JDUys9CWVmaXJ0Yy5jCitTUkNTKz0JZWZp
cnRjLmMgZWZpcnRfc3VwcG9ydC5TCiBTUkNTKz0gIGRldmljZV9pZi5oIGJ1c19pZi5oIGNs
b2NrX2lmLmgKIAorZWZpcnRfc3VwcG9ydC5vOgllZmlydF9zdXBwb3J0LlMgYXNzeW0uaW5j
CisJJHtDQ30gLWMgLXggYXNzZW1ibGVyLXdpdGgtY3BwIC1ETE9DT1JFICR7Q0ZMQUdTfSBc
CisJICAgICR7LklNUFNSQ30gLW8gJHsuVEFSR0VUfQorCiAuaW5jbHVkZSA8YnNkLmttb2Qu
bWs+Cg==
--------------F489DB713008D84D090C16E3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52996f84-c215-f1da-8ce3-8bcfdbd79c40>