Date: Tue, 23 Sep 2014 17:14:46 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: Nathan Whitehorn <nwhitehorn@freebsd.org> Cc: Ed Maste <emaste@freebsd.org>, Andriy Gapon <avg@freebsd.org>, Harald Schmalzbauer <h.schmalzbauer@omnilan.de>, FreeBSD Current <freebsd-current@freebsd.org>, Allan Jude <allanjude@freebsd.org>, "O. Hartmann" <ohartman@zedat.fu-berlin.de> Subject: Re: CURRENT: EFI boot failure Message-ID: <9F1F287F-751C-4456-BB5E-540824E1B4E8@FreeBSD.org> In-Reply-To: <54218B0F.20707@freebsd.org> References: <20140916020541.03c18d04.ohartman@zedat.fu-berlin.de> <54178607.1060305@freebsd.org> <541786BE.6010105@freebsd.org> <20140916075121.29989a53.ohartman@zedat.fu-berlin.de> <5417E20D.8070607@freebsd.org> <20140916230348.189e80cd.ohartman@zedat.fu-berlin.de> <CAPyFy2AicKf-PWGDnq80Zmm8ukwTkURZm8RRUFxdfHK=Xd7XAQ@mail.gmail.com> <5418B8C3.7040406@FreeBSD.org> <20140919152207.0473e213.ohartman@zedat.fu-berlin.de> <542183A6.7060802@omnilan.de> <54218B0F.20707@freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On 23 Sep 2014, at 17:00, Nathan Whitehorn <nwhitehorn@freebsd.org> wrote:
> On 09/23/14 07:28, Harald Schmalzbauer wrote:
>> Bezüglich O. Hartmann's Nachricht vom 19.09.2014 15:22 (localtime):
>>> …
>>> The problem I reported about in the first place is triggered by a faulty loader.efi that
>>> arises, when optimisation level is -O3. -O2 works fine.
>> I can confirm that this problem also shows up when using
>> 'CPUTYPE?=core-avx2'
>> Setting CPUTYPE to core-avx-i doesnt ehibit the problem.
>>
>> I could narrow down the cause to libefi.a (sys/boot/efi).
>> But I don't understand the things going on there, so no clue how to fix
>> besides maybe
>>
>> --- sys/boot/efi/Makefile.inc.orig 2014-09-23 16:22:46.000000000 +0200
>> +++ sys/boot/efi/Makefile.inc 2014-09-23 16:25:16.000000000 +0200
>> @@ -2,6 +2,10 @@
>>
>> BINDIR?= /boot
>>
>> +.ifdef CPUTYPE
>> +.undef CPUTYPE
>> +.endif
>> +
>> .if ${MACHINE_CPUARCH} == "i386"
>> CFLAGS+= -march=i386
>> .endif
> Could you try adding -mno-avx2 to /sys/boot/amd64/Makefile.inc line 9?
> -Nathan
IMHO CPUTYPE should be ignored for any boot loader program, and the
lowest common denominator should be used instead (i486 for 32-bit, plain
x86_64 for 64-bit). It makes no sense to optimize boot loaders for e.g.
core-avx2. :-)
But indeed, it appears that we need to add more -mno-foo magic flags...
-Dimitry
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
iEUEARECAAYFAlQhjmsACgkQsF6jCi4glqPGFQCdGvwbc2IBT34JsrsQelp+pAFI
/00AmK3IqThnJ0l+FCPipuvSizxev2s=
=yXB/
-----END PGP SIGNATURE-----
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9F1F287F-751C-4456-BB5E-540824E1B4E8>
