Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2014 16:51:08 +0200
From:      Harald Schmalzbauer <h.schmalzbauer@omnilan.de>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Cc:        Andriy Gapon <avg@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>, Ed Maste <emaste@freebsd.org>, Nathan Whitehorn <nwhitehorn@freebsd.org>, Allan Jude <allanjude@freebsd.org>
Subject:   Re: CURRENT: EFI boot failure
Message-ID:  <542188DC.8000307@omnilan.de>
In-Reply-To: <542183A6.7060802@omnilan.de>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigB7157B497E3520E5A72BD488
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

 Bez=FCglich Harald Schmalzbauer's Nachricht vom 23.09.2014 16:28
(localtime):
>  Bez=FCglich O. Hartmann's Nachricht vom 19.09.2014 15:22 (localtime):
>> =85
>> The problem I reported about in the first place is triggered by a faul=
ty loader.efi that
>> arises, when optimisation level is -O3. -O2 works fine.
> I can confirm that this problem also shows up when using
> 'CPUTYPE?=3Dcore-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?=3D /boot
>
> +.ifdef CPUTYPE
> +.undef CPUTYPE
> +.endif

Sorry, forget the suggestion, it doesn't work since it leads to CFLAG
-march=3D"" and the same problem occurs.
For my case this works:
--- sys/boot/efi/Makefile.inc.orig      2014-09-23 16:22:46.000000000 +02=
00
+++ sys/boot/efi/Makefile.inc   2014-09-23 16:46:30.000000000 +0200
@@ -2,6 +2,10 @@
=20
 BINDIR?=3D       /boot
=20
+.if ${CPUTYPE} =3D=3D "core-avx2"
+CPUTYPE=3D       core-avx-i
+.endif
+
 .if ${MACHINE_CPUARCH} =3D=3D "i386"
 CFLAGS+=3D        -march=3Di386
 .endif

JFI

-Harry


--------------enigB7157B497E3520E5A72BD488
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iEYEARECAAYFAlQhiNwACgkQLDqVQ9VXb8j0BQCdGO5woe6j/207CqfcJWXyTkha
mkoAoM85ffkzs+eK1+rW5ZnfgBEuEfxs
=BxjJ
-----END PGP SIGNATURE-----

--------------enigB7157B497E3520E5A72BD488--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?542188DC.8000307>