From owner-freebsd-current@FreeBSD.ORG Tue Sep 23 15:15:04 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B0442BB5; Tue, 23 Sep 2014 15:15:04 +0000 (UTC) Received: from tensor.andric.com (unknown [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "tensor.andric.com", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 643E3BFE; Tue, 23 Sep 2014 15:15:04 +0000 (UTC) Received: from [192.168.2.2] (unknown [77.243.161.229]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B1602B803; Tue, 23 Sep 2014 17:14:58 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_727A827C-2669-422C-830E-2BE6C29D66EC"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: CURRENT: EFI boot failure From: Dimitry Andric In-Reply-To: <54218B0F.20707@freebsd.org> Date: Tue, 23 Sep 2014 17:14:46 +0200 Message-Id: <9F1F287F-751C-4456-BB5E-540824E1B4E8@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> <5418B8C3.7040406@FreeBSD.org> <20140919152207.0473e213.ohartman@zedat.fu-berlin.de> <542183A6.7060802@omnilan.de> <54218B0F.20707@freebsd.org> To: Nathan Whitehorn X-Mailer: Apple Mail (2.1878.6) Cc: Ed Maste , Andriy Gapon , Harald Schmalzbauer , FreeBSD Current , Allan Jude , "O. Hartmann" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Tue, 23 Sep 2014 15:15:04 -0000 --Apple-Mail=_727A827C-2669-422C-830E-2BE6C29D66EC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On 23 Sep 2014, at 17:00, Nathan Whitehorn = wrote: > On 09/23/14 07:28, Harald Schmalzbauer wrote: >> 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 = 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?=3Dcore-avx2' >> Setting CPUTYPE to core-avx-i doesnt ehibit the problem. >>=20 >> 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 >>=20 >> --- 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 @@ >>=20 >> BINDIR?=3D /boot >>=20 >> +.ifdef CPUTYPE >> +.undef CPUTYPE >> +.endif >> + >> .if ${MACHINE_CPUARCH} =3D=3D "i386" >> CFLAGS+=3D -march=3Di386 >> .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 --Apple-Mail=_727A827C-2669-422C-830E-2BE6C29D66EC Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iEUEARECAAYFAlQhjmsACgkQsF6jCi4glqPGFQCdGvwbc2IBT34JsrsQelp+pAFI /00AmK3IqThnJ0l+FCPipuvSizxev2s= =yXB/ -----END PGP SIGNATURE----- --Apple-Mail=_727A827C-2669-422C-830E-2BE6C29D66EC--